Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 将JTable插入JXTreeTable_Java_Swing_Jtable_Jxtreetable - Fatal编程技术网

Java 将JTable插入JXTreeTable

Java 将JTable插入JXTreeTable,java,swing,jtable,jxtreetable,Java,Swing,Jtable,Jxtreetable,我有一个JXTreeTable,其中每一行都应该是一个名称,一个包含一些保存数据的JTable和一个Save JButton。我无法正确显示表格和按钮。 我已重写GetColumn类: 但这些表格显示为对其特征的描述: userTable$2[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=251658568,maximumSize=,minimumSize=,preferredSize=,autoCreateColumn

我有一个JXTreeTable,其中每一行都应该是一个名称,一个包含一些保存数据的JTable和一个Save JButton。我无法正确显示表格和按钮。 我已重写GetColumn类:

但这些表格显示为对其特征的描述:

userTable$2[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=251658568,maximumSize=,minimumSize=,preferredSize=,autoCreateColumnsFromModel=true,autoResizeMode=AUTO_RESIZE_SUBSEQUENT_COLUMNS,cellSelectionEnabled=false,editingColumn=-1,editingRow=-1,gridColor=javax.swing.plaf.ColorUIResource[r=128,g=128,b=128],preferredViewportSize=java.awt.Dimension[width=450,height=400],rowHeight=16,rowMargin=1,rowSelectionAllowed=true,selectionBackground=javax.swing.plaf.ColorUIResource[r=51,g=153,b=255],selectionForeground=javax.swing.plaf.ColorUIResource[r=255,g=255,b=255],showHorizontalLines=true,showVerticalLines=true]
是否有一种特定的方法可以将JTable作为单元格数据插入? 谢谢你的帮助

一,。是否有一种特定的方法可以将JTable作为单元格数据插入我认为SwingX站点有很多代码示例,包括描述和到API2的链接。谢谢你的帮助如果能帮助你,我很高兴。顺便说一句,这张表格中的问题是不可回答的
userTable$2[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=251658568,maximumSize=,minimumSize=,preferredSize=,autoCreateColumnsFromModel=true,autoResizeMode=AUTO_RESIZE_SUBSEQUENT_COLUMNS,cellSelectionEnabled=false,editingColumn=-1,editingRow=-1,gridColor=javax.swing.plaf.ColorUIResource[r=128,g=128,b=128],preferredViewportSize=java.awt.Dimension[width=450,height=400],rowHeight=16,rowMargin=1,rowSelectionAllowed=true,selectionBackground=javax.swing.plaf.ColorUIResource[r=51,g=153,b=255],selectionForeground=javax.swing.plaf.ColorUIResource[r=255,g=255,b=255],showHorizontalLines=true,showVerticalLines=true]