Search:

Type: Posts; User: Hallowed

Search: Search took 0.08 seconds.

  1. Replies
    9
    Views
    3,383

    Re: JTextField ActionListener

    well with a mouse listener you can't use event.isMetaDown() or event.isAltDown()? or whatever to tell if they are clicking on the field? or even use cordinates to make sure if they click in the right...
  2. Replies
    9
    Views
    3,383

    Re: JTextField ActionListener

    Wouldn't that work for what your trying to do?
  3. Replies
    9
    Views
    3,383

    Re: JTextField ActionListener

    So I checked my book and it looks like you can do a KeyListener for the frame..



    import java.awt.event.*;

    addKeyListener( this );


    public void keyPressed(KeyEvent event)
  4. Replies
    9
    Views
    3,383

    Re: JTextField ActionListener

    I'm curious how to do this as well. I'd like it if you could just auto-update simply because new text was put into the field at all.
Results 1 to 4 of 4