Package lipstone.joshua.parser

Examples of lipstone.joshua.parser.SettingsWindow


      }
    };*/
    optionsClick = new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        SettingsWindow window = SettingsWindow.getSettingsWindow(core.getParser());
        Container c = core.getButtons();
        while ((c = c.getParent()) != null && !(c instanceof JFrame));
        if (c != null) {
          Point p = c.getLocation();
          p.x = p.x + c.getWidth();
          window.setLocation(p);
        }
        window.makeVisible();
      }
    };
    helpClick = new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        SettingsWindow window = SettingsWindow.getSettingsWindow(core.getParser());
        int index = window.indexOfTab("Help");
        if (index == -1)
          return;
        window.switchToTab(index);
        Container c = core.getButtons();
        while ((c = c.getParent()) != null && !(c instanceof JFrame));
        if (c != null) {
          Point p = c.getLocation();
          p.x = p.x + c.getWidth();
          window.setLocation(p);
        }
        window.makeVisible();
      }
    };
  }
View Full Code Here

TOP

Related Classes of lipstone.joshua.parser.SettingsWindow

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.