[英]How to set JComboBox in specified cell of JTable
I have a problem. 我有个问题。 I have been trying to set
JComboBox
in JTable cell
, but only cell with specified parameters (not all cells in column). 我一直在尝试在
JTable cell
设置JComboBox
,但只有具有指定参数的单元格(不是列中的所有单元格)。
I've customized DefaultTableCellRenderer
and I'm trying to paste JComboBox
to cell in getTableCellRendererComponent
. 我已经定制了
DefaultTableCellRenderer
,我正在尝试将JComboBox
粘贴到getTableCellRendererComponent
单元格中。 I know that it place new JComboBox
exery time when I do sth with JTable
, it's not a solution of this problem. 我知道当我使用
JTable
时它会放置新的JComboBox
exery时间,它不是这个问题的解决方案。 Maybe somebody knows how it should be done? 也许有人知道应该怎么做?
如果您使用您的接受率更改某些内容,那么您可以阅读我的帖子
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.