|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.util.SwingUtils
public class SwingUtils extends java.lang.Object
Utility functions for swing user interface
| Constructor and Description |
|---|
SwingUtils()
|
| Modifier and Type | Method and Description |
|---|---|
static javax.swing.ImageIcon |
readImageIconFromResource(java.lang.String path)
Loads an image file as an icon |
static javax.swing.ImageIcon |
readImageIconFromResource(java.lang.String path,
java.lang.Class<?> c)
Loads an image as an icon using resource loader from the specified class |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SwingUtils()
| Method Detail |
|---|
public static javax.swing.ImageIcon readImageIconFromResource(java.lang.String path)
path - path to the image file to load
public static javax.swing.ImageIcon readImageIconFromResource(java.lang.String path,
java.lang.Class<?> c)
path - path to the image file to loadc - class and its loader
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||