English 中文(简体)
Migrate Java Applet to what/where?
原标题:

I am reviewing currently a medium size code base (around 30K LOC) which uses a huge Applet and interfaces with other systems.

It s a tool to create custom labels, so we need drag-n-drop and other related UI components.

To which technogly will you migrate given the code base is in Java.

  • Applet -- No
  • Java FX -- Adoption rate is too low
  • GWT -- Refactoring is not easy

Any ideas/suggestions.

问题回答

Why do you need to migrate this ? Because of drag-n-drop ?

Perhaps you should look at running it as a stand-alone Java application and use Java Web Start to serve it up. I think the coding changes should be minimal to convert it from an applet.

Use AjaxSwing to automatically convert your applet to web application. You may have to write your own drag and drop but you d have to do it with any other framework. At least you get the rest without doing any coding.

http://ajaxswing.com

Your question is a bit hard to understand. As far as I know JavaFX and Applets share the same technology.

I use GWT frequently and I believe it is quite easy to migrate from Applets/Swing to GWT. But you can only use a subset of the java libraries, so don t expect that you can just compile a SWING app and run it with GWT. Some things are just not doable in the browser so you might need to move some of the code to the server and leave only the UI layer in the browser.

What do you mean when you say it interfaces with other systems ? If you need to connect to other machines from the applet/browser then don t forget that GWT is just JS so it has the same origin policy that would block this. There are possible workarounds for this, but that will cost you some extra work.

I will suggest you GWT coupled with a good UI library (for ex. Ext-GWT, aka GXT). I think that with a good UI library migration is not so difficult. Bye Claudio





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签