Solved

Quick Java Standalone Apps

Posted on 2006-11-20
9
204 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
Independent Software Vendors: 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jboss wildfly 10.1 10 630
Is Applet the way to go for my drag and drop system? 8 51
Java array 21 151
Which is best Image Resizing Web service 11 42
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
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 “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Suggested Courses

752 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