/    Sign up×
Community /Pin to ProfileBookmark

Use of CLASS file in a new application?

I found a neat applet by Eric Harshbarger called ‘SpotLight2ech.class’.

(See [url]http://www.ericharshbarger.org/cgi-bin/j.cgi?spotlight/index.html[/url] )
He allows the free use of the applet and it works great for what it does

My question is:
Can I create another class that uses the ‘SpotLight2ech.class’ to track the x,y positions of the mouse at one second intervals over a brief period of time using the event logic?

Does java allow reading and use of a class file without the source code during the compliation of a different applet?

I don’t want to modify the ‘SpotLight2ech.class’, just add to it’s function ability. BTW, it also uses a ‘Pixelator3.class’, so I assume I would need to load this class file also?

? Thanks in Advance. ?

to post a comment
Java

3 Comments(s)

Copy linkTweet thisAlerts:
@JMRKERauthorDec 22.2005 — OK - there have been 18 lookers but no comments. ?

What part of my question is unclear? ?

Am I using the wrong terminology? :eek:
Copy linkTweet thisAlerts:
@BigDogDec 22.2005 — Well, the issue that I see is that there is a lot of work to explain the answer to your question. It does not sound like you are familiar with Java, so it would require a bit of typing.

As to your question specifically, no one knows. We don't know what, if any methods are exposed as public or protected or if the are final. Unless that person is going to provide a javadoc of the class, we don't have a way to answer this.


You can use precompiled classes in your code. These are usually distributed in JARs. This is veru common. However, these all come with javadocs to document the APIs.


Most likely, the way the person originally did the applet, it was meant to be self contained, so it may never have been built to allow it to be subclassed. The question would be better answered by the person who wrote the applet.
Copy linkTweet thisAlerts:
@JMRKERauthorDec 22.2005 — ? Thanks - that's what I needed to know.

Looks like I can't get there from here at this time,

but at least I know what to ask for now.
×

Success!

Help @JMRKER spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...