[英]How to add a dropdownbox in particular cell in JTable, something like microsoft excel?
如何在JTable中的特定单元格(如Microsoft Excel)中添加下拉框?
Writing a Custom Cell Renderer discusses this topic and links to similar examples. 编写自定义单元格渲染器将讨论该主题并链接到类似示例。 Concepts: Editors and Renderers elaborates on the notion of custom renderers and editors.
概念:编辑器和渲染器详细说明了自定义渲染器和编辑器的概念。
You should implement the table cell editor based on JComboBox. 您应该基于JComboBox实现表单元格编辑器。 Here is the starting point: http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#combobox
这是起点: http : //java.sun.com/docs/books/tutorial/uiswing/components/table.html#combobox
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.