public class GTKFixes
extends java.lang.Object
| Constructor and Description | 
|---|
| GTKFixes() | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | fixGtkMenuItemFgColor(javax.swing.JMenuItem... jmi)Fixes incorrect JMenu selectionForeground highlighting | 
| static void | fixGtkMenuSelectionColor(javax.swing.JMenu... jms)Fixes incorrect JMenu selectionForeground highlighting | 
| static void | fixGtkTextAreaColor(javax.swing.JTextArea jta) | 
| static void | fixGtkThickness(java.lang.Object style,
               java.lang.String fieldName)Called internally by installGtkPopupBugWorkaround to fix the thickness of
 a GTK style field by setting it to a minimum value of 1. | 
| static java.lang.Object | getGtkStyle(java.lang.Object styleFactory,
           javax.swing.JComponent component,
           java.lang.String regionName)Called internally by installGtkPopupBugWorkaround. | 
| static void | installGtkPopupBugWorkaround()Swing menus are looking pretty bad on Linux when the GTK LaF is used (See
 bug #6925412). | 
public static void fixGtkMenuSelectionColor(javax.swing.JMenu... jms)
jms - Array of JMenus or single JMenupublic static void fixGtkMenuItemFgColor(javax.swing.JMenuItem... jmi)
jmi - Array of JMenuItems or single JMenuItempublic static void fixGtkTextAreaColor(javax.swing.JTextArea jta)
public static void installGtkPopupBugWorkaround()
public static void fixGtkThickness(java.lang.Object style,
                                   java.lang.String fieldName)
                            throws java.lang.Exception
style - The GTK style object.fieldName - The field name.java.lang.Exception - When reflection fails.public static java.lang.Object getGtkStyle(java.lang.Object styleFactory,
                                           javax.swing.JComponent component,
                                           java.lang.String regionName)
                                    throws java.lang.Exception
styleFactory - The GTK style factory.component - The target component of the style.regionName - The name of the target region of the style.java.lang.Exception - When reflection fails. This code was taken from K's
 Cluttered Loft (Klaus Reimer) at http://www.ailis.de and as far as im
 aware is in the public domain as it has no attached license if this
 proves incorrect then I will remove it immediately.