We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,659 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

How to wait for user input

Hello,

I am making a Banking System, and this is the code for main.

import static java.lang.System.out;

public class BankSystem
{
    public static void main (String[] args)
    {

        new username();

        Password.setPassword("1234567");
        new Password();
    }
}

However, the problem is that both the username frame and password frame appears together. How do I make the username frame appear first, and after the username is authenticated?

3
Contributors
2
Replies
1 Day
Discussion Span
5 Months Ago
Last Updated
3
Views
Question
Answered
junweixiong
Newbie Poster
6 posts since Nov 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

Use a modal dialog.

NormR1
Posting Sage
Team Colleague
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16
Question Answered as of 5 Months Ago by NormR1

there are two types of dialog box.modal and non-modal.
you can use modal dialogbox,means you have to give preference first to this modal dialog box then other dialog box is appeared.

so try with modal dialog box.

jalpesh_007
Posting Whiz
328 posts since Sep 2010
Reputation Points: 4
Solved Threads: 36
Skill Endorsements: 3

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0640 seconds using 2.73MB