User's guide > Action Listeners > Creating an ActionListener Implementation
Creating an ActionListener Implementation
 
You can create a proper ActionListener class using either of the following methods:
Define a separate class within the java file.
Example:
public class MyApp {
session.AddActionListener (new SolidAL1());
}

class SolidAL1 extends DefaultSolidActionListener {
// Include overridden methods here
}
To use your action listener in different Java applications, define it in a separate file.
Example:
MyApp.java:
import solidAL1;

public class MyApp {
session.AddActionListener (new SolidAL1());
}

SolidAL1.java:
public class SolidAL1 extends DefaultSolidActionListener {
// Include overridden methods here.
}
Was this helpful?