What does this.instance=this mean

HI
What does the following code mean??
public class MyInterface extends JFrame{
protected final MyInterface myInterface;
public MyInterface(){
this.myInterface = this; //WHAT DOES THIS CODE SIGNIFY
Thanks in advance

hi siva
actually he is creating object of MyInterface class and assigning it to myinterface and making as staic final variable he is giving access to outside members of the class.but it is not accesable to non subclasses of outside packages.
So u can use that object with out using the class name of the implementation class.
it is not fully singleton pattern, because there is neither a private constructor nor a static method which gives the object of type MyInterface.
Thanks & Regards

Similar Messages

Maybe you are looking for

  • My iPhone 5 is disabled and the power button doesn't work. How would I fix it?

    My iPhone 5 is disabled and the power button doesn't work. How would I fix it? Please Help

  • Dependent Lookup Window

    Hi, We are using OOD R16. Here is our question - On the Service Request, we have Contact (which is bsed on a look up window). We are also Custom object(renamed Guardian) which is enabled as a child of Contact. Now we are trying to place this Guardian

  • Help...skip logic has made my form unfillable...why?

    Some of the selected features are not available for PDF forms You have selected the following features for your form that will not be functional in the PDF form: - Skip Logic Rules (all content will be shown)

  • Problem deploying an ADF Application - SOLVED

    I am having a problem deploying an ADF Faces + BC4J application to my 10.1.3.1 App server. When I deploy to the Jdev embedded oc4j or to a standalone oc4j from Jdeveloper, everything works fine, but when I deploy to the app server, the first page sub

  • Forte Debugger Question - How to break on exception?

    I am running my midlet under Forte Community Edition 3.0, and I am trying to track down a crash. The output window shows that a NullPointerException was thrown, so it should be a simple matter of finding the line with the offending allocation, but I