D
David
Hi
I've been bouncing back and forth between languages,
and just when I think I might like Java after all, I run into
one of these things again.....
I don't know why I want to do this, but.....
I'm trying to determine exactly where the code comes
from when you implement the Toolkit.getDefaultToolkit()
method.
For example, I want to see the implementation of
Toolkit.getDefaultToolkit().getImage(String filename) ....
(I figure there must be a pile of interesting code in that
one).
In the source for Toolkit, the getDefaultToolkit() method
returns another Toolkit. It seems to use a series of
conditions to 'apply' a system specific class to the returned
Toolkit, which I assume then makes it all act like a 'real'
class (instead of a set of abstract methods).
I am getting the creepy feeling that some of the system
specific concrete class implementations might only be
included as compiled .class files, and the actual source
code is not available or something.
A search for "getImage(String filename)" in an unzipped
scr.jar file directory produced no results, other than the
single abstract method in Toolkit.
Nor did a search of the text in the entire JDK directory.
This leads me to believe it's just not there (unless I
have to try every combination of space char's and stuff..)
My question is, does anybody know where this source
code is hiding.
If this has been answered recently, please just point me
in the right direction. I didn't know I was going to want
to know this before so I wasn't looking then to see if
somebody else was going to ask about it......
......and now be damned if I can find it anywhere.....
Thanks if you can help!
David Otte
I've been bouncing back and forth between languages,
and just when I think I might like Java after all, I run into
one of these things again.....
I don't know why I want to do this, but.....
I'm trying to determine exactly where the code comes
from when you implement the Toolkit.getDefaultToolkit()
method.
For example, I want to see the implementation of
Toolkit.getDefaultToolkit().getImage(String filename) ....
(I figure there must be a pile of interesting code in that
one).
In the source for Toolkit, the getDefaultToolkit() method
returns another Toolkit. It seems to use a series of
conditions to 'apply' a system specific class to the returned
Toolkit, which I assume then makes it all act like a 'real'
class (instead of a set of abstract methods).
I am getting the creepy feeling that some of the system
specific concrete class implementations might only be
included as compiled .class files, and the actual source
code is not available or something.
A search for "getImage(String filename)" in an unzipped
scr.jar file directory produced no results, other than the
single abstract method in Toolkit.
Nor did a search of the text in the entire JDK directory.
This leads me to believe it's just not there (unless I
have to try every combination of space char's and stuff..)
My question is, does anybody know where this source
code is hiding.
If this has been answered recently, please just point me
in the right direction. I didn't know I was going to want
to know this before so I wasn't looking then to see if
somebody else was going to ask about it......
......and now be damned if I can find it anywhere.....
Thanks if you can help!
David Otte