• Post Reply Bookmark Topic Watch Topic
  • New Topic

Log-In Menu

 
kelvin cheung
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am going to make an applikasjon for a school.
It shows the log-in screen like this.

Admin, Student or an Exam-guard can choose to log-in.
And I made this easily.


But after a person have choosen 1 of the choices;
it should appear a screen like this:

How can I do it? it's not JOptionPane. It's a new window.
 
Arnold Charming
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

This is an answer from a greenhorn Try opening a JDialog when a user makes' the choice.
 
kelvin cheung
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,
are there any other choices beside JDialog?
cause i want the first screen to be completely gone when the second screen appear.

thank you for the reply
 
kelvin cheung
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how do i do that?
when i click admin on the first screen,
then it should open an adminDialog which asks for userID and password.

here is my code:


but i get this error:
non-static method visDialog() cannot be referenced from a static context
adminDialog.visDialog();


please help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!