Showing posts with label gui. Show all posts
Showing posts with label gui. Show all posts

Wednesday, September 01, 2010

Great compilation of Java Swing stuff

If you are searching nice widgets, docking frameworks have a look at this page:

http://www.tutego.de/java/additional-java-swing-components.htm

Friday, July 16, 2010

XML & Swing... pita

http://java-source.net/open-source/xml-user-interface-toolkits

Well, going through this leads to a conlcusion : client / server with Swing & JEE is a bit like crossing the Death Vallyey wihout a bottle of water.

Dream is not reality

Well I tried to build a web service returning a JFrame... isn't that the cool thing about Java reflexion / serialization.....


SEVERE: Cannot initialize endpoint  : error is :
javax.xml.ws.WebServiceException: Unable to create JAXBContext


Blah blah

Caused by: java.security.PrivilegedActionException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 21 counts of IllegalAnnotationExceptions
java.awt.LayoutManager is an interface, and JAXB can't handle interfaces.

Well the least I can say, making Swing and Server based Java is not always simple...

Thursday, July 08, 2010

Java RIA... getting impressed by... Apache Pivot

More than a year ago, I wrote a few articles on Apache Pivot. Well, my enthusiasm was very limited.


We are now in the process of re-writting a Delphi based application. Ideally using Java...

We could use simply Swing. But note, that the Swing application framework went back to life before to re-die again...

We checked OpenSwing. It is a good library, which adds a lot of good things on top of Swing. Useful but the look & feel... and a lot of code for just a little app.

To ease things, I looked at Netbeans as a platform. Overkill in many cases and it solved many problem we don't have and ignore those we have... Including we need a short learning curve and  among the big issue dynamic localization - language switching http://netbeans.dzone.com/multilingual-netbeans-platform-applications.


Also I spent a bit of time reading about JavaFX. Nice little language, but I cannot find anything that looks like an enterprise feature. Again the old Sun syndrom, we found a nice idea, lets market it against inacessible competition and consider our installed based as supreme idiots... bringing them features they never asked.


So I checked again Pivot - now version 1.5 and I AM IMPRESSED.

Documentation is very much improved, so that makes the purpose very much understandable.  Plus you have a bunch of very good examples.

The graphical glitches are gone ! Performance looks pretty good.

Most of the things are there and well designed, Web services, binding, event handling, scripting in the UI definition (any JVM language...).

And yes, a good looking mechanism for static localization.

The design is clean and nice (not very fancy but it is good loooking). It is designed to be skinnable, so we can expect much more funny things sooner or later.

You can build GUI using a straightforward XML based language (the layout can then get transferred to the client and transformed into GUI -> yes in fact this what Open ERP Python APP does...) .

So it is a cool toolkit and it appears much more oriented towards enterprise apps than FX. So my new acronym Rich Enterprise Internet Application that fits for Pivot but no go for FX.

The unfortunate thing... it is not compatible with Swing (I can live with that) but I need a minimal kind of word processor for my app (that I have with Swing and EditorKit stuff). Too bad, nothing is perfect... But keep going Apache Pivot you are heading to the right direction. At least I am getting convinced!

Just a link so you can check (you need Java plugin to get the examples running): http://pivot.apache.org

Tuesday, February 16, 2010

Rich web frameworks for GlassFish v3 (ZK, Vaadin, ...)

 Just a link to an aquarium post...


http://blogs.sun.com/theaquarium/entry/rich_web_frameworks_for_glassfish

May be my next app application framework...

Friday, June 05, 2009

JavaFx 1.2 is out

I still don't believe in the JavaFx stuff - too bad, too late and not relying on the Java strong use in enterprise. Anyway the vesion 1.2 is out. Clearly they don't care that much of compatibility and you will recompile your code:

"The JavaFX 1.2 SDK release is not binary compatible with the JavaFX 1.1 SDK. This means that your application and all libraries that it depends on must be recompiled with the JavaFX 1.2 SDK."

Things like that, happens. But this confirm my opinion that SUN push out this product (as they did for Java) without finishing it.

My humble advise: wait for JavaFx 3.0 - if it exists.

Otherwise it seems to move to the right direction -- but at senator speed -- they now support text controls (hard to call it an innovation) and seems to support Linux (not sure what it means in this context).

There are obviously many other changes. Mostly in the graphical area, so they seems to continue competing with Flash...

What has not changed however is a clarification about why one would really desire using it.

http://java.sun.com/javafx/1.2

Monday, May 04, 2009

Wings - RIA - creation in Java or XML based language

I am quoting here the Wings framework web site.
"Popular frameworks like Sun JSF and Apache Struts rely on a heavy mix of different technologies like Java, JSP, XML & Tag libs. This implies that the association between the different media have to be maintained manually to be always in sync. Errors between these assoication implies bad suprises during runtime while pure Java-based frameworks like Wings can leverage of the compilers consistency checks."

I agree. Most XML based stuff are deferring checks at runtime. By the way this is my single regret with the Spring container and IOC. Fortunately the Spring container parses and validates the XML directive up-front when the application context is created so most errors can be easily checked at start-up.

Wings

One more GUI Ajax RIA framework for Java. http://wingsframework.org. One good point compared to ZK - real open source with a lgpl license.

It becomes more and more complicated to choose one :-) Seriously I think this storm of gui frameworks is a clear indication of an issue. Java lacks a clear path for building confortable interface (dummy HTML is not good for real application building).

Saturday, May 02, 2009

Apache Pivot

So I am having a look at Apache Pivot 1.1. I started the demo app in my browser (IE 7 - I know, I know...) just using the applet scroll bar and the entire interface went scratched.

I cannot elaborate more at this time. But Swing is a conceptually nice, complicated and frequently disappointing. Java applications suffer very often of poor renditions problems ?

In fact Pivot is not Swing based (it may looks like Swing for developpers) but is built on Java2D. But I am already sure that it exhibits similar behaviors...

Thursday, April 16, 2009

UltraLigt Client - Canoo

Still searching for an easy way to build these Java apps quicly and smoothly.
I will surely put this on in my list : http://www.canoo.com

This is a pure Java toolkit/framework. Client side runs as normal Java app (including web start) or as an applet. All the logic (event handling) is on the server.

An interesting compromise I think.