开发者

Creating Windows Metro style apps with Java?

开发者 https://www.devze.com 2023-04-05 18:01 出处:网络
I know how to create small desktop applications in Java. I want to know, can I make Windows Metro style apps in Java? Because 开发者_StackOverflowon the web only C++/C/C#/JavaScript etc. are mentioned

I know how to create small desktop applications in Java. I want to know, can I make Windows Metro style apps in Java? Because 开发者_StackOverflowon the web only C++/C/C#/JavaScript etc. are mentioned. If yes can you please give me some reference for a quick start. If not which one will be easiest language to start?


You can only create metro style apps with C#, VB, JavaScript and C++. There is currently no support for authoring metro style applications with Java.


You cannot make metro style apps with Java.

For the other part of your question, regarding starter's guide and which language is easy, MSDN has a starter's guide which helps building new metro style apps, this, this and this should be helpful.

And which language is easiest, well it depends on the developer, someone who has been developing .NET or WPF or Windows Forms applications maybe more comfortable with he familiar environment and may prefer developing using C++ and XAML or VisualBasic, depending on what he has been using before, while someone coming from web development may prefer javascript.

For new developers, i would recommend using C# and XAML, but again it is my choice, and not everyone will agree with it.

Here is another link which points to guides at MSDN, and adds some additional detail.


I believe you will not be able to use Java and WinRT. The best option for you to try is C#, because this is the language that is closest to java, in my opinion.


WinRT is still based on COM, so you should be able to access it from Java using something like the Java-COM bridge. Using that would probably be quite hard (you'd have to use strings for method names etc.).

If you wanted to use WinRT comfortably from Java, that would require modifying the Java runtime and possibly also the compiler to make them aware of WinRT types.


Actually you can quite easily write a metro style web application by using a CSS library like this one: http://metroui.org.ua/

With this CSS, it is possibly to generate plain old HTML with Java on the server side (e.g. via a servlet) and then reverence the CSS classes.

I did this by using the org.apache.ecs library (it's very old but it works pretty good).


C# and Java are similar, but with different Frameworks. Look into developing Metro Style apps in C#. Remember to sign up for a developer's license for Windows Store Apps!


You could write your app in Java and cross compile into JavaScript using GWT. We do this successfully with a couple of Windows (Phone and Desktop) apps. Additionally, the code can be shared with your iOS and Android ports.


here what i found in sourceforge.net
http://sourceforge.net/directory/os:windows/freshness:recently-updated/?q=slibrary this is the most close ui to metro theme i saw.

0

精彩评论

暂无评论...
验证码 换一张
取 消