简体   繁体   English

Java L&F获得现代的“ wpf”外观

[英]java L&F to obtain modern “wpf” look

Recently I found some absolutely beautiful applications made using WPF. 最近,我发现了一些使用WPF制作的绝对漂亮的应用程序。 I'd really like to add this lovely look to my java applications. 我真的很想将这种可爱的外观添加到我的Java应用程序中。

在此处输入图片说明

Do you know if there are look and feels which make it possible? 您知道是否有外观和感觉使之成为可能吗?

First of all think what are the key concepts of the new metro-UI ? 首先,认为新的Metro-UI的关键概念是什么? Its flat and simple 它平坦而简单

1) use metro studio 2 to create icons for the project, use flat borders always 1)使用Metro Studio 2为项目创建图标,始终使用平坦边框

2) either create a full L&F or simply create small custom components ? 2)创建完整的L&F还是仅创建小型自定义组件? or use Java FX ( http://pixelduke.wordpress.com/2012/10/23/jmetro-windows-8-controls-on-java/ , http://pixelduke.wordpress.com/category/javafx/page/3/ ) 或使用Java FX( http://pixelduke.wordpress.com/2012/10/23/jmetro-windows-8-controls-on-java/http://pixelduke.wordpress.com/category/javafx/page/ 3 /

I was able to come little bit close to metro like text-buttons and background repeat panels, you might also want to see my repo here https://github.com/JaDogg/BhathiGUI 我能够接近地铁,例如文本按钮和背景重复面板,您可能还想在这里查看我的仓库https://github.com/JaDogg/BhathiGUI

Bhathi GUI

above image is for my near metro custom controls 上面的图片是我附近的地铁自定义控件

NOTE : this will not create an actual metro app just one that looks like it 注意:这不会创建一个看起来像实际的Metro应用程序


Update 更新

Here is a screenshot of JavaFX application built using Undecorator and JMetro (JavaFX8) 这是使用Undecorator和JMetro(JavaFX8)构建的JavaFX应用程序的屏幕截图。 JavaFX的

Java was always stingy on new L&F. Java总是对新的L&F持谨慎态度。 So new WPF style (developed for Windows 8 apps) is not available yet and i doubt it will be anytime soon. 因此,新的WPF样式(为Windows 8应用程序开发)尚不可用,我怀疑它将很快出现。

The latest L&F released and provided together with Java SE was NimbusLookAndFeel. 与Java SE一起发布并提供的最新L&F是NimbusLookAndFeel。 It is based on SynthLookAndFeel, which supposed to be a base for any custom L&F from now on. 它基于SynthLookAndFeel,从现在开始,它应该成为任何自定义L&F的基础。

There are also native L&Fs with: 也有本地L&F,它们具有:

  • Windows 2000 and Vista/7 styles (WindowsLookAndFeel) Windows 2000和Vista / 7样式(WindowsLookAndFeel)
  • GTK style (GTKLookAndFeel) GTK样式(GTKLookAndFeel)
  • Mac OS style (AquaLookAndFeel) Mac OS风格(AquaLookAndFeel)

There are also some good commercial L&Fs: Java Look and Feel (L&F) 还有一些很好的商业L&F: Java Look and Feel(L&F)

So if you really want to have such L&F - you will have to modify some existing L&F so it matches WPF styling or wait for a miracle (that someone will release such L&F). 因此,如果您真的想拥有这样的L&F,则必须修改一些现有的L&F,使其与WPF样式匹配或等待奇迹出现(有人会发布这样的L&F)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM