Class FocusedJFrame

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

public class FocusedJFrame extends JFrame
This extension of JFrale ensures that the frame is brought to the fore, on top of any other window, when toFront() is called.
Author:
Laurent Cohen
See Also:
  • Constructor Details

    • FocusedJFrame

      public FocusedJFrame() throws HeadlessException
      Default initialization for this frame.
      Throws:
      HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
    • FocusedJFrame

      public FocusedJFrame(String title) throws HeadlessException
      Initialize this frame with the specified title.
      Parameters:
      title - the title displayed in the frmae caption.
      Throws:
      HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
  • Method Details

    • setVisible

      public void setVisible(boolean visible)
      Overrides:
      setVisible in class Window
    • toFront

      public void toFront()
      Overrides:
      toFront in class Window