Woah, confusing thread.
I suspect you don't really understand the difference between a class and an object. When you define a variable or method as static you are saying it belongs to the class,...
Type: Posts; User: ChristopherLowe
Woah, confusing thread.
I suspect you don't really understand the difference between a class and an object. When you define a variable or method as static you are saying it belongs to the class,...
You need to tell the button that the class is the action listener.
button.addActionListener(this);
You can read up on Action Listeners here
--- Update ---