All JComponents in the JTabbedPane got shrink when I click for a particular

When I click a particular tab in a JTabbedPane, all the JComponents (like JTextboxes, JListbox ) are getting shrink. Because of this I am not able to enter or choose any data for these JComponents.
Moreover the problem is seen only when the window is in a default size. If I restore the window size from the default to the maximum the problem goes away (I.e I am able to see and enter the data�s for JComponents).
Also this is happening only with windows platform (Windows XP), I checked in Solaris platform with the same code and it works fine (with default window size).
While testing the code, I found one difference. When I use Solaris I am able to see the scrollbar on a window, whereas the scroll bar in WindowsXp is not appeared.
Can you please clarify me why the JComponents are getting shrink? And also why it is happening only on WindowsXP?

Can you please clarify me why the JComponents are getting shrink?You have a program bug.
If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting.

Similar Messages

Maybe you are looking for