Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Navigating from one window to another

  1. #1
    Junior Member
    Join Date
    Jun 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Navigating from one window to another

    Hello,
    I m creating an authentication mechanism in which window will display user name and password, it contains buttons such as OK, CANCEL and NEW USER.
    If user is " a new user" i just want him to register himself on new window and at d same time old window will be disabled or hidden. When user finished with the formality he should press OK, this OK button should take him to previous window.
    PROBLEM is tht how to jump from one window to another.

    PLZ HELP!!


  2. #2
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 294 Times in 227 Posts
    Blog Entries
    4

    Default Re: Navigating from one window to another

    Hello visharaddhavle83. Welcome to the Java Programming Forums.

    Similar issues have been addressed on the forums before. See if this thread will help you:

    http://www.javaprogrammingforums.com...-netbeans.html

    You can use frame.setVisible(false); to hide your windows.

    If you need help, post back and we will take it from there...
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

  3. #3
    Junior Member
    Join Date
    Aug 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Navigating from one window to another

    the best solution is to hide your current window by just using set_visible=0 or the hide functions applied whenever nedded
    for switching b/w the frames give every frame a function name which may be in the same class or in other class in some other package,add some keylistneres or buttons and when needed call those func.
    this the best thing to do??? try this out????

Similar Threads

  1. Facing problem with open modeless dialog from modal window
    By Divya in forum Java Theory & Questions
    Replies: 1
    Last Post: May 14th, 2009, 03:18 AM