void (BackendCompiler compiler) { if (compiler == null) { compiler = myDefaultCompiler; } myCompiler.setSelectedItem(compiler); mySelectedCompiler = compiler; myCardLayout.show(myContentPanel, compiler.getId()); myContentPanel.revalidate(); myContentPanel.repaint(); }