Post an SSCCE that reproduces the problem, which allows one to test the code as opposed to guessing at things such as layouts, etc...and allow you to break the problem down to the troublesome part...
Type: Posts; User: copeg
Post an SSCCE that reproduces the problem, which allows one to test the code as opposed to guessing at things such as layouts, etc...and allow you to break the problem down to the troublesome part...
Don't use setBounds (unless you are using null layouts, which I advise against). Use setPreferredSize to set the size of the panel. Try the following:
panel.setPreferredSize(new...