Reputation: 161
Hi Guys i ve this Table in Netbeans and the Data it comes from the database i have many rows so i activate a scrollbar but the problem stays in the Title this is the Problem enter link description here
and i wanna the Result be like that enter link description here any solutions ? Please
Upvotes: 0
Views: 620
Reputation: 67
try this code:
table_name.getColumnModel().getColumn(0).setPreferredWidth(474);
Upvotes: 0
Reputation: 324108
If you are trying to size the width of the columns then check out Table Column Adjuster
It allows you to size the columns based on:
Upvotes: 1