Hello all.
I've written an interactive graphing applet, using awt / canvas. This has involved me pretty much learning java as I go (my 'forte', such as it is, is pl/sql, javascript, dhtml and perl so I'm not a total newbie to programming). However - its not the fastest thing on the block and I'd like to improve it.
To that end I've a load of general java questions:
Would it be better / advisable to rewrite using swing ? The components look easier to use but is it more efficient / speedy ? (I know this is obviously subject to the standard of my code). Not sure if its that relevant but I have control over the versions of jre my end users will be running so backwards compatibility isn't that much of a problem.
I often have to have multiple graph applets on one page and it looks like multiple jres are opening and running (which takes a while to do). Would this be the case ? Is there a way to make this less resource intensive ?
Is there a way to open a jre in the background when a user logs onto the site or to preload any resources an applet might need ? This would mean that graph browsing would become much faster to initiate.
I think thats pretty much it.
thanks in advance to any help you might me able to send my way![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
cheers
Joe.
I've written an interactive graphing applet, using awt / canvas. This has involved me pretty much learning java as I go (my 'forte', such as it is, is pl/sql, javascript, dhtml and perl so I'm not a total newbie to programming). However - its not the fastest thing on the block and I'd like to improve it.
To that end I've a load of general java questions:
Would it be better / advisable to rewrite using swing ? The components look easier to use but is it more efficient / speedy ? (I know this is obviously subject to the standard of my code). Not sure if its that relevant but I have control over the versions of jre my end users will be running so backwards compatibility isn't that much of a problem.
I often have to have multiple graph applets on one page and it looks like multiple jres are opening and running (which takes a while to do). Would this be the case ? Is there a way to make this less resource intensive ?
Is there a way to open a jre in the background when a user logs onto the site or to preload any resources an applet might need ? This would mean that graph browsing would become much faster to initiate.
I think thats pretty much it.
thanks in advance to any help you might me able to send my way
cheers
Joe.