Horje
how to center a window in java Code Example
java how to center window
setLocationRelativeTo(null);
how to center a window in java
public static void centreWindow(Window frame) {
    Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();
    int x = (int) ((dimension.getWidth() - frame.getWidth()) / 2);
    int y = (int) ((dimension.getHeight() - frame.getHeight()) / 2);
    frame.setLocation(x, y);
}




Java

Related
java dimension Code Example java dimension Code Example
jsp check if request parameter exists Code Example jsp check if request parameter exists Code Example
declaring variables views in java android Code Example declaring variables views in java android Code Example
minecraft detect specific item in chest with custom name Code Example minecraft detect specific item in chest with custom name Code Example
create a toast message in android Code Example create a toast message in android Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9