Home » Eclipse Projects » WindowBuilder » How to begin well a Rich Client app (on MS Windows)
How to begin well a Rich Client app (on MS Windows) [message #755525] |
Tue, 08 November 2011 17:13 |
Virgilio Ravagli Messages: 12 Registered: November 2011 |
Junior Member |
|
|
Hi.
I've got to build a graphical interface, composed by a full screen window with four tabular grids that show data coming from a remote object (CORBA Orbacus), some buttons, two or three menus, perhaps a few stuff more.
It's a standalone application on desktop (over Windows XP or Vista PC), neither Internet nor browsers involved: the user fires the application with a double click and begins to work.
Nothing really tricky, but I want to create a good, handy application, designed for every kind of users, easy to use.
I've little experience in designing Java GUI (I've got a deep experience with MS Visual Studio, C#).
My question is:
what type of project and wizard do I have to select ?
I saw File-->New-->Other-->Window Builder proposes several choices:
eRCP UI, GWT UI, SWT UI, XWT UI, Swing Designer with Application Window.
As far as I'm concerned, eRCP isn't the case, it's suitable for smartphones.
GWT is web-oriented, so I'm going to eliminate it.
SWT, XWT and Swing App Window seem to be good for my job...
which should I use ???
Can anybody give me an advice ?
Thanks a lot
Virgilio
|
|
| | | | | | |
Re: How to begin well a Rich Client app (on MS Windows) [message #755861 is a reply to message #755615] |
Wed, 09 November 2011 20:44 |
Virgilio Ravagli Messages: 12 Registered: November 2011 |
Junior Member |
|
|
Perhaps I've reached the end of the tunnel (I was a bit warry, because I've found quite tricky to get the tutorial working !).
Yesterday I was able to run the program into Eclipse: Run as --> Java app.
Then I tried to build it by means of an ANT file, but I couldn't do it until I found out that I had to exclude META-INF from org.eclipse.swt.win32.win32.x86_3.7.0.v3735b.jar, that I included by <zipfileset>.
I guess it caused a conflict with my jar's manifest, is it correct ?
So, this is my final build.xml:
<project name="HelloWorldSWT" basedir="." default="main">
<property environment="env" />
<property name="dest.dir" value="build" />
<property name="dest.dir.classes" value="${dest.dir}/classes" />
<property name="plugins.dir" value="${env.ECLIPSE_HOME}/plugins" />
<property name="repository.path" value="C:\ExeJar" />
<path id="build.class.path">
<fileset dir="${plugins.dir}">
<include name="*.jar" />
</fileset>
</path>
<target name="clean">
<delete dir="${dest.dir}" />
</target>
<target name="prepare">
<mkdir dir="${dest.dir}" />
<mkdir dir="${dest.dir.classes}" />
</target>
<target name="main" depends="clean,prepare">
<javac srcdir="src" destdir="${dest.dir.classes}" includes="app/**">
<classpath refid="build.class.path" />
</javac>
<jar manifest="mainClass.txt" duplicate="preserve" destfile="${dest.dir}/HelloWorldSWT.jar">
<zipfileset excludes="META-INF/**/*" src="${plugins.dir}/org.eclipse.swt.win32.win32.x86_3.7.0.v3735b.jar" />
<fileset dir="${dest.dir.classes}"/>
</jar>
<copy file="${dest.dir}/HelloWorldSWT.jar" tofile="${repository.path}/HelloWorldSWT.jar" overwrite="true" />
</target>
</project>
It works, but I ask, is it the right way or is it a devious path ?
I'm not at ease with the inclusion of the plugin jar.
What do you suggest ?
thanks in advance,
Virgilio
|
|
| | |
Goto Forum:
Current Time: Fri Mar 29 01:40:05 GMT 2024
Powered by FUDForum. Page generated in 0.02637 seconds
|