Hello community,
I want to use a GUI I programmed with java to open a class with jme-elements.
The jme-class (HelloZebra) simply should open the app without showing the settings, so
[java]app.setShowSettings (false);[/java] is given.
If I compile this class and start it, it works and shows me my models.
Now I programmed a normal GUI-class with buttons and so on, and I gave these buttons ActionListeners.
[java]zebrabutton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
HelloZebra showzebra = new HelloZebra();
}
});[/java]
If I start it now, it shows me my GUI with the buttons and so on, but when I click on zebrabutton, nothing happens.
Why? I need help!