Post the code in [code] tags, the exact error, and what about it you don't understand.
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
Just put [code] before and [/code] after your code - or highlight it and click the code tag button at the top of the editor (the advaced editor, not the little quick reply one at the bottom of the thread)
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
The same as you load any JFrame.
pay payFrame = new pay();
payFrame .setSize(500,500);
payFrame .setVisible(true);
(It wouldn't hurt to read Sun's recommended coding conventions document either: http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html Class names should be capitalized so as not to be confused with a variable or method name)
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
These are some pretty long files. Don't have time to look at them right now, but will have time later today. Consider copying and pasting them (preferably an abridged version) into a post. To use code tags, do this:
[code=JAVA]
// paste your code here
[/code]
This will highlight the JAVA syntax and give line numbers to refer to. If you can refer to specific parts of the program and what you are trying to do that is not working, that will help and you'll get more people viewing it. I will check back in later today.
VernonDozier
Posting Expert
5,527 posts since Jan 2008
Reputation Points: 2,633
Solved Threads: 711
I could have sworn I posted within the last half hour. Must have just hit the preview or left the page before giving the system a chance to register the new post. Okay, I just want to make sure that we're talking about Buttons.java and pay.java and that last_try.java is irrelevant to this thread. And are you still having the problem and are the files still the same?
VernonDozier
Posting Expert
5,527 posts since Jan 2008
Reputation Points: 2,633
Solved Threads: 711