/** * Remove a previously added component from the status bar. * * @param id The id used for adding the component. */ public void removeStatusComponent(Object id) { controlcenter.getWindow().getStatusBar().removeStatusComponent(id); }
/** * Remove a previously added component from the status bar. * * @param id The id used for adding the component. */ public void removeStatusComponent(Object id) { controlcenter.getWindow().getStatusBar().removeStatusComponent(id); }
/** * Main for testing. */ public static void main(String[] args) { JFrame f = new JFrame(); StatusBar sb = new StatusBar(); f.add("South", sb); f.setSize(200, 200); f.setVisible(true); sb.setText("hallo"); Component b = new Button("b"); sb.addStatusComponent("a", new Button("a")); sb.addStatusComponent("b", b); sb.addStatusComponent("c", new Button("c")); sb.removeStatusComponent("b"); } }