Class SizeGrip

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

class SizeGrip extends JPanel
A component that allows its parent window to be resizable, similar to the size grip seen on status bars. This is essentially a copy of the class with the same name in RSyntaxTextArea, but is duplicated to prevent a dependency on that library.
Version:
1.0
  • Field Details

    • osxSizeGrip

      private Image osxSizeGrip
      The size grip to use if we're on OS X.
  • Constructor Details

    • SizeGrip

      SizeGrip()
  • Method Details

    • applyComponentOrientation

      public void applyComponentOrientation(ComponentOrientation o)
      Overridden to ensure that the cursor for this component is appropriate for the orientation.
      Overrides:
      applyComponentOrientation in class Container
      Parameters:
      o - The new orientation.
    • createOSXSizeGrip

      private Image createOSXSizeGrip()
      Creates and returns the OS X size grip image.
      Returns:
      The OS X size grip.
    • paintComponent

      protected void paintComponent(Graphics g)
      Paints this panel.
      Overrides:
      paintComponent in class JComponent
      Parameters:
      g - The graphics context.
    • possiblyFixCursor

      protected void possiblyFixCursor(boolean ltr)
      Ensures that the cursor for this component is appropriate for the orientation.
      Parameters:
      ltr - Whether the current component orientation is LTR.
    • updateUI

      public void updateUI()
      Overrides:
      updateUI in class JPanel