The following code gives an error at the ‘switch (e.getActionCommand())’ line. Inner class error - variable needs to be final. Believe JME3 SDK is running Java 1.7. When I compile this on my Mac, running Java 1.8 there is no problem.
Ideas? Nike
public void actionPerformed(ActionEvent e) {
Toolkit.getDefaultToolkit().beep();
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
switch (e.getActionCommand()) {
case "FSM" :
FSMCodeSample.createAndShowGUI();
break;