ch.randelshofer.quaqua
Class QuaquaMenuBorder
java.lang.Object
ch.randelshofer.quaqua.QuaquaMenuBorder
- All Implemented Interfaces:
- javax.swing.border.Border
public class QuaquaMenuBorder
- extends java.lang.Object
- implements javax.swing.border.Border
A replacement for the AquaMenuBorder.
This class provides the following workaround for a bug in Apple's
implementation of the Aqua Look and Feel in Java 1.4.1:
- Draws a border at the top and the bottom of JPopupMenu's.
- Version:
- $Id: QuaquaMenuBorder.java 95 2009-06-26 05:45:25Z wrandelshofer $
- Author:
- Werner Randelshofer
Method Summary |
java.awt.Insets |
getBorderInsets(java.awt.Component component)
|
boolean |
isBorderOpaque()
|
void |
paintBorder(java.awt.Component component,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
popupBorderInsets
protected static java.awt.Insets popupBorderInsets
itemBorderInsets
protected static java.awt.Insets itemBorderInsets
QuaquaMenuBorder
public QuaquaMenuBorder()
paintBorder
public void paintBorder(java.awt.Component component,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
- Specified by:
paintBorder
in interface javax.swing.border.Border
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component component)
- Specified by:
getBorderInsets
in interface javax.swing.border.Border
isBorderOpaque
public boolean isBorderOpaque()
- Specified by:
isBorderOpaque
in interface javax.swing.border.Border