@Override public void update(Observable arg0, Object arg1) { draw.repaint(); // We verify if there is a process is occurring if (Options.getOptions().getStopped()) { buttons.change(false); options.disable(false); getJMenuBar().getMenu(0).setEnabled(true); getJMenuBar().getMenu(1).setEnabled(true); // We don't switch options when a process occurs, because it can't change and it switches too // much times if (options.isVisible()) options.switcher(draw.getWorld().getNet().toString()); } else { buttons.change(true); options.disable(true); getJMenuBar().getMenu(0).setEnabled(false); getJMenuBar().getMenu(1).setEnabled(false); } }
public void launchOptions() { options.setVisible(true); options.switcher(draw.getWorld().getNet().toString()); }