|
-
Jul 21st, 2007, 01:16 PM
#1
Re: Java question
The equal works well as previously I using == and it doesn't seems to work, don't know why.
The "==" compares Object references (something like a pointers) and they'll be equal only if it was the exact same object.
Regarding the FocusListener, how can I use it? I think I use it the wrong way resulting in program startup, textfield straight away change instead of mouse over and click it.
It might be that the form has nothing but the JTextField or maybe it's the number 0 in the tab index map so it gains focus on startup
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Jul 22nd, 2007, 11:32 AM
#2
Thread Starter
Hyperactive Member
Re: Java question
Thanks for the explanation but somehow I'm still not understand on the FocusListener. I can't seems to make it work like those ActionListener. Actually I just want to make it like those website with forms with textbox with default text, and user click the textbox, the default text will be gone? Any idea?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|