Millions saw the apple fall, but Newton asked why.
I face problem that's when i put JFrame on extended state i.e. Its width & height same as system resolution then some times, it exceed the visible area on different monitor...
I solve it by use JFrame height & width less than 10.
but when i drag small JPanels to the boundary, it go beyond visible region.
I solve it by use JFrame height & width less than 10.
I solve it by use JFrame height & width less than 10 with compare to system resolution.
Millions saw the apple fall, but Newton asked why.
Basic thing is i try to avoid JComponent to go all possible directions [when (x,y) are as less than 1 or greater than system resolution)]!
if the frame/contentPane size is 800,600 and the panel size is 25,25 then the safe rectangle is
0,0,775,575
so, if the panel's x,y, is anywhere inside that rectangle, no part of the dragged panel is outside the frame.
Millions saw the apple fall, but Newton asked why.
re-read my earlier post.
write the example on paper.
try to understand it's simplicity.
Millions saw the apple fall, but Newton asked why.