1,105,320 Community Members

How to wait for user input

Member Avatar
junweixiong
Newbie Poster
6 posts since Nov 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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?

Member Avatar
NormR1
Posting Sage
7,723 posts since Jun 2010
Reputation Points: 563 [?]
Q&As Helped to Solve: 793 [?]
Skill Endorsements: 16 [?]
Team Colleague
 
0
 

Use a modal dialog.

Question Answered as of 1 Year Ago by NormR1
Member Avatar
jalpesh_007
Posting Whiz
385 posts since Sep 2010
Reputation Points: -3 [?]
Q&As Helped to Solve: 43 [?]
Skill Endorsements: 6 [?]
 
0
 

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.

You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article