oracle.javatools.ui.border
Class FocusBorder
java.lang.Object
javax.swing.border.AbstractBorder
oracle.javatools.ui.border.FocusBorder
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.border.Border
public final class FocusBorder
- extends javax.swing.border.AbstractBorder
Paint a focus border abround the edge of the component if it has focus,
otherwise paint no border.
- See Also:
- Serialized Form
Methods inherited from class javax.swing.border.AbstractBorder |
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle, isBorderOpaque |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static FocusBorder getInstance()
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c)
- Specified by:
getBorderInsets
in interface javax.swing.border.Border
- Overrides:
getBorderInsets
in class javax.swing.border.AbstractBorder
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c,
java.awt.Insets insets)
- Overrides:
getBorderInsets
in class javax.swing.border.AbstractBorder
paintBorder
public void paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
- Specified by:
paintBorder
in interface javax.swing.border.Border
- Overrides:
paintBorder
in class javax.swing.border.AbstractBorder
Copyright © 1997, 2013, Oracle. All rights reserved.