将数据从JTable移动到Javascript表 [英] Moving data from a JTable to a Javascript table

查看:98
本文介绍了将数据从JTable移动到Javascript表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我有一个使用swing编写的Java程序。有一个JTable充满了需要放在用Javascript编写的网站上的表中的数据。网站表格中的每个单元格都是可编辑的。它设置的应用程序中的表格与网站上的表格完全相同,因此它具有所有相同的行和列。我从未使用过Javascript,也不知道该怎么做。任何帮助将不胜感激。


谢谢

Hi,

I have a program that is written in Java using swing. There is a JTable that is filled with data that needs to be put into a table on a web site which is written in Javascript. Each cell in the table on the web site is editable. The table in the application it set up to exactly like the one on the web site so it has all the same rows and columns. I have never used Javascript and don''t know how to do this. Any help would be greatly appreciated.

Thanks

推荐答案





我有一个使用swing用J​​ava编写的程序。有一个JTable充满了需要放在用Javascript编写的网站上的表中的数据。网站表格中的每个单元格都是可编辑的。它设置的应用程序中的表格与网站上的表格完全相同,因此它具有所有相同的行和列。我从未使用过Javascript,也不知道该怎么做。任何帮助将不胜感激。


谢谢
Hi,

I have a program that is written in Java using swing. There is a JTable that is filled with data that needs to be put into a table on a web site which is written in Javascript. Each cell in the table on the web site is editable. The table in the application it set up to exactly like the one on the web site so it has all the same rows and columns. I have never used Javascript and don''t know how to do this. Any help would be greatly appreciated.

Thanks



您的网站用什么语言写的? JSP的? PHP?仅限HTML?

What language is your website written in? JSPs? PHP?HTML only?



您的网站使用什么语言编写? JSP的? PHP?仅限HTML?
What language is your website written in? JSPs? PHP?HTML only?



它是用HTML编写的。

It is written in HTML.



它是用HTML编写的。
It is written in HTML.



在某个Utility类中创建方法。将其命名为createHTMLTable,将JTable对象作为参数并将HTML表作为字符串返回

Create method in some Utility class. Call it createHTMLTable that takes a JTable object as a parameter and returns an HTML table as a String

展开 | 选择 | Wrap | 行号


这篇关于将数据从JTable移动到Javascript表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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