Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Opening a JInternalFrame in a JInternalFrame  RSS feed

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have made a Java Swing application that takes input from the user and uses this input to get data from a database. This data is then used to create a graph using JFreeChart.
The program has a big JFrame that contains two JInternalFrames. In one of these frame I get the input from the user and in the other one I want the frame that the graph is created in to open (as a sort of internal frame in that internal frame).
The problem is that when the graph is created it opens in a hole new frame, and I can't get it to open inside the second JInternalFrame.
Does anyone have any surggestions to how this can be done??
Regards
S�ren Augustesen
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to create another JDesktopPane inside your JInternalFrame and then add another JInternalFrame to that JDesktopPane.
------------------
Happy Coding,
Gregg Bolinger
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!