Package wt.clients.util
Class ContainerUtility
java.lang.Object
wt.clients.util.ContainerUtility
This is a utility class to perform common functions upon container
objects.
Supported API: true.
Extendable: false.
Supported API: true.
Extendable: false.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidenableInputMethods(Container container, boolean enable) Static utility method to recursively perform the enableInputMethod method upon all components within this container.
-
Method Details
-
enableInputMethods
Static utility method to recursively perform the enableInputMethod method upon all components within this container. This method was created in response to Java Bug 4289940. This bug results in a "IllegalStateException: Can't dispose InputContext while it's active". Calling this method within the dispose method of a Frame will disable all components held by this container and workaround this bug:public void dispose() { wt.clients.util.ContainerUtility.enableInputMethods(this, false); super.dispose(); }
Supported API: true.
-