src/windows/classes/sun/awt/windows/WInputMethod.java

Print this page




 128         }
 129     }
 130 
 131     @Override
 132     protected void finalize() throws Throwable
 133     {
 134         // Release the resources used by the native input context.
 135         if (context!=0) {
 136             destroyNativeContext(context);
 137             context=0;
 138         }
 139         super.finalize();
 140     }
 141 
 142     @Override
 143     public synchronized void setInputMethodContext(InputMethodContext context) {
 144         inputContext = context;
 145     }
 146 
 147     @Override
 148     public final void dispose() {
 149         // Due to a memory management problem in Windows 98, we should retain
 150         // the native input context until this object is finalized. So do
 151         // nothing here.
 152     }
 153 
 154     /**
 155      * Returns null.
 156      *
 157      * @see java.awt.im.spi.InputMethod#getControlObject
 158      */
 159     @Override
 160     public Object getControlObject() {
 161         return null;
 162     }
 163 
 164     @Override
 165     public boolean setLocale(Locale lang) {
 166         return setLocale(lang, false);
 167     }
 168 




 128         }
 129     }
 130 
 131     @Override
 132     protected void finalize() throws Throwable
 133     {
 134         // Release the resources used by the native input context.
 135         if (context!=0) {
 136             destroyNativeContext(context);
 137             context=0;
 138         }
 139         super.finalize();
 140     }
 141 
 142     @Override
 143     public synchronized void setInputMethodContext(InputMethodContext context) {
 144         inputContext = context;
 145     }
 146 
 147     @Override
 148     public void dispose() {
 149         // Due to a memory management problem in Windows 98, we should retain
 150         // the native input context until this object is finalized. So do
 151         // nothing here.
 152     }
 153 
 154     /**
 155      * Returns null.
 156      *
 157      * @see java.awt.im.spi.InputMethod#getControlObject
 158      */
 159     @Override
 160     public Object getControlObject() {
 161         return null;
 162     }
 163 
 164     @Override
 165     public boolean setLocale(Locale lang) {
 166         return setLocale(lang, false);
 167     }
 168