private void openNewPage(AbstractPage newPage) { currentPage = newPage; // ???? TBD beans.Focus.setCurrentPage(currentPage); -- in RCAP // Install the correct menu bar JMenuBar menuBar = newPage.getPageJMenuBar(); this.setJMenuBar(menuBar); // This command cause the new menuBar to be displayed menuBar.revalidate(); // call page-specific initialization code // it should do any required enables, etc. currentPage.tabSelected(); }
public void setBackground(Color c) { comp.setBackground(c); comp.revalidate(); }
public void setForground(Color c) { comp.setForeground(c); comp.revalidate(); }