Solved

Quick Java Standalone Apps

Posted on 2006-11-20
9
203 Views
Last Modified: 2010-03-31
I am looking to write a Java standalone app that I want to work on OS X and Windows in particular. I do worry about the interface being too slow though. I have used some SWING interfaces and they are quick lethargic. Are there any native APIs that I could use to make the program run faster on certain platforms and reserve the slower workhorse versions for *nix?
0
Comment
Question by:dignified
  • 5
  • 4
9 Comments
 
LVL 24

Accepted Solution

by:
sciuriware earned 125 total points
ID: 17977655
You could try SWT as a replacement for SWING.
You can find it at www.eclipse.org

But I wonder if it will be faster.
I found over the years that slow SWING is a matter of bad programming.

;JOOP!
0
 
LVL 24

Expert Comment

by:sciuriware
ID: 17977666
... by bad programming I don't mean 'stupid' programming!
It's just that slow SWING is caused by SWING itself:
it's not intuitively set up. In the beginning you take wrong decisions.
I learned a lot from the JAVA SWING tutorial (SUN) and some good books.
Since then I wrote huge SWING applications with up to 200 threads,
each with their own components on screen, and it was fast enough.

;JOOP!
0
 

Author Comment

by:dignified
ID: 17977713
Are there any other Java GUI API that I could use?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 24

Expert Comment

by:sciuriware
ID: 17977802
There's still X-windows, but I don't like the construction.
Funny, all we have about Windows comes from X-windows (XEROX, who adopted it in 1968),
but the approach looks clumsy now.
I would go for a thorough revision of your GUI and choose between SWING and SWT.

;JOOP!
0
 

Author Comment

by:dignified
ID: 17977866
I have done nothing more than a Hello World with SWING so far, but I have seen some cool looking java interfaces that looking nothing like the default SWING interface. Is it possible to change the looks of the buttons and things in SWING?
0
 
LVL 24

Expert Comment

by:sciuriware
ID: 17978162
Yes, start in SWING and then:
1) change the look and fonts of the components; there is a list of some 80 different sub-components you can customise,
2) try other lookandfeels,
3) try some public domain lookandfeels, like from http://www.jgoodies.com/
4) buy a 3rd party commercial lookandfeel.

Important: when your source code follows SWING you can switch lookandfeels, even while running.

;JOOP!
0
 

Author Comment

by:dignified
ID: 17995250
Is SWT what the eclipse gui is made from? I have heard good things about it and SWT.
0
 
LVL 24

Expert Comment

by:sciuriware
ID: 17995789
Yes
0
 

Author Comment

by:dignified
ID: 18006160
I think I will try SWT, everyone I have talked to uses it instead of SWING.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
servlet example 17 59
Tomcat: Unable to run tomcat service. 2 29
Java string replace 11 61
Which non-HTML GUI front end to use with Java? 3 52
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question