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
|
setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
this.getContentPane().setLayout(new BorderLayout());
jSPglobal = new JScrollPane();
jSPglobal.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
this.getContentPane().add(jSPglobal, BorderLayout.CENTER);
jSplitPane1 = new JSplitPane();
jSplitPane2 = new JSplitPane();
jSplitPane3 = new JSplitPane();
jSPglobal.setViewportView(jSplitPane1);
DefaultTableModel m = new DefaultTableModel(new String [][]{{"toto", "toto"},{"toto", "toto"}}, new String[]{"toto", "toto"});
jTBMessages = new JTable(m);
jTBMots = new JTable(m);
jTBChamps = new JTable(m);
jTBValeurs = new JTable(m);
jSPMessages = new JScrollPane(jTBMessages);
jSPMots = new JScrollPane(jTBMots);
jSPChamps = new JScrollPane(jTBChamps);
jSPValeurs = new JScrollPane(jTBValeurs);
jSplitPane1.add(jSplitPane2, JSplitPane.LEFT);
jSplitPane1.add(jSPChamps, JSplitPane.RIGHT);
jSplitPane2.add(jSPMessages, JSplitPane.LEFT);
jSplitPane2.add(jSPMots, JSplitPane.RIGHT);
jSplitPane3.add(jSPValeurs, JSplitPane.RIGHT);
pack(); |
Partager