Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2005

Tip: Looking for answers? Try searching our database.

SWT applets ... not the best choice?

Thread view: 
EdwardH - 27 Oct 2005 17:20 GMT
I've got a project lined up for next year. Some kind of "look through a
presentation and then answer a few questions"-jobbie that will be an applet.

Anyways, I've been looking at SWT and don't completely dislike the way
it works, unfortunately one doesn't seem able to use SWT in an applet
because of the dll's it requires.

I am NOT allowed to ask the users of the applet to jump through hoops to
get it working. Download java 1.5, yes. Download extra DLLs and hope to
god they get put in the proper place, no.

So... what are my options? Swing and then hope that SWT gets included in
the next java?
Benji - 27 Oct 2005 19:34 GMT
> So... what are my options? Swing and then hope that SWT gets included in
> the next java?

I don't think that's a very likely possibility.  I really doubt sun will
include SWT at any point.  I does all of the things that swing does, but
in a non-portable way; which is completely unacceptable as far as the java
paradigm goes.  If anything, they would write native implementations for
the swing engine on selected OSes...

I wouldn't use SWT unless you have a really really good reason to use it.
As of 1.5, swing is fairly fast anyway...and looking forward, computers are
only going to get faster, and make the only difference that SWT looks much
uglier.  =)

Signature

Of making better designs there is no end,
 and much refactoring wearies the body.

Tim Tyler - 27 Oct 2005 22:31 GMT
Benji <bdg@cc.gatech.edu> wrote or quoted:

> > So... what are my options? Swing and then hope that SWT gets included in
> > the next java?
[quoted text clipped - 3 lines]
> in a non-portable way; which is completely unacceptable as far as the java
> paradigm goes.

"Non-portable" - but it runs on:

       Windows
    Windows CE (ARM PocketPC)
    Windows CE (ARM PocketPC, J2ME profile)
    Linux (x86/GTK 2)
    Linux (x86_64/GTK 2)
    Linux (PPC/GTK 2)
    Linux (x86/Motif)
    Solaris 8 (SPARC/GTK 2)   
    Solaris 8 (SPARC/Motif)   
    QNX (x86/Photon)   
    AIX (PPC/Motif)   
    HP-UX (HP9000/Motif)   
    Mac OSX (Mac/Carbon)

Have you tried running any Swing apps on Windows CE recently?
Signature

__________
|im |yler  http://timtyler.org/  tim@tt1lock.org  Remove lock to reply.

Steve Sobol - 28 Oct 2005 03:24 GMT
> I wouldn't use SWT unless you have a really really good reason to use it.

I do. Swing's GUI performance sucks rocks, at least up until 1.5.

With SWT you lose the ability to run on any platform that Swing will run on.
OTOH, it's much faster, and you can port SWT to other platforms. Although if
you need to be able to run on all Java-compatible platforms *now*, use Swing
anyhow.

Signature

Steve Sobol, Professional Geek   888-480-4638   PGP: 0xE3AE35ED
Company website: http://JustThe.net/
Personal blog, resume, portfolio: http://SteveSobol.com/
E: sjsobol@JustThe.net Snail: 22674 Motnocab Road, Apple Valley, CA 92307

Benji - 28 Oct 2005 03:29 GMT
> I do. Swing's GUI performance sucks rocks, at least up until 1.5.

Well, I think 1.5 made a big step forward in the performance of swing.
Of course, each release except 1.4 has really done that, but 1.5 really
brought it close to that of a native application.  Netbeans runs just as
fast for me as visual studio on my laptop, and I no longer have the
frustrating delayed feeling that I did when using swing GUIs.

But I guess maybe on lower powered (or lower memory especially) machines,
the difference might be more noticeable.

Signature

Of making better designs there is no end,
 and much refactoring wearies the body.

Steve Sobol - 29 Oct 2005 05:08 GMT
> But I guess maybe on lower powered (or lower memory especially) machines,
> the difference might be more noticeable.

Lower-memory, most definitely.

Signature

Steve Sobol, Professional Geek   888-480-4638   PGP: 0xE3AE35ED
Company website: http://JustThe.net/
Personal blog, resume, portfolio: http://SteveSobol.com/
E: sjsobol@JustThe.net Snail: 22674 Motnocab Road, Apple Valley, CA 92307

Andrew Thompson - 31 Oct 2005 03:17 GMT
> I've got a project lined up for next year. Some kind of "look through a
> presentation and then answer a few questions"-jobbie that will be an
> applet.

How's your sanity?  Got plenty to spare?
You'll need it, working with applets..

> Anyways, I've been looking at SWT and don't completely dislike the way
> it works, unfortunately one doesn't seem able to use SWT in an applet
> because of the dll's it requires.

Webstart/JWS can make DLL's available to applets, but..
why not make it a web launchable JWS application instead?

> I am NOT allowed to ask the users of the applet to jump through hoops to
> get it working. Download java 1.5, yes. Download extra DLLs and hope to
> god they get put in the proper place, no.

How about
'click a button OK the upgrade to Java 1.5', followed by
'click OK to accept the code signed by ....'.

From the user's end, that should do it.

> So... what are my options? Swing and then hope that SWT gets included in
> the next java?

Investigate the webstart application first (..look at JWS
applets if you like - I have an example lying around somewhere*
but they truly suck.)

* <http://www.physci.org/pc/jtest-applet.jnlp>  (applet)
<http://www.physci.org/pc/jtest.jnlp> (application)

HTH


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.