• Post Reply Bookmark Topic Watch Topic
  • New Topic

Registration Form  RSS feed

 
Aaron Boyse
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am creating a Registration / Login Form, but I want to output a Successful Registration / Login Message once the user enters their credentials. How do I go about it?

 
K. Tsang
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your app gui or web based?
 
Campbell Ritchie
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I presume you can enter name rank and number (or password) via the command line? That is a prerequisite (I think) for getting anything working.
 
Aaron Boyse
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
GUI Based and UserName and PassWord...
 
Sankalp Bhagat
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use JOptionPane
 
K. Tsang
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
or JDialog
 
Sankalp Bhagat
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JOptionPane.showMessageDialog(null, "Registered successfully");
 
Aaron Boyse
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


What is wrong with this code?
 
Ahmed Bin S
Ranch Hand
Posts: 385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) Please format code using the "Code" tags.
2) Your program doesn't even compile. Please in future post the errors you are getting instead of just asking what is wrong.
3) You might want to start off by looking at this line:



Now as you can see:



So there is a problem, you are trying to call addActionListener() on an Object object, but Object doesn't have this method.

http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html

 
Knute Snortum
Sheriff
Posts: 4289
127
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aaron,

I edited your post to UseCodeTags (that's a link, look at it!). It makes your code look much better.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!