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.
Hi Matthew,
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.
Rajakumar Kasi wrote:May I know the layout manager which fit the JTable to the complete width of the screen.
I'd probably use a BorderLayout, but it depends on what the rest of the screen layout is. I'd suggest going through the Layout Manager tutorial to get an idea of what they can all do.
I didn't even know about those forums! Looks like I'm going to have to add that to my growing list of forums to keep track of!
Just use Google to find the cross posts and sign up everywhere with the same username and password. I've lost track of how many forums I've joined that way
Bartenders, please feel free to delete this OT conversation.
luck, db
There are no new questions, but there may be new answers.
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.