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?

Edited by junweixiong: Mistake

3
Contributors
2
Replies
3
Views
4 Years
Discussion Span
Last Post by jalpesh_007
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.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.