This statement is very unclear to me. If you don't get a decent answer, could you clarify your question by adding more details of your problem?

One way to change the preferredSize of a...