|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.jperdian.swing.tools.SwingHelper
Some static helper methods for working with Swing objects
| Constructor Summary | |
SwingHelper()
|
|
| Method Summary | |
static javax.swing.JButton |
createButton(javax.swing.Action action)
Creates a new JButton that has no icon associated
with it |
static javax.swing.JButton |
createButton(javax.swing.Action action,
javax.swing.Icon icon)
Creates a new JButton that might have an icon associated
with it |
static javax.swing.JButton |
createButton(javax.swing.Action action,
javax.swing.Icon icon,
char shortChar)
Creates a new JButton that might have an icon associated
with it |
static javax.swing.JButton |
createButton(javax.swing.Action action,
java.lang.String resourceIconPath)
Creates a new JButton that might have an icon associated
with it |
static javax.swing.JButton |
createButton(javax.swing.Action action,
java.lang.String resourceIconPath,
char shortChar)
Creates a new JButton that might have an icon associated
with it |
static javax.swing.JMenuItem |
createMenuItem(javax.swing.Action action)
Creates a new JMenuItem that has no icon associated
with it |
static javax.swing.JMenuItem |
createMenuItem(javax.swing.Action action,
javax.swing.Icon icon)
Creates a new JMenuItem that might have an icon associated
with it |
static javax.swing.JMenuItem |
createMenuItem(javax.swing.Action action,
javax.swing.Icon icon,
char shortChar)
Creates a new JMenuItem that might have an icon associated
with it |
static javax.swing.JMenuItem |
createMenuItem(javax.swing.Action action,
java.lang.String resourceIconPath)
Creates a new JMenuItem that has no icon associated
with it |
static javax.swing.JMenuItem |
createMenuItem(javax.swing.Action action,
java.lang.String resourceIconPath,
char shortChar)
Creates a new JMenuItem that has no icon associated
with it |
static javax.swing.ImageIcon |
loadIconResource(java.lang.String resourcePath)
Creates a new Icon with the image that has been read
from a system resource |
static java.awt.Image |
loadImageResource(java.lang.String resourcePath)
Creates a new Image with the image that has been read
from a system resource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SwingHelper()
| Method Detail |
public static javax.swing.ImageIcon loadIconResource(java.lang.String resourcePath)
Icon with the image that has been read
from a system resource
resourcePath - the path from which to load the imagepublic static java.awt.Image loadImageResource(java.lang.String resourcePath)
Image with the image that has been read
from a system resource
resourcePath - the path from which to load the imagepublic static javax.swing.JButton createButton(javax.swing.Action action)
JButton that has no icon associated
with it
public static javax.swing.JButton createButton(javax.swing.Action action,
java.lang.String resourceIconPath)
JButton that might have an icon associated
with it
public static javax.swing.JButton createButton(javax.swing.Action action,
java.lang.String resourceIconPath,
char shortChar)
JButton that might have an icon associated
with it
public static javax.swing.JButton createButton(javax.swing.Action action,
javax.swing.Icon icon)
JButton that might have an icon associated
with it
public static javax.swing.JButton createButton(javax.swing.Action action,
javax.swing.Icon icon,
char shortChar)
JButton that might have an icon associated
with it
public static javax.swing.JMenuItem createMenuItem(javax.swing.Action action,
java.lang.String resourceIconPath)
JMenuItem that has no icon associated
with it
public static javax.swing.JMenuItem createMenuItem(javax.swing.Action action,
java.lang.String resourceIconPath,
char shortChar)
JMenuItem that has no icon associated
with it
public static javax.swing.JMenuItem createMenuItem(javax.swing.Action action)
JMenuItem that has no icon associated
with it
public static javax.swing.JMenuItem createMenuItem(javax.swing.Action action,
javax.swing.Icon icon)
JMenuItem that might have an icon associated
with it
public static javax.swing.JMenuItem createMenuItem(javax.swing.Action action,
javax.swing.Icon icon,
char shortChar)
JMenuItem that might have an icon associated
with it
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||