如何隐藏DefaultTableModel中的特定列,使其无法在表中显示? [英] How to hide a particlar column in DefaultTableModel from displaying it in table?
本文介绍了如何隐藏DefaultTableModel中的特定列,使其无法在表中显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Java Swingx框架.我的DefaultTableModel
对象中有4列.我只希望显示3列.但是,我需要全部四个用于计算.
I am using Java Swingx framework. I have 4 columns in my DefaultTableModel
object. I wish to display only 3 of the columns. But, I need all four for computing.
S.No. | ID | GDC ID | Decsription
S.No.| GDC ID | Decsription
是否可以仅在渲染中隐藏或省略一列?请引导我.
Is it possible to hide or omit only one column from rendering? Please guide me.
推荐答案
-
默认情况下的最小大小为
10 pixels
widht,by default minimum size is
10 pixels
widht,您可以从JTable视图中删除/添加列,该列位于XxxTableModel中,您可以隐藏并显示任何列
you can to remove / add column from JTable view, column presents in the XxxTableModel, you can to hide and show any of column(s)
这篇关于如何隐藏DefaultTableModel中的特定列,使其无法在表中显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文