Module java.desktop

Class BasicToolBarUI.DragWindow

java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
javax.swing.plaf.basic.BasicToolBarUI.DragWindow
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Enclosing class:
BasicToolBarUI

protected class BasicToolBarUI.DragWindow extends Window
The window which appears during dragging the JToolBar.
  • Method Details

    • getOrientation

      public int getOrientation()
      Returns the orientation of the toolbar window when the toolbar is floating. The orientation is either one of JToolBar.HORIZONTAL or JToolBar.VERTICAL.
      Returns:
      the orientation of the toolbar window
      Since:
      1.6
    • setOrientation

      public void setOrientation(int o)
      Sets the orientation.
      Parameters:
      o - the new orientation
    • getOffset

      public Point getOffset()
      Returns the offset.
      Returns:
      the offset
    • setOffset

      public void setOffset(Point p)
      Sets the offset.
      Parameters:
      p - the new offset
    • setBorderColor

      public void setBorderColor(Color c)
      Sets the border color.
      Parameters:
      c - the new border color
    • getBorderColor

      public Color getBorderColor()
      Returns the border color.
      Returns:
      the border color