Package ui

Class MultiMonitorDialog

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

public class MultiMonitorDialog extends JDialog implements ListSelectionListener
A dialog that lets you choose on which monitor in a multi-monitor environment the full screen mode will be displayed.
See Also:
  • Constructor Details

    • MultiMonitorDialog

      public MultiMonitorDialog(Frame parent, boolean modal, GraphicsDevice[] gds, int current)
      Creates new form MultiMonitorDialog
      Parameters:
      parent - standard
      modal - standard
      gds - the screen devices available
      current - the number of the monitor currently chosen, will be highlit in the jlist.
  • Method Details

    • setVisible

      public void setVisible(boolean f)
      This overrides the normal setVisible method - and just does nothing at all. Use getChoice() instead.
      Overrides:
      setVisible in class Dialog
      Parameters:
      f - ignored.
    • getChoice

      public int getChoice()
      Displays the dialog and gets the number of the monitor chosen by the user.
      Returns:
      the number of the monitor chosen by the user, -1 if no choice made.
    • valueChanged

      public void valueChanged(ListSelectionEvent e)
      Sets the currently chosen monitor.
      Specified by:
      valueChanged in interface ListSelectionListener
      Parameters:
      e - the event.