posted 24 years ago
hi all,
I'm using a JScrollPane to show the JTable.
The overall layout for the Frame is BorderLayout.
I have put the scroll pane in the center of BorderLayout.
Now when i start the application and populate the JTable, all the columns occupy the entire width of the frame.Population happens at a click of a button.
BUT,
if i maximize the frame and then populate then the columns do not expand to occupy the entire width of the frame.Looking forward to a solution from someone.
I have used this though where tblDisplay is the JTable instance.
tblDisplay.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
thanks in advance
karthik.