Nelson Minar wrote:
> 
> >How can I get the swing classes for jdk117v3
> 
> Are there any tricks to making the first Swing
> windows you create come up faster, so it at least feels faster?

The main thing I can suggest is to make sure you're not doing any
heavy lifting before your first window _finishes_ drawing. 
Unfortunately, that won't necessarily be immediately after you call 
show(), because the painting, if nothing else, happens asynchronously.
In one case, in desperation, I put a notify in my paint routine and
waited on that before doing my time-intensive initialization. There
are probably better hacks to be found for that.

Something that helped a bit was to stop using ImageIcon for toolbar 
button images. Raster encoding the gifs and drawing them with straight 
AWT turned out to be faster and use less memory. Doing this also avoids
occasional random null pointer exceptions in the JDK image loading code.

Louis Tribble
-- 

<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Louis Tribble                                         [EMAIL PROTECTED]
Metamata, Inc.                                   http://www.metamata.com
Tools for serious Java developers.                       +1 510 796 0915
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to