Welcome to the forum!
When you post you need to actually ASK a question or present an issue.
All you did was say 'I want to do this and here is my code'. So what is the problem or question?
I took a Java class last semester. We never got to the chapter on GUI's but I'd like to start making them. I
I suggest you go through the trails in The Java Tutorials
There are several from simple to complex and working example code is included.
1. My question is: How do I correct the problem which caused Java to quit and report "Java failed with exit code 1?"
2. Okay, thanks. I'll check it out.
I realized that the main problem was that in Xcode, I had accidentally supplied the wrong file path for the Java executable. Although, now it still replies with exit code 1, just a bit differently. Now it says " Command /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/java failed with exit code 1".