JavaFX 数据网格

发布于 2024-08-28 17:56:46 字数 520 浏览 4 评论 0原文

我即将开始新的 RIA 开发。过去 2 年我们一直在使用 Flex/Flash,但我们正在考虑使用更多操作系统方法,因此我们尝试了 JavaFX,因为它是唯一可用的可靠选项。然而,经过几天的研究,我们发现它没有数据网格之类的东西,至少在核心 API 中没有。对于那些不熟悉 Flex 的人来说,Datagrid 是一个允许您以列行布局显示数据集合的组件(很像增强版的 HTML 表)。它的美妙之处在于,您只需要担心数据本身,因为该组件几乎完成了其余的工作(排序、列拖动等)。

我不敢问...但是 JavaFX 有没有稍微类似的东西?

我们不需要像 Flex Datagrids/AdvancedDatagrids 这样奇特的东西,我们只需要一种简单、直接的方式来显示数据网格,该网格能够进行一些交互,例如单击、排序,并且能够显示图像、按钮等。无需下载大量不同的罐子。

如果没有什么东西……这对让 javaFx 有机会在我们的项目上与 flash 竞争的想法来说是一个打击(这很悲伤)。

我真的不敢相信 SUN 的人没有在核心 API 中包含这样的东西......

Im in the verge of starting a new RIA development. We've been using Flex/Flash for the last 2 years but we were considering using a more OS approach so we though giving JavaFX a try since it seams the only solid option available. However after a couple of days of research we found out that there is not such thing as a datagrid for it, at least not in the core API. For those unfamiliar with Flex, a Datagrid is a component that allows you to display a collection of data in column-row layout (much like a HTML Table on steroids). The beauty of it is that you only need to worry about the data itself as the component does pretty much the rest (sorting, column dragging, etc).

Im afraid to ask... but is there something slightly similar for JavaFX?

We require nothing as fancy as Flex Datagrids/AdvancedDatagrids, we only require a easy, straight forward way to display grids of data that are able to have a little of interaction like clicking, sorting and that are able to display images, buttons, etc. without having to download a ton of different jars.

If there isn´t something out there... This would be a shot in the back of the head to the idea of giving javaFx the chance to compete with flash on our project (which is sad).

I really cant believe the SUN people didnt include something like this on the core API...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

避讳 2024-09-04 17:56:46

目前还没有可以使用 JTable 的数据网格。我想这样的东西应该会在 JavaFX 的下一个版本中提供。有关可用 JTable 的更多信息,请参阅我的此处的答案实施。您提到了 JFXtras 项目,您可以通过该项目将这些 Swing 组件嵌入到 JavaFX 中。

有外部公司销售此类组件。例如,进行网络搜索或看这里

对于apache hub,您应该直接询问他们对于优点和缺点;他们反应敏捷且诚实。

There is currently no datagrid you can use JTable for that. Such a thing should be available in the next release of JavaFX I think. See my answer here for more information about available JTable implementations. You mentioned the JFXtras project with that you are able to embed those Swing components into JavaFX.

There are external companies selling such a component. E.g. do a web search or look here

For apache pivot you should ask them directly for the pros and cons; they are very responsive and honest.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文