JTable is not displayed to the full width of the screen.
I am using AUTO_RESIZE_OFF option in setAutoResizeMode(JTable.AUTO_RESIZE_OFF); API.
It makes the JTable to shrink fit to the screen and not fit to the entire width of the screen.
Any thoughts please to make the JTable to fit completely to the width of the screen?
How are you laying out the window? The overall size of a JTable is going to be controlled by the layout managers that you are using. The AUTO_RESIZE affects the width of the columns, not the overall size.
Joined: Jan 14, 2009
Thanks a lot for your quick response.
I did not set any layout manager explicitly to my JTable.
May I know the layout manager which fit the JTable to the complete width of the screen.
You don't. If you don't want it anymore, just let it die slowly. Without replies it will drop to the bottom of the first forum page, then move to the second, etc, until the search is the only way to find it.