我只是无法让它以我想要的方式出现,我已经筋疲力尽地尝试 gridlayout、gridbaglayout、borderlayout 等......
请问我需要帮助
这就是我到目前为止所做的
panneauEst = new JPanel(new BorderLayout());
zoneTexte = new JTextArea("LIVRES", 45, 50);
scroller= new JScrollPane(zoneTexte);
scroller.setPreferredSize(new Dimension(600, 580));
scroller.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
EcouteurBoutons btnEcouteur = new EcouteurBoutons();
btnTrierCote = new JButton("Trier par cote");
btnTrierCote.addActionListener(btnEcouteur);
btnTrierTitre = new JButton("Trier par titre");
btnRechercheCote = new JButton("Rechercher par cote");
btnRechercheTitre = new JButton("Rechercher par titre");
btnFusion = new JButton("Fusion");
btnQuitter = new JButton("Quitter");
panneauEst.add(scroller);
//http://stackoverflow.com/questions/15104630/java-swing-gridlayout-issue
this.setLayout(new GridLayout(6, 2));
this.add(panneauEst);
this.add(btnTrierCote);
this.add(btnTrierTitre);
this.add(btnRechercheCote);
this.add(btnRechercheTitre);
this.add(btnFusion);
this.add(btnQuitter);