Quaqua 5.4.1 2009-07-14

ch.randelshofer.quaqua
Class QuaquaMenuBorder

java.lang.Object
  extended by 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:

Version:
$Id: QuaquaMenuBorder.java 95 2009-06-26 05:45:25Z wrandelshofer $
Author:
Werner Randelshofer

Field Summary
protected static java.awt.Insets itemBorderInsets
           
protected static java.awt.Insets popupBorderInsets
           
 
Constructor Summary
QuaquaMenuBorder()
           
 
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
 

Field Detail

popupBorderInsets

protected static java.awt.Insets popupBorderInsets

itemBorderInsets

protected static java.awt.Insets itemBorderInsets
Constructor Detail

QuaquaMenuBorder

public QuaquaMenuBorder()
Method Detail

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

Copyright 2003-2007 (c) Werner Randelshofer.
All rights reserved.