protected void updateWindowList() { // Don't build a new window list, while the old one is removed. // When an StackWindow is replaced by an OpenStackWindow, updateWindowList // is called again and the other components in the panel are removed, also. Component newWindowList = buildWindowList(); panel.remove(0); panel.add(newWindowList,BorderLayout.NORTH,0); pack(); }
protected void updateWindowList() { // Don't build a new window list, while the old one is removed. // When an StackWindow is replaced by an OpenStackWindow, updateWindowList // is called again and the other components in the panel are removed, also. Component newWindowList = buildWindowList(); panel.remove(0); panel.add(newWindowList,BorderLayout.NORTH,0); pack(); }
/** Build window list display and button controls. * Create Hashtable that connects list entries to window IDs.*/ protected Panel controlPanel() { Panel p = new Panel(); BorderLayout layout = new BorderLayout(); layout.setVgap(3); p.setLayout(layout); p.add(buildWindowList(), BorderLayout.NORTH,0); p.add(buildControlPanel(), BorderLayout.CENTER,1); return p; }
/** Build window list display and button controls. * Create Hashtable that connects list entries to window IDs.*/ protected Panel controlPanel() { Panel p = new Panel(); BorderLayout layout = new BorderLayout(); layout.setVgap(3); p.setLayout(layout); p.add(buildWindowList(), BorderLayout.NORTH,0); p.add(buildControlPanel(), BorderLayout.CENTER,1); return p; }