Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Please Help with User Login page...

807603Oct 24 2007 — edited Oct 25 2007
Hi There,

I am having a bit of trouble understanding textbox's in GUI's, what i want to do is to assign the value in the userName textbox to a String variable and the same with the password... here is the code for the username section.


					userName = new JTextField();
					jPanel1.add(userName);
					userName.setBounds(164, 109, 123, 21);
					userName.addKeyListener(new KeyAdapter() {
						public void keyTyped(KeyEvent evt) {
							
						}
and here is the code for the password section
password = new JPasswordField();
					jPanel1.add(password);
					password.setBounds(165, 143, 122, 21);
I am using Jigloo for the GUI and really dont understand GUI's well.

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 22 2007
Added on Oct 24 2007
7 comments
141 views