Sorry, but the resolution on the image is so bad that I can't read what is circled and supposed to be weird about it...
Having major difficulties making it big enough, if I make the image bigger, yahoo just shrinks it.
Can you see
this I think the direpency between preferred size and actual size is because the title bar affects this also. I think the title bar minimum size is actually calculated in AWT native code, so the JFrame itself doesn't take this into account when it calculates its preferred size. If you want to see how this affects things call JFrame.setDefaultLookAndFeelDecorated( true ) before you create the frame (this will use Java generated title bars and will truely reflect preferred size) or add padding around the widgets you are adding to the frame to get it larger than the minimum size of the title bar.
This wouldn't explain a pre-pack preferred size of (508, 296) to a post-pack size of (112, 98) though. I'll give it a try anyway though.
Take a look for widgets being added to the content pane in the frame's constructor (or methods called from the constructor) and if the frame doesn't directly subclass JFrame, look in parent classes constructors.
No construction is done in this, super or subclasses of this class.
Does the user have the same problem now that you have added the pack() in?
Yes, no change in behaviour.
Are there any other things that are different between this user's setup and other users? JVM version, video card, etc. One thing I would especially look for in this case would be different screen resolutions... If they weren't using pack, they might have just set the frame to a specific pixel size somewhere. This size might be OK for everyone running the program at 1280 x 1024, but the frame is going to be double the size for anyone running it at 640 x 480!
I agree, there must be something specific to this user that's causing the problem. JVM is the same, video card is the same. So I'm not sure what it is.
I'm fairly sure setSize isn't being called, I'll overide it and log usage to check that is the case.
thanks for your help
D.
[ October 27, 2003: Message edited by: Don Kiddick ]