Class JModalPanel<T extends JFrame>

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
JAudioClipPanel, JSearchBar

public class JModalPanel<T extends JFrame> extends JPanel
JPanel that occupies space in front of other panels. While active, dims underlying components Use ESC or click outside to remove.
See Also:
  • Field Details

    • window

      protected final T extends JFrame window
  • Constructor Details

    • JModalPanel

      public JModalPanel(T window)
  • Method Details

    • setVisible

      public void setVisible(boolean visible)
      Overrides:
      setVisible in class JComponent
    • paintComponent

      protected void paintComponent(Graphics g)
      Dim background window
      Overrides:
      paintComponent in class JComponent
      Parameters:
      g -
    • activate

      public void activate()
      Install and show search bar
    • close

      public void close()