TableColumn column1=table.getColumnModel().getColumn(2);
column1.setPreferredWidth(400);
I tried to change the column width of the jtable using the above method but i couldnt achieve i dont no why please help me.................
TableColumn column1=table.getColumnModel().getColumn(2);
column1.setPreferredWidth(400);
I tried to change the column width of the jtable using the above method but i couldnt achieve i dont no why please help me.................
table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.