aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Swing JFrame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Swing JFrame" Watch "Swing JFrame" New topic
Author

Swing JFrame

sufi thangadurai
Greenhorn

Joined: Oct 21, 2008
Posts: 1

I have one parent JFrame in that I have two buttons, IF i click the first button I want to open one jInternalframe . in the opened jinternalframe I have one close button. if i press the close button, the internal frame should be closed, not the parent frame.please anybody can help me by writing 15 lines of code?
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Hi there and welcome to Javaranch!

Firstly a quick admin matter, this looks like a Swing problem so I'll move it over to that Forum. Also please note that Javaranch is NotACodeMill.

Can you post the actual code that you have so far? We can then help you resolve this problem


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
I assume that you've gone through the Sun tutorial on how to use internal frames? If so, it should have laid it all out for you. A better question here then may be "what specifically in the tutorial did you not understand?" I also second the recommendation above that you post your current code and explain how it's not working.

If you do post your code, you will do well to make it compilable, and simple as possible. I recommend that you use simple layouts here and avoid using NetBeans generated layouts as not all of us can compile these and they are large, bulky, and ugly as sin. Good luck.
[ October 22, 2008: Message edited by: pete stein ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Swing JFrame