I have a problem and hope some of you guys can help me out..
I am doing a search function and have a JTable for displaying the results.. Now, I will like to adjust the column width of each column based on the LONGEST value that is in that particular column.
I can't fix the value because every time i click on SEARCH, it will generate new data in the JTable and the data will change frequently.
Question
donchen
Hi guys,
I have a problem and hope some of you guys can help me out..
I am doing a search function and have a JTable for displaying the results.. Now, I will like to adjust the column width of each column based on the LONGEST value that is in that particular column.
I can't fix the value because every time i click on SEARCH, it will generate new data in the JTable and the data will change frequently.
Any idea how can i accomplish this?
Don
Link to comment
Share on other sites
6 answers to this question
Recommended Posts