JTextPane是否可以具有列和行? [英] Is it possible for JTextPane to have columns and rows?

查看:75
本文介绍了JTextPane是否可以具有列和行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从Netbeans设计器部分获得了JTextPane.我想在上面添加列和行.但是,在JTextPane的属性窗口中没有添加列或行的选项.还有另一种方法吗?

I have JTextPane from Netbeans designer's section. I want to add columns and rows on it. However, there is no option for adding columns or row in the property window of JTextPane. Is there another way to do this?

推荐答案

JTextPane支持格式化的文档.它支持的一种格式是HTML.因此,可以使用HTML table提供表格数据-列和行中的数据.

JTextPane supports formatted documents. One format it supports is HTML. Therefore, it is possible to use an HTML table to provide tabular data - data in columns and rows.

还可以考虑使用 JTable ,(当然)对列和行具有内置支持.

Also consider using a JTable, which (of course) has inbuilt support for columns and rows.

这篇关于JTextPane是否可以具有列和行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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