Results 1 to 20 of 22
Thread: jinternal frame in a jfram query
- 05-04-2012, 07:32 PM #1
Member
- Join Date
- May 2012
- Posts
- 10
- Rep Power
- 0
jinternal frame in a jfram query
closing a jframe and simultaneously opening another jframe with a button is easy
we can do this by close(), dispose,this.setvisibe(false)
my query is :-
i have made a jinternalframe in a jframe which i implemented using jdesktopPane
i have a button LOGIN in the jinternalframewhich closes the jinternalframe only and opens another jframe.
i want a code which will close jframe(including the internalframe) on clicking the button LOGIN in jinternalframe
- 05-04-2012, 07:58 PM #2
Re: jinternal frame in a jfram query
Moved from Advanced Java.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 05-04-2012, 07:59 PM #3
Re: jinternal frame in a jfram query
You can't program in Java without a consistently working shift key.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 05-04-2012, 08:01 PM #4
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,619
- Rep Power
- 5
Re: jinternal frame in a jfram query
We do ask that you be forthright when posting in multiple forums...
Cross posted at jinternalframe in a jframe query
-
Re: jinternal frame in a jfram query
The technical solution to your problem is one of simply having a reference to the enclosing JFrame, and this can be obtained via a method of the SwingUtilities class (check out the API -- the method has ancestor in the title).
But having said this, I suggest that you don't go flipping JFrames in and out of view as this is a very annoying to the user. Instead use a CardLayout to swap views in a single JFrame, that and possibly use modal dialogs sparingly as well.
-
Re: jinternal frame in a jfram query
- 05-04-2012, 08:05 PM #7
Re: jinternal frame in a jfram query
Why do they call it rush hour when nothing moves? - Robin Williams
-
Re: jinternal frame in a jfram query
- 05-04-2012, 08:40 PM #9
Member
- Join Date
- May 2012
- Posts
- 10
- Rep Power
- 0
-
Re: jinternal frame in a jfram query
We don't mind you posting to 50 forum, but you didn't inform us up-front. So what you're doing is asking volunteers to help you for free without letting them know that you're doing the same elsewhere, and so we risk wasting our time answering questions that may have already been answered on another site.
Next time, be up front about your cross-posts and provide links.
As for this current question, I'll leave it to the volunteers in the other forums to answer it for you. I've wasted enough time on it.
- 05-04-2012, 08:46 PM #11
Member
- Join Date
- May 2012
- Posts
- 10
- Rep Power
- 0
Re: jinternal frame in a jfram query
ohk i'm sorry.,.,i dint knew forum rules that we have to post links to other forums.,will do that next time
could you please help me ?it is related to my project.
it is really urgent
- 05-04-2012, 08:50 PM #12
Member
- Join Date
- May 2012
- Posts
- 10
- Rep Power
- 0
Re: jinternal frame in a jfram query
please reply moderator
- 05-04-2012, 08:53 PM #13
Member
- Join Date
- May 2012
- Posts
- 10
- Rep Power
- 0
Re: jinternal frame in a jfram query
i am doing btech.,my 300 marks depend on it .,.,i am done 90 percent ,.just this simple error,.,
this is my first forum post,.,i dint knew that we have to share links.,
its that simple,.
will u help me ?
- 05-04-2012, 09:21 PM #14
Member
- Join Date
- May 2012
- Posts
- 10
- Rep Power
- 0
Re: jinternal frame in a jfram query
seriously ,.,.this is too much.you just care about cross post.,,.,.
no helping a guy,.,huh
-
Re: jinternal frame in a jfram query
I've given you two potential solutions for your problem already, what happens when you've tried either one?
- 05-05-2012, 06:04 AM #16
Member
- Join Date
- May 2012
- Posts
- 10
- Rep Power
- 0
Re: jinternal frame in a jfram query
sir., i dont know this much coding, i am a beginner
as you can see from the above sanpshots, the back frame is not getting closed on clicking the button in internal frame.
can i mail you my project ? can you do it for me ?
as i am not able to understand your technical language.
- 05-05-2012, 06:06 AM #17
Member
- Join Date
- May 2012
- Posts
- 10
- Rep Power
- 0
Re: jinternal frame in a jfram query
- 05-05-2012, 08:19 AM #18
- 05-05-2012, 08:25 AM #19
Member
- Join Date
- May 2012
- Posts
- 10
- Rep Power
- 0
Re: jinternal frame in a jfram query
Fine. I am done with you..keep all your knowledge too yourself
and dont indulge into humanity . .
Bye
- 05-05-2012, 11:28 AM #20
Re: jinternal frame in a jfram query
Not helping someone to cheat has nothing to do with humanity.
Recommended reading: How to ask questions the smart way
dbWhy do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
JInternal Frame Connectivity with databse
By mcajavaprogramer in forum New To JavaReplies: 5Last Post: 04-20-2012, 01:31 PM -
JInternal Frame Connectivity with databse
By mcajavaprogramer in forum AWT / SwingReplies: 1Last Post: 04-20-2012, 01:30 PM -
JInternal Frame Connectivity with databse
By mcajavaprogramer in forum SpringReplies: 1Last Post: 04-20-2012, 09:25 AM -
add jlabel to jinternal frame.
By niteangell21 in forum New To JavaReplies: 4Last Post: 10-09-2010, 09:37 PM -
Disable Drag mode of Jinternal Frame
By smartsubroto in forum New To JavaReplies: 4Last Post: 06-23-2008, 07:21 AM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote




Bookmarks