Rob Camick wrote:
Or you could also have created this structure by doing:
Dave Tolls wrote:So the pack inside the try/catch block has gone, but the pack() call in main() is still there?
But doesn't this piece of code does what you just said:
And then I added the components to panels like as in:
I post the whole code in case someone wants to run it to see how it works or to make something work.
And it threw an Illegal Argument Exception.
It's my first GUI actually ..
I do understand what you meant. It's just that there are many components and I am still learning.