Class GenericDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class GenericDialog extends JFrame
A swing frame for driving a parameter input pane (currently used for ResourceChooser and NOT YET for a GUI created by the option compiler.
See Also:
  • Field Details

    • guiprocess_ok

      boolean guiprocess_ok
    • guiprocess_run

      boolean guiprocess_run
  • Constructor Details

    • GenericDialog

      public GenericDialog()
  • Method Details

    • run

      public boolean run(JPanel guest, String title)
      Run the GUI with default size (400x400 px).
      Parameters:
      guest - a gui with input widgets (LATER:generated by the option compiler)
      title - the naming of the outmost window
      Returns:
      false when ending the dialog by "cancel" button, true when by "ok" button.
    • run

      public boolean run(JPanel guest, String title, int width, int height)
      Run the GUI with the given size.
      Parameters:
      guest - a gui with input widgets (LATER:generated by the option compiler)
      title - the naming of the outmost window
      width - of the inner panel, in pixels
      height - of the inner panel, in pixels
      Returns:
      false when ending the dialog by "cancel" button, true when by "ok" button.