This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Swing JFrame" Watch "Swing JFrame" New topic

Swing JFrame

sufi thangadurai

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

Joined: Jun 24, 2003
Posts: 3275

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

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 ]
subject: Swing JFrame
It's not a secret anymore!