private JTable buildTable() { JTable retour = new JTable(); ...
return retour; }
private JTable buildTableZone() { JTable l_table = buildTable(); JScrollPane retour = new JScrollPane(l_table); return retour; }
/** * Build a bar with 4 buttons (first, up, down, last).
*/ protected JComponent buildButtonsBar() { MyButtonBar retour = new MyButtonBar(); retour.add(new MyButtonFirst(); retour.add(new MyButtonUp(); retour.add(new MyButtonDown(); retour.add(new MyButtonLast(); return retour; }
/** * Inner class to my button UP.
*/ private Class MyButtonUp() extends JButton implements ActionListener { MyButtonUp() { super("up"); ...
this.addActionListener(this); } public void actionPerformed( ActionEvent a_event) { ...
} }