public class Frames extends Object
Constructor and Description |
---|
Frames() |
Modifier and Type | Method and Description |
---|---|
static void |
centerFrame(JDialog dialog,
int width,
int height)
Sets a JDialog on the screen center
|
static void |
centerFrame(JFrame frame,
int width,
int height)
Sets a JFrame on the screen center
|
static void |
searchDialogPosition(JDialog dialog,
int width,
int height)
Sets a JDialog on the upper rigth corner
|
public static void centerFrame(JFrame frame, int width, int height)
frame
- JFramswidth
- Frame widthheight
- Frame heightpublic static void centerFrame(JDialog dialog, int width, int height)
dialog
- JDilogwidth
- Dilaog widthheight
- Dialog heightpublic static void searchDialogPosition(JDialog dialog, int width, int height)
dialog
- JDilogwidth
- Dilaog widthheight
- Dialog height