-
August 28th, 2013, 02:56 PM
#1
showDocument(URL url) method in AppletContext Interface implemented by which Class?
Hi,
I was searching for the method definition of the showDocument(URL url) method declared by the AppletContext Interface.
Which Class implements the showDocument (URL url) method declared in the AppletContext ?
I searched and searched and then eventually gave up!!!Please help!
Regards,
Akshay
-
August 28th, 2013, 08:17 PM
#2
Re: showDocument(URL url) method in AppletContext Interface implemented by which Clas
If you have an object you use when you call the method, call that object's getClass() method to get its class.
Norm
-
August 28th, 2013, 08:40 PM
#3
Re: showDocument(URL url) method in AppletContext Interface implemented by which Clas
Originally Posted by Norm
If you have an object you use when you call the method, call that object's getClass() method to get its class.
Hi Norm,
I got the following weird class Name-
com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter$AppletContextImpl
What does this mean?
In my Applet Program I just call the showDocument() Method which is part of the AppletContext Interface,but not sure from where does it find the implementer class of this method
Regard,
Akshay
-
August 28th, 2013, 08:48 PM
#4
Re: showDocument(URL url) method in AppletContext Interface implemented by which Clas
There is no "meaning" there. It's the name of the class that implements the interface. There isn't much use knowing the name of the class provided by a get method that returns an instance of a class that implements some interface.
where does it find the implementer class
It's up to the programmer that wrote the code to give a class its name.
Norm
-
August 28th, 2013, 08:56 PM
#5
Re: showDocument(URL url) method in AppletContext Interface implemented by which Clas
Okay..The only thing I can conclude with here is that Java has hidden the implementation details of this method i.e. showDocument(URL url) . And we are using this method as a black box by just passing the parameters without knowing the implementation details.
Regards,
Akshay
-
August 28th, 2013, 08:59 PM
#6
Re: showDocument(URL url) method in AppletContext Interface implemented by which Clas
Seems like a reasonable assumption. The source for some classes comes with the JDK. Have you looked there to see if there is source for this class?
Norm
-
August 28th, 2013, 09:02 PM
#7
Re: showDocument(URL url) method in AppletContext Interface implemented by which Clas
I am new to java.Where do I need look to find the source of the classes.?
Regards,
Akshay
-
August 28th, 2013, 09:06 PM
#8
Re: showDocument(URL url) method in AppletContext Interface implemented by which Clas
Look in the JDK installation folder. On my system its:
D:\Java\jdk1.7.0\src.zip
Norm
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|