Results 1 to 3 of 3
  1. #1
    Aswq is offline Member
    Join Date
    Jul 2008
    Posts
    10
    Rep Power
    0

    Default Frame to other Frame

    Hi All

    As you know i am new in java.I want to create a Two frame.Frame A and Frame B and both have button BB. When Frame A is run and click the button BB then Frame B is show and Frame is Close.

    Can any one help me..

    Thx's in Advance..

  2. #2
    Jeremy is offline Member
    Join Date
    Jul 2008
    Posts
    28
    Rep Power
    0

    Default

    Are you able to write the program so Frame A and B show up with a button in each of them? Once you do that, you'll need to explore the JButton.addActionListener() method.

  3. #3
    Juggler's Avatar
    Juggler is offline Member
    Join Date
    Jul 2008
    Location
    Chennai,India
    Posts
    16
    Rep Power
    0

    Smile Try This

    //ActionListener
    public void actionPerformed(ActionEvent ae)
    {
    //this is another frame window
    frame2 frm=new frame2();
    this.hide();
    }

    I think this code will help u....

Similar Threads

  1. [SOLVED] Activation Frame
    By Mir in forum New To Java
    Replies: 34
    Last Post: 07-22-2008, 09:45 AM
  2. close a frame..
    By tajinvillage in forum New To Java
    Replies: 5
    Last Post: 04-27-2008, 10:22 PM
  3. Resize frame
    By lenny in forum AWT / Swing
    Replies: 1
    Last Post: 07-29-2007, 11:18 PM
  4. Frame Query
    By Daniel in forum AWT / Swing
    Replies: 1
    Last Post: 07-05-2007, 06:27 PM
  5. Frame problems
    By gary in forum AWT / Swing
    Replies: 2
    Last Post: 06-20-2007, 01:21 PM

Posting Permissions

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