com.jfimagine.jfdraw.gui
Class GUIUtils
java.lang.Object
|
+--com.jfimagine.jfdraw.gui.GUIUtils
- public class GUIUtils
- extends java.lang.Object
GUI Const class is a utilities library for gui.
- Version:
- $Revision: 1.1 $
- Author:
- CookieMaker
|
Method Summary |
static java.awt.Frame |
getFrame(java.awt.Component comp)
|
static javax.swing.JFrame |
getJFrame(java.awt.Component comp)
|
static java.awt.Component |
getParent(java.awt.Component comp,
java.lang.String compType)
|
static void |
setButtonBackground(javax.swing.JButton button,
java.awt.Color color)
Set a button's background
For windows UI, we can easily change the background color of a JButton,
But we can do nothing while chaning the background color of a JButton under MAC UIs,
So we try to make a ImageIcon here to instead of directly changing the background. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GUIUtils
public GUIUtils()
getFrame
public static java.awt.Frame getFrame(java.awt.Component comp)
getJFrame
public static javax.swing.JFrame getJFrame(java.awt.Component comp)
getParent
public static java.awt.Component getParent(java.awt.Component comp,
java.lang.String compType)
setButtonBackground
public static void setButtonBackground(javax.swing.JButton button,
java.awt.Color color)
- Set a button's background
For windows UI, we can easily change the background color of a JButton,
But we can do nothing while chaning the background color of a JButton under MAC UIs,
So we try to make a ImageIcon here to instead of directly changing the background.
- Parameters:
button - A button to be changed colorcolor - New color
Copyright 2004 ~ 2005 JingFei International Cooperation LTD. All Rights Reserved.