Solved

Quick Java Standalone Apps

Posted on 2006-11-20
9
205 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

626 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