I cant find any syntax other than
"public class ClassName extends JPanel
implements ActionListener {"
which doesnt help me...
Type: Posts; User: pottsiex5
I cant find any syntax other than
"public class ClassName extends JPanel
implements ActionListener {"
which doesnt help me...
Hey,
So i put implement ActionListener into the class line like this:
public static void main implements ActionListener (String[] args) {
but i get a red line under "main" and "implements...
Do i have to write the code the way they did, writing the class as an extension of JPanel? I added in the imports they had, and i get "non-static variable this cannot be referenced from a static...
Ive looked at it, but i havent been able to do what theyve done. I try this:
import javax.swing.*;
import java.awt.*;
public class LessonOne {
public static void main(String[] args) {...
Hi,
Im still relatively new to GUI. Ive seen a lot of tutorials out there, but none of them really explain what im doing, and just show examples. Im trying to learn how to make a JButton do...