|
static JButton | getJButton (String imageName, String command, String altString, ActionListener listener) |
|
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
-
imageName | the filename of the image relative to the vanetsim/images directory |
command | a command string which can be used to track events in actionPerformed() |
altString | an alternative string to display on the button when the original image can't be loaded and as a tooltip |
listener | an ActionListener which performs actions on button clicks |
- Returns
- the
JButton
created
The documentation for this class was generated from the following file:
- /Users/andreastomandl/Desktop/Vanet-Sim/Simulator/src/vanetsim/gui/helpers/ButtonCreator.java