Skip to main content

j3d guis: swing or awt?

2 replies [Last post]
Clifford Lyon
Offline
Joined: 2006-02-17

General question: When using Java 3D, do people find that GUIs built from Swing components provide a slower response than those built from AWT components?

I am building a GUI with a Canvas3D window in it that's very cpu-intensive. Typically, I find Swing components perform fine. In this GUI though, the Swing components just are not as responsive. For example, when opening a JComboBox box, sometimes list will "freeze" for a second or two when open; doesn't happen w/an AWT Choice.

I like the Swing components better personally for development, but I think for user experience in this case I'll be using AWT.

What are other folks using? Do other people have a similar experience with Swing and Java 3D?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kcr
Offline
Joined: 2004-03-17

A similar problem was discussed in the following thread:

http://www.javadesktop.org/forums/thread.jspa?forumID=55&threadID=4131

You may want to try the suggestion of setting your minimum frame cycle time to 10ms (which will throttle the rendering at 100 frames/sec).

-- Kevin

Clifford Lyon
Offline
Joined: 2006-02-17

Thanks, Alessandro Borges suggested a similar setting. It did help.