Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JFrame to JInternalFrame

Status
Not open for further replies.

Cabaal

Programmer
Aug 28, 2001
9
US
Is anyone aware of the difficulties of transforming a JFrame to a JInternalFrame. Is this as easy as changing the extends class? Any hints are appreciated. I realize this does depend on the actions the JFrame takes, but they are fairly trivial. Thanks. Thanks,
Cabaal
 
Cabaal

Haven't had experience changing JFrame to JInternalFrame but did change an MDI application I had from JInternalFrame to JFrame.

What you have to remember is that you can only add an internal frame to a desktop manager, other wise it won't display. You actually sacrifice a bit of space with internal frames as well. I had an application that was fairly crammed as an internal frame but actually loooked a lot better as a JFrame.

A lot of the time it really is just a matter of extending the other class, but again the new class must be added to the desktop and can't simply be shown. I did have some repaint problems with a JInternalFrame as well, hence my decision to convert - it wasn't that I gave up (honest!) its just that it was on my final project for college and time was not something I had - and I didn't have enough technical knowledge regarding JInternalFrame operation to be able to address the problem. Changing it to a JFrame completely solved the problem though.

bruce21.jpg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top