Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / December 2003

Tip: Looking for answers? Try searching our database.

too slow draw png

Thread view: 
Peter - 25 Dec 2003 16:32 GMT
Hi
  These too slow, can improve?

           g.drawImage(new ImageIcon(JGrantt.class.getResource(
               "image/barLeft.png")).getImage(), 0, 1, 3, 17, null);
           g.drawImage(new ImageIcon(JGrantt.class.getResource(
               "image/barMiddle.png")).getImage(), 3, 1,
                       getWidth() - 6, 17, null);
           g.drawImage(new ImageIcon(JGrantt.class.getResource(
               "image/barRight.png")).getImage(),
                       getWidth() - 4, 1, 3,
                       17, null);

thanks
from Peter (cmk128@hotmail.com)
Knute Johnson - 25 Dec 2003 17:29 GMT
> Hi
>    These too slow, can improve?
[quoted text clipped - 11 lines]
> thanks
> from Peter (cmk128@hotmail.com)

Load the images someplace other than the paint or render routine.

Signature

Knute Johnson
email s/nospam/knute/
Molon labe...



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.