有没有办法在Java桌面应用程序上获得Windows 8 Metro的外观? [英] Is there a way to get a look and feel of windows 8 metro on java desktop application?

查看:99
本文介绍了有没有办法在Java桌面应用程序上获得Windows 8 Metro的外观?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如标题中所述,我真的很难为这个问题找到一个好的答案.我目前正在开发一个仅在桌面上没有CSS或任何Internet部件的应用程序.我希望它看起来像Windows 8的都市外观.我不是在谈论布局,而是在外观上.我特别希望按钮是正方形而不是圆形的,但其他所有扁平正方形的外观和感觉也是如此.以下链接与我正在寻找的内容相反,仅供参考.

I am really struggling to find a good answer to this question, as stated in the Title. I am currently developing an application that will be desktop only with no CSS or any internet parts at all. I would like it to look like the metro look of Windows 8. I'm not talking about the layout but the look and feel. I would especially like the buttons that are square and not rounded but all the other flat square look and feel too. The following link is the opposite of what I'm looking for, as a reference.

关于桌面应用程序中的Metro GUI

此阅读至少与本机外观和Java的讨论更为接近.但是,它实际上并没有提供任何具体方法来获得例如方形扁平按钮:

This read was at least a little closer to a discussion on native look and feel and java. However it doesn't actually give any concrete ways to get for instance a square flat button:

https://softwareengineering .stackexchange.com/questions/226521/为什么很难制作一个Java程序出现在本地

当前,我正在使用Eclipse,但我不一定一定要使用它,但是它最简单.我一直在研究JavaFx,但从我所阅读的内容来看,它似乎一点都没有方形按钮或地铁般的感觉,但也许我错过了一些东西.任何人都可以向我指出如何使外观和风格变得简单的正确方向吗?

Currently I am using Eclipse but I'm not stuck on using that necessarily, but it wold be easiest. I have been looking into JavaFx but it doesn't seem to have square buttons or a metro feel at all from what I've read but maybe I'm missing something. Can any one point me in a good direction on how to make the look and feel simple?

推荐答案

研究 JMetro JavaFX的样式,然后查看它是否适合您的需求. JMetro是 jfxtras JavaFX第三方补充库的一部分. jfxtras-styles 项目中现有JMetro样式的代码.

Investigate the JMetro style for JavaFX and see if it fits what you need. JMetro is part of the jfxtras third party supplemental library for JavaFX. Code for existing JMetro styles in the jfxtras-styles project.

不要指望能与操作系统风格无缝集成的完美完整主题(因此,它并不适合所有人).它也不是由Oracle正式支持的库(这是第三方代码捐赠的东西).作为比较,对针对OS X的JavaFX Aqua外观的支持较完整. JMetro是用于Windows Metro UI的.在我看来,AquaFX的外观和行为几乎完全像本机OS X 10.9的外观.

Do not expect a polished fully complete theme that integrates seamlessly with the OS style (so it won't be for everybody). Nor is it a library officially supported by Oracle (it's a third party code donation thing). As a comparative point, support for a JavaFX Aqua look and feel for OS X is currently more complete than JMetro is for the Windows Metro UI. The AquaFX look and feel looks and acts almost exactly like the native OS X 10.9 look and feel to my eyes.

如果您期望正确,那么您可能会发现JMetro外观对于您的项目而言是可以接受的.您可以通过联系创建JMetro样式的 Pedro Duque Vieira 来找到更多信息.

If you come with the right expectations, then you may find the JMetro look and feel acceptable for your project. You can find out more info by contacting Pedro Duque Vieira who created the JMetro styles.

这篇关于有没有办法在Java桌面应用程序上获得Windows 8 Metro的外观?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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