Class Gripper

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class Gripper extends JPanel
GripperPanel. A GripperPanel is a lightweight generic panel which paints hatch marks on the lower east corner. These hatch marks provide a visual cue to the user that the screen can be resized.
See Also:
  • Constructor Details

    • Gripper

      public Gripper()
      Construct a default Gripper object
    • Gripper

      public Gripper(Component c)
      Construct a Gripper with the specified component owner. Component owner will be used to determine whether to paint resize hatch marks. Resize hatch marks will be painted if the component owner is an instance of a Frame or Dialog.
      Parameters:
      c - Component owner.
  • Method Details

    • paintComponent

      public void paintComponent(Graphics g)
      Override the parent JPanel paintComponent method, so that the hatch marks are painted, if the component which contains the Gripper is resizable.
      Overrides:
      paintComponent in class JComponent
      Parameters:
      g - Graphics object