Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-19-2008, 10:58 AM
Member
 
Join Date: Jul 2008
Posts: 10
Rep Power: 0
Aswq is on a distinguished road
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..
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 07-19-2008, 05:19 PM
Member
 
Join Date: Jul 2008
Posts: 28
Rep Power: 0
Jeremy is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-19-2008, 05:27 PM
Juggler's Avatar
Member
 
Join Date: Jul 2008
Location: Chennai,India
Posts: 16
Rep Power: 0
Juggler is on a distinguished road
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....
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Activation Frame Mir New To Java 34 07-22-2008 10:45 AM
close a frame.. tajinvillage New To Java 5 04-27-2008 11:22 PM
Resize frame lenny AWT / Swing 1 07-30-2007 12:18 AM
Frame Query Daniel AWT / Swing 1 07-05-2007 07:27 PM
Frame problems gary AWT / Swing 2 06-20-2007 02:21 PM


All times are GMT +2. The time now is 04:36 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org