Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to center a JInternalFrame inside a JFrame

843807Apr 12 2010 — edited Apr 12 2010
I have a JFrame and a JDesktopPane inside the JFrame. In my code I add a JInternalFrame to the JDesktopPane. But the JInternalFrame appears on the top left corner of the JFrame. I want it to appear at the center. How can I do this?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 10 2010
Added on Apr 12 2010
2 comments
352 views