Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 10-07-2004, 02:49 PM   #1
Registered: Feb 2003
Location: Hawaii
Distribution: Debian
Posts: 130

Rep: Reputation: 16
Unhappy calling a frame from another frame : JAVA

Background: : I have two frame/classes. A login screen and a "display results" screen. A login screen has a login button which takes you to display results screen.
Display eesults screen as a logout button however...

Problem: when you click on the logout button, it generates two instances of the login screen. In other words, two login screens appear one on top of the other on the left hand corner NOT in the center like the first time the program launches.

Behavior I want: once I click logout on "display results" screen, I go right away to the login screen. Exactly the way it previously was: centered and with only one instance running not two as it is right now.

This is on the login screen.
 void loginbtn_actionPerformed(ActionEvent e)

//if login successful, you will get the results screen
   Display results = new Display();

this is on the results screen

  void loginOutbtn_actionPerformed(ActionEvent e)
   //go back to login screen.
    Welcome loginScreen = new Welcome();

thanks in advance,



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
frame question rksprst Programming 1 01-27-2005 10:56 PM
Frame-by-frame video jeffChuck Linux - Software 0 10-12-2004 10:04 PM
java menu inside frame toovato Programming 1 11-05-2003 06:53 AM
frame rate thegreatgatsby Linux - Software 2 10-07-2003 12:19 PM
Frame buffer bkeating Linux - Newbie 6 04-22-2003 06:09 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration