public void setSimulator(HackSimulatorGUI simulator) {
    ((JComponent) simulator).setLocation(0, TOOLBAR_HEIGHT);
    this.getContentPane().add((JComponent) simulator, null);
    ((JComponent) simulator).revalidate();
    repaint();

    if (simulator.getUsageFileName() != null) {
      usageWindow = new HTMLViewFrame(simulator.getUsageFileName());
      usageWindow.setSize(450, 430);
    }

    if (simulator.getAboutFileName() != null) {
      aboutWindow = new HTMLViewFrame(simulator.getAboutFileName());
      aboutWindow.setSize(450, 420);
    }
  }
 /** Called when the about window menu item was selected. */
 public void aboutMenuItem_actionPerformed() {
   if (aboutWindow != null) aboutWindow.setVisible(true);
 }
Esempio n. 3
0
 public void setAboutFileName(String fileName) {
   aboutWindow = new HTMLViewFrame(fileName);
   aboutWindow.setSize(450, 420);
 }
 /** Called when the usage window menu item was selected. */
 public void usageMenuItem_actionPerformed() {
   if (usageWindow != null) usageWindow.setVisible(true);
 }
Esempio n. 5
0
 public void setUsageFileName(String fileName) {
   usageWindow = new HTMLViewFrame(fileName);
   usageWindow.setSize(450, 430);
 }