Search:

Type: Posts; User: dlorde

Search: Search took 0.17 seconds.

  1. Replies
    5
    Views
    2,102

    Re: Adding JButtons to Frame

    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...
  2. Replies
    5
    Views
    2,102

    Re: Adding JButtons to Frame

    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...
  3. Replies
    5
    Views
    2,102

    Re: Adding JButtons to Frame

    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...
Results 1 to 3 of 3