This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes problem when adding an internal frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "problem when adding an internal frame " Watch "problem when adding an internal frame " New topic
Author

problem when adding an internal frame

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
hi,
i have an application in which i had to add an internal frame and show the image of particular icon when some button is clicked. i have added the internal frame to a JLayeredPane and i am able to get the image, but the problem is i am getting an exception when i drag the internal frame...is there any way to catch this exception..
i have also tried adding the internal frame to JDesktoppane then i am not getting the exception but there is a repainting problem..the main page gets repainted and everything on it gets erased and the color of the desktop is been set...
Chantal Ackermann
Ranch Hand

Joined: Sep 28, 2000
Posts: 508
hi,
I worked with internal frames and i had no probs. i added them to the desktoppane (that's the way sun suggests, i think). if you still have the problem, than send me the part of the code, maybe you just missed something.
chantal
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem when adding an internal frame
 
Similar Threads
adding an Image icon
panel and frame (Swing)
Opening JInternalFrame on JMenu selection
swing application problem
Help for JFrame