|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectnet.aronnax.CountPaths.GUI
public class GUI
Class GUI provides a graphical user interface to run the CountPaths code. It is an alternative to the command line interface (CLI).
CLI,
CountPaths| Constructor Summary | |
|---|---|
GUI()
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt)
The actionPerformed method is required to implement the ActionListener class which allows us to read user interaction. |
void |
createAndShow()
The createAndShow() method actually creates the window for the user to interact with. |
static void |
main(java.lang.String[] args)
The main method just launches the GUI; otherwise, it is useless here. |
void |
run()
The run method reads the values from the GUI fields and runs the CountPaths class with the values in said fields. |
void |
runningAsApplet()
The runningAsApplet method allows the GUI class to disable features that are not compatible with an Applet. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GUI()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public void createAndShow()
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed in interface java.awt.event.ActionListenerevt - The ActionEvent that triggered this method.public void run()
public void runningAsApplet()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||