阅读背景:

将JComboBox放到JTable中并从列表中获取元素而不是编辑单元格

来源:互联网 

I would like to make one cell in JTable to be a JComboBox object and be able to use it. It must be only one cell, not whole column. The table can contain the specific cell but not always, its placement is not static. My problem lies in putting JComboBox in JTable which can be used. I attached a code I was able to do so far. Table contains the JComboBox but when I click it there is no list and turns cell's editor on. I would like to make list show up. What should I do or what should be added/modified in code to gain my goal?I would like to make one cell in JTable to be a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: