本文介绍了java中的表格内的表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好, 嵌套GridView [无JavaScripts] [ ^ ] 我是java和swings的新手。我想在上面提供的java jtables链接中开发相同的内容。我无法理解它,如果可能的话可以帮我解决一些示例代码。 i尝试只填充表格并在鼠标监听器的帮助下已经在JDialog上填充了相关数据表。 之后我就是Struck。 在此先感谢..
Hi guys, Nested GridView [No JavaScripts][^] I am a newbie to java and swings. I wanted to develop the same in the link provided above with java jtables. I am not able to figure it out and if possible can any help me out giving a sample code. i tried only populating a table and with the help of mouse listener i have populated the related data table on a JDialog. After that I am Struck. Thanks in advance..
推荐答案通过添加Panel / some组件作为单元格可以实现包含另一个表的内容。 我经常在单元格中看到一个带有GridLayout的Jpanel,这使得它更容易处理。 你需要一个customCellRenderer才能让它运行。 如何使用表 [ ^ ] @ Java教程 That is possible by add a Panel / some component as cell content containing another Table. I have also often seen a Jpanel with a GridLayout in the cell, which makes it easier to handle. You will need a customCellRenderer though to make it run. How to use Tables[^] @ the Java tutorials
更多推荐
java中的表格内的表格
发布评论