Results 1 to 12 of 12

Thread: Password Dailog

  1. #1
    Sarinam is offline Senior Member
    Join Date
    Jun 2008
    Posts
    121
    Rep Power
    0

    Default Password Dailog

    Hi All

    I wanat to create a Password Dailog Box which Name textfield and password Filed.If Name and password is correct then Dialog box allow to go some Dailog. I am new in java,So plz help me .If possibel then give me example Link..

    Thx's in Advance

  2. #2
    Sarinam is offline Senior Member
    Join Date
    Jun 2008
    Posts
    121
    Rep Power
    0

    Default

    Plz help me...............

  3. #3
    Niveditha's Avatar
    Niveditha is offline Senior Member
    Join Date
    May 2008
    Posts
    307
    Rep Power
    6

    Default

    Hi,
    Do a google search for login page in java, you will get a lot of examples
    To finish sooner, take your own time....
    Nivedithaaaa

  4. #4
    Sarinam is offline Senior Member
    Join Date
    Jun 2008
    Posts
    121
    Rep Power
    0

    Default

    Quote Originally Posted by Niveditha View Post
    Hi,
    Do a google search for login page in java, you will get a lot of examples
    Thxs i got example of loginFrame. But when i call it in main class then code is hange.So plz tell me how i call it..

  5. #5
    Niveditha's Avatar
    Niveditha is offline Senior Member
    Join Date
    May 2008
    Posts
    307
    Rep Power
    6

    Default

    Can you put your code here to check?
    And try with some other better example parallely.
    To finish sooner, take your own time....
    Nivedithaaaa

  6. #6
    Sarinam is offline Senior Member
    Join Date
    Jun 2008
    Posts
    121
    Rep Power
    0

    Default

    Quote Originally Posted by Niveditha View Post
    Can you put your code here to check?
    And try with some other better example parallely.
    my code is too long.So can you give me email id.Then i will give you full code..

  7. #7
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,589
    Rep Power
    23

    Default

    Are you getting compiler errors with this program?
    Please copy all of them and paste them here.

  8. #8
    Sarinam is offline Senior Member
    Join Date
    Jun 2008
    Posts
    121
    Rep Power
    0

    Default

    Quote Originally Posted by Norm View Post
    Are you getting compiler errors with this program?
    Please copy all of them and paste them here.
    I am not geting any type of error.Problem in frame is hange..So any body help me..Plz

  9. #9
    Sarinam is offline Senior Member
    Join Date
    Jun 2008
    Posts
    121
    Rep Power
    0

    Default

    Plz help me to solve aout that problem..I don't why it is happening..When i run LoginFarme and click Ok Button then Second Frame is came and Hang becouse LoginFrame is also runing in background.How can i solve that problem..

    LoginFrame code i am showing there..

    Plz help me

  10. #10
    Niveditha's Avatar
    Niveditha is offline Senior Member
    Join Date
    May 2008
    Posts
    307
    Rep Power
    6

    Default

    I feel there is some misplace in this part of code
    Java Code:
    if(name.equals("Mirtunjay") && pwd.equals("datadoctor")) {
                     Server.main(args);
    	    dispose();
    	    JOptionPane.showMessageDialog(null,"Hello");
    	} else {
    	    JOptionPane.showMessageDialog(this, "Incorrect username/password combination.", "Login Error", JOptionPane.ERROR_MESSAGE);
    	}
    What the above part of code does is
    1. Open Server form
    2. Dispose LoginFrame
    3. JoptionPane message

    Is this the order you want?
    Why do you want a JoptionPane message as well as Server form if user id and password is correct?

    Before opening either of them first dispose the LoginFrame that is the order sould be
    1. Dispose LoginFrame
    2. Open Server form/JoptionPane message not both.
    To finish sooner, take your own time....
    Nivedithaaaa

  11. #11
    Sarinam is offline Senior Member
    Join Date
    Jun 2008
    Posts
    121
    Rep Power
    0

    Default

    Quote Originally Posted by Niveditha View Post
    I feel there is some misplace in this part of code
    Java Code:
    if(name.equals("mm") && pwd.equals("dddr")) {
                     Server.main(args);
    	    dispose();
    	    JOptionPane.showMessageDialog(null,"Hello");
    	} else {
    	    JOptionPane.showMessageDialog(this, "Incorrect username/password combination.", "Login Error", JOptionPane.ERROR_MESSAGE);
    	}
    What the above part of code does is
    1. Open Server form
    2. Dispose LoginFrame
    3. JoptionPane message

    Is this the order you want?
    Why do you want a JoptionPane message as well as Server form if user id and password is correct?

    Before opening either of them first dispose the LoginFrame that is the order sould be
    1. Dispose LoginFrame
    2. Open Server form/JoptionPane message not both.
    xdfvgdgdgbdf

  12. #12
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    7

Similar Threads

  1. password ?!
    By jon80 in forum New To Java
    Replies: 9
    Last Post: 11-14-2008, 01:19 PM
  2. How to get password in SWT
    By Java Tip in forum SWT
    Replies: 0
    Last Post: 07-02-2008, 08:04 PM
  3. Password System help
    By quickfingers in forum New To Java
    Replies: 1
    Last Post: 06-23-2008, 06:18 PM
  4. Caling an Applet Method thru VBScript that shows a dailog box
    By prachi_goliwadekar in forum Java Applets
    Replies: 1
    Last Post: 04-18-2008, 06:45 AM
  5. Asking for password from a Servlet
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-27-2008, 08:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •