|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.esrf.tangoatk.widget.util.interlock.NetUtils
public class NetUtils
Utility class.
| Constructor Summary | |
|---|---|
NetUtils()
|
|
| Method Summary | |
|---|---|
static void |
centerDialog(java.awt.Dialog dlg,
int dlgWidth,
int dlgHeight)
Center the given dialog according to its parent. |
static void |
centerFrameOnScreen(java.awt.Frame fr)
Center the given frame on screen. |
static javax.swing.JMenuItem |
createMenuItem(java.lang.String name,
int key,
int modifier,
java.awt.event.ActionListener a)
Create a JMenuItem. |
static javax.swing.border.Border |
createTitleBorder(java.lang.String name)
Create a named title border. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NetUtils()
| Method Detail |
|---|
public static javax.swing.JMenuItem createMenuItem(java.lang.String name,
int key,
int modifier,
java.awt.event.ActionListener a)
name - Namekey - Accelerator key ,0 for nonemodifier - Key modifier ,0 for nonea - Action listener
public static javax.swing.border.Border createTitleBorder(java.lang.String name)
name - Border name
public static void centerDialog(java.awt.Dialog dlg,
int dlgWidth,
int dlgHeight)
Note: This function has been designed to work with 'heavyWeight' system dependant awt window which doesn't use a layout manager (null layout).
dlg - the dialog.dlgWidth - desired width of the JDialog content pane.dlgHeight - desired height of the JDialog content pane.public static void centerFrameOnScreen(java.awt.Frame fr)
fr - Frame to be centered.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||