Page 1 of 2 12 LastLast
Results 1 to 20 of 22
Like Tree1Likes

Thread: jinternal frame in a jfram query

  1. #1
    rahul.r4 is offline Member
    Join Date
    May 2012
    Posts
    10
    Rep Power
    0

    Default 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

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,452
    Rep Power
    20

    Default Re: jinternal frame in a jfram query

    Moved from Advanced Java.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,452
    Rep Power
    20

    Default Re: jinternal frame in a jfram query

    You can't program in Java without a consistently working shift key.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,641
    Rep Power
    7

    Default 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
    DarrylBurke likes this.

  5. #5
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default Re: jinternal frame in a jfram query

    Quote Originally Posted by rahul.r4 View Post
    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
    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.

  6. #6
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default Re: jinternal frame in a jfram query

    Quote Originally Posted by doWhile View Post
    We do ask that you be forthright when posting in multiple forums...

    Cross posted at jinternalframe in a jframe query
    Thanks for that doWhile. I hate it when folks post to multiple fora and are not considerate enough to tell us up front that they are doing this.

  7. #7
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,452
    Rep Power
    20

    Default Re: jinternal frame in a jfram query

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  8. #8
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

  9. #9
    rahul.r4 is offline Member
    Join Date
    May 2012
    Posts
    10
    Rep Power
    0

    Default Re: jinternal frame in a jfram query

    ya i posted in 3 forums of java,.,as i needed the answer
    did i do something wrong ?? its not that i am promoting my business or something
    i had a query

    and please solve my query in simple words.attached some photos to make you understand better my problem

    jinternal frame in a jfram query-1.pngjinternal frame in a jfram query-2.pngjinternal frame in a jfram query-3.png

  10. #10
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default Re: jinternal frame in a jfram query

    Quote Originally Posted by rahul.r4 View Post
    ya i posted in 3 forums of java,.,as i needed the answer
    did i do something wrong ?? its not that i am promoting my business or something
    i had a 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.

  11. #11
    rahul.r4 is offline Member
    Join Date
    May 2012
    Posts
    10
    Rep Power
    0

    Default 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

  12. #12
    rahul.r4 is offline Member
    Join Date
    May 2012
    Posts
    10
    Rep Power
    0

    Default Re: jinternal frame in a jfram query

    please reply moderator

  13. #13
    rahul.r4 is offline Member
    Join Date
    May 2012
    Posts
    10
    Rep Power
    0

    Default 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 ?

  14. #14
    rahul.r4 is offline Member
    Join Date
    May 2012
    Posts
    10
    Rep Power
    0

    Default Re: jinternal frame in a jfram query

    seriously ,.,.this is too much.you just care about cross post.,,.,.
    no helping a guy,.,huh

  15. #15
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default 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?

  16. #16
    rahul.r4 is offline Member
    Join Date
    May 2012
    Posts
    10
    Rep Power
    0

    Default 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.

  17. #17
    rahul.r4 is offline Member
    Join Date
    May 2012
    Posts
    10
    Rep Power
    0

    Default Re: jinternal frame in a jfram query


  18. #18
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,452
    Rep Power
    20

    Default Re: jinternal frame in a jfram query

    Quote Originally Posted by rahul.r4 View Post
    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.
    This is a forum, not a code factory. Also, we don't condone cheating.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  19. #19
    rahul.r4 is offline Member
    Join Date
    May 2012
    Posts
    10
    Rep Power
    0

    Default 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

  20. #20
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,452
    Rep Power
    20

    Default 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

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Page 1 of 2 12 LastLast

Similar Threads

  1. JInternal Frame Connectivity with databse
    By mcajavaprogramer in forum New To Java
    Replies: 5
    Last Post: 04-20-2012, 02:31 PM
  2. JInternal Frame Connectivity with databse
    By mcajavaprogramer in forum AWT / Swing
    Replies: 1
    Last Post: 04-20-2012, 02:30 PM
  3. JInternal Frame Connectivity with databse
    By mcajavaprogramer in forum Spring
    Replies: 1
    Last Post: 04-20-2012, 10:25 AM
  4. add jlabel to jinternal frame.
    By niteangell21 in forum New To Java
    Replies: 4
    Last Post: 10-09-2010, 10:37 PM
  5. Disable Drag mode of Jinternal Frame
    By smartsubroto in forum New To Java
    Replies: 4
    Last Post: 06-23-2008, 08:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •