使用空布局在JTextpane中插入Jtable [英] Jtable inserting in JTextpane using null layout

查看:152
本文介绍了使用空布局在JTextpane中插入Jtable的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用空布局在JTextPane中创建jTable?

How to create jTable in JTextPane using null layout?

推荐答案

有多种方法.例如.插入表格 http://java-sl.com/JEditorPaneTables.html

There are multiple approaches. E.g. insert table http://java-sl.com/JEditorPaneTables.html

您可以使用add()方法并将JTable作为常规组件添加,并将边界设置为JTable.

You can add JTable as usual component using add() method and setting bounds to the JTable.

第三种方法是通过JTable

这篇关于使用空布局在JTextpane中插入Jtable的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆