java中的表格内的表格

编程入门 行业动态 更新时间:2024-10-28 12:21:51
本文介绍了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中的表格内的表格

本文发布于:2023-11-07 01:21:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1565169.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:表格   java

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!