Search:

Type: Posts; User: TP-Oreilly

Search: Search took 0.12 seconds.

  1. Replies
    8
    Views
    1,853

    Re: Could you explain this code to me please?

    :D Thank you.
  2. Replies
    8
    Views
    1,853

    Re: Could you explain this code to me please?

    One last thing, you said:

    "It has to be an ActionListener. Note that ActionListener is an interface, so the actual instance is going to be a class that implements ActionListener, or a class that...
  3. Replies
    8
    Views
    1,853

    Re: Could you explain this code to me please?

    Thanks very much for the help, both in this thread and the others :)

    The thing what threw me was the curly braces after creating the object because ive never seen object creation followed by curly...
  4. Replies
    8
    Views
    1,853

    Re: Could you explain this code to me please?

    Hmm. Could you answer my few questions?

    1. Am i right in thinking that the parameter of the addActionListener method has to be an ActionListener object which defines what to do when the item is...
  5. Replies
    8
    Views
    1,853

    Could you explain this code to me please?

    Hi,

    In my simple JFrame window application I have the following code:


    exitItem.addActionListener(new ActionListener(){

    public void actionPerformed(ActionEvent e){

    System.exit(0);
Results 1 to 5 of 5