Java Swing Screen
Java examples for Swing:Screen
Click the following links for the tutorial for Swing and Screen.
Centers an AWT window on the screen.
Use this static method if you want to center and set its position compared to the size of the current users screen size.
fit Component Inside Screen
fit Component Into Screen
fit Popup Menu Inside Screen
center Component On Screen
set Component Bounds To Center Screen
move Component To Screen Center
get Screen Size
is Location In Screen Bounds
This function handle the screenshot
Poses component inside the screen bounds
To make sure the rectangle is within the screen bounds.
Modifies the position of rect so that it is completely on screen if that is possible.
Ensures the rectangle is visible on the screen.
Gets the screen size.
Gets the local monitor's screen bounds.
Get screen area of all monitors.
Gets the screen bounds.
To make sure the rectangle has overlap with the screen bounds.
Centers a window on screen.
center Window On Screen
is X On Screen
is Y On Screen
is Point On Screen
Verifies if the given point is visible on the screen.
Positions the specified frame in the middle of the screen.
Computes the maximum bounds of the current screen device.
Positions the specified frame at a relative position in the screen, where 50% is considered to be the center of the screen.
Positions the specified frame at a random location on the screen while ensuring that the entire frame is visible (provided that the frame is smaller than the screen).
add Window Listener
set Window Transparent
center And Size Window
Tries to find the current focused window.
get Position Within Window
get Window Ancestor
center Window Relative To Owner
create Wait Window
position Frame On Screen
get Screen Rectangle
move Rectangle To Fit The Screen
get Maximum Window Bounds
get Focused Window
get Location In Window
Center a big window