Ah, I didn't see the part about where you're using a tool to generate the code. I usually write my GUI's by hand, and the above code is what I would do by hand.
I guess it's ok with this code if...
Type: Posts; User: helloworld922
Ah, I didn't see the part about where you're using a tool to generate the code. I usually write my GUI's by hand, and the above code is what I would do by hand.
I guess it's ok with this code if...
In Java, the program entry point is always the main method (well, applets are a special case. You don't write the main method yourself.).
A second comment is that you should really create a...
Please post your code and we can help you find where the problem is.
Likely this is what I think the problem could be: You forgot to set the JFrame to be visible.