|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnetworking.Util
public class Util
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | |
|---|---|
static java.io.File |
getFile(java.lang.String fileName)
Get file object from file name |
static java.lang.String |
getFilePath(java.lang.String fileName)
Get file path from file name |
static int |
getInt(javax.swing.JTextField tf,
java.lang.String who)
Parse text field |
static int |
getInt(java.awt.TextField tf,
java.lang.String who)
Parse text field |
static java.lang.String |
getLocalHost()
Get name of the localhost |
static java.lang.String |
getString(javax.swing.JTextField tf,
java.lang.String who)
Ensure that text field is not empty |
static java.lang.String |
getString(java.awt.TextField tf,
java.lang.String who)
Ensure that text field is not empty |
static void |
setCentered(java.awt.Window w)
Center a window on the screen |
static void |
setCentered(java.awt.Window w,
java.awt.Window wBack)
Center a window relative to the other window |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Util()
| Method Detail |
|---|
public static java.lang.String getLocalHost()
public static java.io.File getFile(java.lang.String fileName)
fileName - file name relative to the current user directory
public static java.lang.String getFilePath(java.lang.String fileName)
fileName - file name relative to the current user directory
public static void setCentered(java.awt.Window w)
w - window
public static void setCentered(java.awt.Window w,
java.awt.Window wBack)
w - front windowwBack - back window
public static java.lang.String getString(java.awt.TextField tf,
java.lang.String who)
throws java.lang.Exception
tf - text fieldwho - name of control
java.lang.Exception
public static int getInt(java.awt.TextField tf,
java.lang.String who)
throws java.lang.Exception
tf - text fieldwho - name of control
java.lang.Exception
public static java.lang.String getString(javax.swing.JTextField tf,
java.lang.String who)
throws java.lang.Exception
tf - text fieldwho - name of control
java.lang.Exception
public static int getInt(javax.swing.JTextField tf,
java.lang.String who)
throws java.lang.Exception
tf - text fieldwho - name of control
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2009 Alexey Veremenko. All rights reserved.