Originally Posted by bballrmx
PLEASE HELP IM SO LOST I HAVE NO IDEA WHAT TO PUT IN THE METHOD BODIES AND IN MAIN. im just a beginner and my teacher refuses to offer help.
I was given these instructions and i need to write my own code. this is what i was able to come up with.
In which case its likely time to contact a department head or dean. Instructors are paid to assist you in the learning process. If you are a beginner, you shouldn't be using GUI's in the first place.
Since you are using a gui though, the answer is simple: you don't put that in your main methods at all. You attach the event handlers for the keydowns or add a submit button and a ActionListener and chain the events to the method provided by the GuessPhrasePanel. So the main (which I wouldn't put in a panel class) is responsible for instantiating the frame, adding this panel, and attaching the listeners it requires.