[英]Jtable header size in netbeans
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 嗨,大家好,我在Netbeans中有这张表,它的数据来自数据库,我有很多行,所以我激活了滚动条,但问题仍然存在于标题中,这是问题,请在此处输入链接描述
and i wanna the Result be like that enter link description here any solutions ? 我想结果就像在这里输入链接描述任何解决方案吗? Please
请
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: 它允许您基于以下内容调整列的大小:
试试这个代码:
table_name.getColumnModel().getColumn(0).setPreferredWidth(474);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.