Top.Mail.Ru
November 2nd, 2004 - Java developers — LiveJournal
? ?

Java developers

November 2nd, 2004
Image

05:07 pm - Imagerestoration_me - Rubberbanding using XOR

Hi All!

I'm trying to simply draw a circle using the Rubberbanding technique...however the catch is I want to setXORMode to do so...I am almost certain my error lies within anything associated with retrieving the mouse points...

Has anyone ever implemented a program this way?

Cheers!
RM
Image

09:48 pm - Imagejojobear99 - Packages + Jar file + strange path needed in Jar File

Here's my existing non-jar'd file-structure:
/appletpage.html
/classes/package1/*.class
/images/*.gif

And the existing applet reference in the html file is:
<applet codebase="classes" code="package1.myApp.class" width="620" height="360">

What I would like to do is to put all the gif and class files into one (or two) compact JAR files. BUT the class files all reference the images by using a path like "../../images/image1.gif" which just breaks miserably if I have my class files under the path /package1 in the jar file, because /.. is just NOT a valid path. But if I put the class files under the path /classes/package1 I can't get the package path right in the applet reference as there doesn't seem to be an equivalent to codebase= that works within jar files.

Does anyone have any clever ideas for how to do this *without* editing and recompiling the source files?
Powered by LiveJournal.com
Image