3 Replies - 3310 Views - Last Post: 13 March 2012 - 06:56 PM Rate Topic: -----

#1 NantucketSleighride  Icon User is offline

  • D.I.C Head

Reputation: 22
  • View blog
  • Posts: 108
  • Joined: 13-February 11

JInternalFrame not showing inside JDesktopPane, but shows in JFrame

Posted 12 March 2012 - 05:27 PM

So I decided to mess around with the idea of having a main frame with frames inside it. Started messing around with JInternalFrames.

I went to the oracle page: http://docs.oracle.c...ernalframe.html and read up on the subject and gave it a whirl.

Wouldn't work. Then I tried removing the JDesktopPane and adding the new JInternalFrame directly to the primary JFrame. It worked - showed up; I could move it around, close it (minimize and resize wouldn't work).

So I added a JDesktopPane back in and read some tutorials and tried them and nothing would work. Finally looked at the full sample code on the Oracle page I linked to and copied it directly to Eclipse and ran it. Crazy thing, it didn't work either - directly from Oracle. The JInternalFrames simply will not show up for me on top of a JDesktopFrame.

I downloaded the demo using "Launch" from that same page, and ran it and it worked like it was supposed to. So something is odd.

I'm wondering if anyone has any insite to this issue. I'm on an iMac, if it matters - which I wouldn't think it would.

This post has been edited by NantucketSleighride: 12 March 2012 - 05:42 PM


Is This A Good Question/Topic? 0
  • +

Replies To: JInternalFrame not showing inside JDesktopPane, but shows in JFrame

#2 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8346
  • View blog
  • Posts: 31,910
  • Joined: 06-March 08

Re: JInternalFrame not showing inside JDesktopPane, but shows in JFrame

Posted 12 March 2012 - 07:46 PM

Without seing your code not much we can say but try mine and tell us what happens

http://www.dreaminco...jinternalframe/
Was This Post Helpful? 1
  • +
  • -

#3 NantucketSleighride  Icon User is offline

  • D.I.C Head

Reputation: 22
  • View blog
  • Posts: 108
  • Joined: 13-February 11

Re: JInternalFrame not showing inside JDesktopPane, but shows in JFrame

Posted 13 March 2012 - 03:30 PM

View Postpbl, on 12 March 2012 - 07:46 PM, said:

Without seing your code not much we can say but try mine and tell us what happens

http://www.dreaminco...jinternalframe/


Thanks - I tossed your code into Eclipse and it works perfectly fine. Strange the official code from Oracle didn't, though.

I'll pick your code apart and figure out where I was going wrong.
Was This Post Helpful? 0
  • +
  • -

#4 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8346
  • View blog
  • Posts: 31,910
  • Joined: 06-March 08

Re: JInternalFrame not showing inside JDesktopPane, but shows in JFrame

Posted 13 March 2012 - 06:56 PM

View PostNantucketSleighride, on 13 March 2012 - 05:30 PM, said:

Strange the official code from Oracle didn't, though.

That is strange :) You have a link ?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1