VANET Simulator
 All Classes Functions Variables
Static Public Member Functions | List of all members
vanetsim.gui.helpers.ButtonCreator Class Reference

Static Public Member Functions

static JButton getJButton (String imageName, String command, String altString, ActionListener listener)
 

Member Function Documentation

static JButton vanetsim.gui.helpers.ButtonCreator.getJButton ( String  imageName,
String  command,
String  altString,
ActionListener  listener 
)
inlinestatic

Convenience method to get a JButton with an image on it.

Parameters
imageNamethe filename of the image relative to the vanetsim/images directory
commanda command string which can be used to track events in actionPerformed()
altStringan alternative string to display on the button when the original image can't be loaded and as a tooltip
listeneran ActionListener which performs actions on button clicks
Returns
the JButton created

The documentation for this class was generated from the following file: