Results 1 to 18 of 18

Thread: [RESOLVED] Java question

Hybrid View

  1. #1
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    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

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    355

    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
  •  



Click Here to Expand Forum to Full Width