简体   繁体   English

如何在JTable的指定单元格中设置JComboBox

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM