Class ScrollPaneOverview

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class ScrollPaneOverview extends JComponent
Original code http://forums.java.net/jive/thread.jspa?forumID=73invalid input: '&threadID'=14674 under "Do whatever you want with this code" license
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • setSelectionBorderColor

      public void setSelectionBorderColor(Color selectionBorder)
    • getSelectionBorder

      public Color getSelectionBorder()
    • paintComponent

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

      public Dimension getPreferredSize()
      Overrides:
      getPreferredSize in class JComponent
    • display

      public void display()
    • showPopup

      protected void showPopup(int x, int y, Component owner)
      Show popup at designated location.

      You could override this method to show the popup in different location.

      Parameters:
      x - the x axis pixel
      y - the y axis pixel
      owner - the owner of the popup