Give Java application a Metro Look and Feel in Win

2019-04-18 04:24发布

问题:

I have already developed a Java application which is working well in Windows XP, Windows 7 & Windows 8 consumer preview. The application is developed using GWT, CSS3 with Spring framework,and built-in Jetty server which is used to launch the application using the Internet explorer.

After exploring throught the metro apps principles, i want to give my application users an extra benefit of using is as a metro app

I read about DWR, gwt-explorer. But still i'm not sure. Is there any other workaround with minimum code changes?

Thank you Mr.Andrew Thompson for helping me.

回答1:

You could mimic Metro style in a Java application. Here is an effort using the JavaFX UI framework:

http://pixelduke.wordpress.com/category/metro/

You can only use such applications in the desktop environment of Windows 8 though, not in the metro environment. But that could still be useful, depending on the case.



回答2:

Metro style look and feel coming to Java?

I thought this was more to do with the Pluggable Look & Feel. Well don't wait, create! See:

  • How to Write a Custom Look and Feel
  • Creating a Custom Look and Feel
  • The Synth Look and Feel


回答3:

You guys all need to re-read the post again or fully understand the technologies before you jump all over this guy. He is saying he developed in GWT which is Java compiled to HTML/Javascript which does work in metro.

I know this is an old thread but I can't stand when people do that, it just makes it more confusing for other people reading this question.



回答4:

So I read the question again, and realized you're asking about how to get 'Metro' look and feel to a web application, and not a classic Java App..

Try this one http://metroui.org.ua/ Package provide a set of CSS and Javascript files to help your site have the metro look and feel.

HTH


::OLD ANSWER::

Java is NOT JavaScript in the same way that a CAR is not a CARpet.

Your best bet is to do your UI and parts that need to interface with the OS in a .NET language (C# or VB) and try to convert your existing Java code in to JSharp.

I cannot confirm that JSharp is supported to be used in a Metro Style app though.

Other options is that, if you have a web based alternative to your app, then you may have a better shot trying to convert than into a HTML/JavaScript Metro app.

Simply, Java and Metro, just don't get along, and they probably never will.