excel中的单元格转换为Java中的JTable [英] cells in excel to JTable in Java

查看:101
本文介绍了excel中的单元格转换为Java中的JTable的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Java JFrame形式的JTable中以Excel形式显示单元格.我该怎么办?

I want to display cells in excel to JTable in Java JFrame Form. what should I do?

推荐答案

您应该使用 Apache POI库 [^ ].可以将MS Office文档翻译"成Java可读的内容.

它们中包含一部分POI-HSSF和POI-XSSF,它们负责Excel文档: http://poi.apache. org/spreadsheet/index.html [^ ].
请查看左侧菜单,那里有一些教程,示例以及更多内容.
you should use the Apache POI library[^]. That one can "translate" MS Office documents into Java readable stuff.

They have a part POI-HSSF and POI-XSSF in there that is responsable for Excel Documents: http://poi.apache.org/spreadsheet/index.html[^].
Please check out the menu on the left side there, they have several tutorials, Examples and much more to get into it.


这篇关于excel中的单元格转换为Java中的JTable的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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