The Artima Developer Community
Sponsored Link

Java Answers Forum
Moving from frame to frame

1 reply on 1 page. Most recent reply: Mar 21, 2002 2:31 PM by Charles Bell

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
angela

Posts: 2
Nickname: tange
Registered: Mar, 2002

Moving from frame to frame Posted: Mar 21, 2002 4:41 AM
Reply to this message Reply
Advertisement
Does any one know how to move from frame to frame from the action performed event of a button, code would be helpful!!


Charles Bell

Posts: 519
Nickname: charles
Registered: Feb, 2002

Re: Moving from frame to frame Posted: Mar 21, 2002 2:31 PM
Reply to this message Reply

public void actionPerformed(ActionEvent ae){
if (ae.getActionCommand().compareTo("Next") == 0){
oldframe.setVisible(false);
newframe.setVisible(true);
}
}


or


public void actionPerformed(ActionEvent ae){
if (ae.getActionCommand().compareTo("Next") == 0){
oldframe.dispose();
newframe.setVisible(true);
}
}

Flat View: This topic has 1 reply on 1 page
Topic: Java version of credit decision engine Previous Topic   Next Topic Topic: RMI Classloading and referenced classes

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use