Class GGlassPane

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class GGlassPane extends JComponent
A component that acts as the general purpose glass pane for Java windows. This component allows Ghidra to easily change
See Also:
  • Constructor Details

    • GGlassPane

      public GGlassPane()
      Default constructor.

      NOTE: You must call setVisible(true) on this component after adding it to the component. This is because the component will set the visibility to that of the previous glass pane, which is false by default.

  • Method Details

    • addPainter

      public void addPainter(GGlassPanePainter painter)
      Adds a painter that will be called when this pane's paintComponent(Graphics) method is called.
      Parameters:
      painter - the painter to add
    • removePainter

      public void removePainter(GGlassPanePainter painter)
    • setBusy

      public void setBusy(boolean isBusy)
      When set busy is called, a busy cursor will be displayed and all user mouse and keyboard events will be blocked.
      Parameters:
      isBusy - True to block events and show the busy cursor; false to restore events and to restore the default cursor.
    • setAllGlassPanesBusy

      public static void setAllGlassPanesBusy(boolean isBusy)
      Sets the busy state of all glass panes created in the VM.
      Parameters:
      isBusy - the busy state of all glass panes created in the VM.
    • isBusy

      public boolean isBusy()
      Returns true if this glass pane is blocking user input.
      Returns:
      true if this glass pane is blocking user input.
    • showBusyCursor

      public void showBusyCursor(boolean showBusyCursor)
    • paintComponent

      protected void paintComponent(Graphics g)
      Overrides:
      paintComponent in class JComponent
    • contains

      public boolean contains(int x, int y)
      Overrides:
      contains in class JComponent
    • getGlassPane

      public static GGlassPane getGlassPane(Component component)