Search:

Type: Posts; User: copeg

Search: Search took 0.07 seconds.

  1. Replies
    5
    Views
    9,359

    Re: need help with ActionListener,JPanel,JFrame

    It will resize because it recalculates the layout based upon the preferred sizes of all it components. You can play with setting the preferred size of the panel to prevent this.

    The keyListener...
  2. Replies
    5
    Views
    9,359

    Re: need help with ActionListener,JPanel,JFrame

    JFrame.show is deprecated and a bit overkill, you can just call pack() and the JFrame will repack all of its container components.
Results 1 to 2 of 2