Sure, here's the BorderLayout tutorial, complete with sample code. Also, check out this thread, where I show nested BorderLayouts.
You really should be able to find this stuff yourself; once you...
Type: Posts; User: dlorde
Sure, here's the BorderLayout tutorial, complete with sample code. Also, check out this thread, where I show nested BorderLayouts.
You really should be able to find this stuff yourself; once you...
You need to add frame.pack() after adding the last component to it, so they get laid out properly. Ideally this would be before you set the frame visible, which is usually the last thing to do.
I...
I ran your code and got a frame with an 'Add' button in the middle, and a tiny square of something at its top left. The tiny square might be a JTable, but it's too small to tell. I suggest you either...