screenshot.33.jpg
The auto correct keeps telling me to add an @Override, but the button does not show in the test when i do and when i don't. Why is the listener getting an error and not showing in the above frame. Appreciate help, thanks!
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
screenshot.33.jpg
The auto correct keeps telling me to add an @Override, but the button does not show in the test when i do and when i don't. Why is the listener getting an error and not showing in the above frame. Appreciate help, thanks!
Please post the code you are having problems with here on the forum, not images of code.
Also copy the full text of the compiler error messages and paste it here.Why is the listener getting an error
If you don't understand my answer, don't ignore it, ask a question.
You added your JButton to the JPanel but not the JPanel to the JFrame. Along with posting the error message, please also post the code in text so i can copy paste it into my IDE.
Writing code is your job, helping you fix and understand it is mine.
<-- Be sure to thank and REP (Star icon) those who have helped you. They appreciate it!
Please edit your post and wrap your code with
[code=java]
<YOUR CODE HERE>
[/code]
to get highlighting and preserve formatting.
If you don't understand my answer, don't ignore it, ask a question.