Does anyone really care about desktop Java?

Source: Internet
Author: User
Tags ruby on rails

Does anyone really care about desktop Java?

July 17,200 8

 

If I remember correctly, this year was set as "javafx year" at the javaone conference ". We should have amazed the intelligence and conciseness of javafx. However, in the blog circle, it seems to be a sudden silence (meaning disagree or lack of enthusiasm-the Translator's note ).

The history of Java UI is full of terrible decisions. The first is AWT (abstract drawing wing Toolkit). Because the Language designers did not plan to take the UI (User Interface) into consideration as an important Java component (not surprising ), it was born in the last second. It is said that AWT takes only one month to complete from the concept of generation. AWT's results-piles of bugs and mediocre performance on all platforms-have dampened Everyone's confidence in the Java UI. After years of testing, swing only saved some lost faces. With such a long-lasting first impression, users still draw the same number on Java and poor user interfaces. So for them, there seems to be something in a hot coffee cup that is hot.

Later, Java refused to support components and event models. Java Beans is no exception. Its appearance is only an attempt to make up for this defect. The real component and event model does not require programmers or the environment to implement a large amount of code to follow suit. If it can solve all the problems, we don't need to abstract them. We can say that a basic Turing machine can solve all the problems.

Swing programming is not only not simple, but also messy and complex. Although Java UI programming may become as simple as Visual Basic from time to time, sun even proposed the VB introduction plan at this point, but they all ran away. It is impossible to achieve this without the support of the underlying infrastructure. In the end, you will still generate a lot of UI code.

Java's UI programming is basically "coming soon", and is reluctant to accept but never really supported. As a result, people now have a strange wait-and-see attitude towards Java FX.

What are the famous Java Desktop programs? Well, eclipse is a development environment. Since Java cannot meet user needs at that time, it becomes a tool for creating its own UI library. Netbeans, another development environment, makes swing dependent on tasks today. Intelli J is also a development environment. But I still don't know which universal desktop program is written in Java, even if it is paid.

The reason why people do not use Java to create personal or commercial desktop programs may be that they fail on the UI.

I have been studying flex on and off for a few years and still think of it as the best solution for UI, especially when the background logic is not limited to using a language. Flex is completely designed as a user interface language, and will continue to play a major role in the UI solution as a multi-language, because people have been building AMF (ActionScript Message format) bridges for their favorite languages.

Because of its Asynchronization, AMF becomes an ideal format and has good compatibility with the UI style sheet. In short, you will not see how long the execution takes. The Asynchronous Method can ensure that your UI is always in the response state under any circumstances.

OnThis articleHere is an example of pyamf. The pyamf project always looks very active and has a good momentum. It also provides a simple way to create a UI for python desktop programs.

RubyamfIt is also an active project. It provides a flex user interface for the Ruby on Rails program. But at the recent railsconf Conference, there was a report on the "Air program under rails. So it seems that it will also support desktop programs.

There is anotherPHP-based amfphp Project, Though not a desktop solution.

Java-flash remoting openamf ProjectIt also seems to be suspended. Its latest version 1.0 was released in February April. Its products are not using a more recent Java version, let alone maintenance. Interestingly, in theory, Java should have a broader foundation and a group of people are supporting it. In addition, because the open-source blazeds contains the core code for creating javaamf (blazeds itself serves Java Web programs only), this is also highlighted.

Although I'm not sure, I 'd like to say that Adobe has extended an olive branch to sun on the blazeds-based connection to Java and flex. But Sun usually follows the "not invented here" attitude (that is, he is unwilling to use something invented by outsiders) reject and create something "better. So now everyone is watching, I want to see if javafx will become "the best language in the world as expected" (maybe Sun has learned a lot of practical marketing skills in numerous competitions with Microsoft ).

What I want to see is that Adobe can create and maintain a Java-AMF bridge for desktop applications. However, Adobe may think that Java is only a tool on the server, and the desktop applications supported by Java will never appear at any time (I'm surprised ). They pay attention to the competition with Silverlight.IndeedHold a wait-and-see attitude. Microsoft has made many promises, but what it actually does is often quite different-LookVista).

So if people are really interested in desktop Java, try it now. Find out the Code implemented on open-source blazeds and create a desktop Java-AMF bridge, so that we can easily add the air user interface at the beginning of the Java code. By using this method, you can easily create a UI without waiting for javafx to succeed.

 

(Original URL:Http://www.artima.com/weblogs/viewpost.jsp? Thread = 1, 234900)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.