swing - Java JDesktopPane/JInternalFrame Centering Issue -
i'm working jdesktoppane
's , jinternalframe
's , i'm having difficulty centering frames in desktop. i've found when determine center of desktop using getwidth()
, getheight()
, position center of desktop if jframe
wasn't maximized. there way 'real' dimensions of desktop?
okay, after several hours of debugging, figured out problem was: jframe
wasn't made visible until after had finished adding/positioning everything, wasn't set it's maximized size.
java swing jinternalframe jdesktoppane
No comments:
Post a Comment