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