Bonsoir, je vous explique mon problème je suis débutant en Java :
Voici mon code:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
 
 
public class Jeu  {
	private JPanel right = new JPanel();
	private JLabel info = new JLabel("Information joueur 1:");
	private JLabel info1 = new JLabel("Information joueur 2:");
	private JSeparator separateur = new JSeparator(SwingConstants.VERTICAL);	
	private static JFrame frame = new JFrame();
 
 
 
	public Jeu() {
 
 
 
 
		initData();
		initLayout();
 
	}
 
	private void initData() {
 
		JoueurHumain joueurHumain1 = new JoueurHumain("j1");
		joueurHumain1.setNumeroJoueur(1);;
		joueurs.add(joueurHumain1);
		GenererCarte genererCarte = new GenererCarte();
 
	private void initLayout() {
		CreationGrille grille = new CreationGrille(grilleJeu, joueurs);
		frame.add(right);
		right.setLayout(new BorderLayout());
 
 
 
		info.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));
		right.setLayout(new BoxLayout(right,BoxLayout.Y_AXIS));
		right.add(info);
		right.add(info1);
		separateur.setMinimumSize(new Dimension(200,500));
		right.add(separateur);
		frame.setContentPane(grille);
		frame.setVisible(true);
		frame.setSize(200, 200);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
 
	}
 
}
Je n'ai pas tout mis alors voilà j'ai une JFrame qui m'affiche une grille avec un JMenu mais j'aimerais en fait ajouter des JPanel à droite coupé en deux par un séparateur horizontal avec en haut des JLabel et en bas des JButton mais la je n y arrive pas...
Merci de votre compréhension.