| Package | Description | 
|---|---|
| java.awt | Contains all of the classes for creating user
interfaces and for painting graphics and images. | 
| java.beans | Contains classes related to developing
beans -- components
based on the JavaBeans™ architecture. | 
| java.io | Provides for system input and output through data streams,
serialization and the file system. | 
| java.lang | Provides classes that are fundamental to the design of the Java
 programming language. | 
| java.lang.reflect | Provides classes and interfaces for obtaining reflective
 information about classes and objects. | 
| java.rmi | Provides the RMI package. | 
| java.rmi.server | Provides classes and interfaces for supporting the server
side of RMI. | 
| java.security | Provides the classes and interfaces for the security framework. | 
| java.util.logging | 
Provides the classes and interfaces of 
the JavaTM 2
 platform's core logging facilities. | 
| javax.swing | Provides a set of "lightweight"
(all-Java language) components that,
to the maximum degree possible, work the same on all platforms. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | KeyboardFocusManager. clearGlobalFocusOwner()Clears the global focus owner at both the Java and native levels. | 
| protected Window | KeyboardFocusManager. getGlobalActiveWindow()Returns the active Window, even if the calling thread is in a different
 context than the active Window. | 
| protected Container | KeyboardFocusManager. getGlobalCurrentFocusCycleRoot()Returns the current focus cycle root, even if the calling thread is in a
 different context than the current focus cycle root. | 
| protected Window | KeyboardFocusManager. getGlobalFocusedWindow()Returns the focused Window, even if the calling thread is in a different
 context than the focused Window. | 
| protected Component | KeyboardFocusManager. getGlobalFocusOwner()Returns the focus owner, even if the calling thread is in a different
 context than the focus owner. | 
| protected Component | KeyboardFocusManager. getGlobalPermanentFocusOwner()Returns the permanent focus owner, even if the calling thread is in a
 different context than the permanent focus owner. | 
| void | Window. setAlwaysOnTop(boolean alwaysOnTop)Sets whether this window should always be above other windows. | 
| static void | KeyboardFocusManager. setCurrentKeyboardFocusManager(KeyboardFocusManager newManager)Sets the current KeyboardFocusManager instance for the calling thread's
 context. | 
| protected void | KeyboardFocusManager. setGlobalActiveWindow(Window activeWindow)Sets the active Window. | 
| void | KeyboardFocusManager. setGlobalCurrentFocusCycleRoot(Container newFocusCycleRoot)Sets the current focus cycle root. | 
| protected void | KeyboardFocusManager. setGlobalFocusedWindow(Window focusedWindow)Sets the focused Window. | 
| protected void | KeyboardFocusManager. setGlobalFocusOwner(Component focusOwner)Sets the focus owner. | 
| protected void | KeyboardFocusManager. setGlobalPermanentFocusOwner(Component permanentFocusOwner)Sets the permanent focus owner. | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | Beans. setDesignTime(boolean isDesignTime)Used to indicate whether of not we are running in an application
 builder environment. | 
| static void | Beans. setGuiAvailable(boolean isGuiAvailable)Used to indicate whether of not we are running in an environment
 where GUI interaction is available. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected boolean | ObjectOutputStream. enableReplaceObject(boolean enable)Enable the stream to do replacement of objects in the stream. | 
| protected boolean | ObjectInputStream. enableResolveObject(boolean enable)Enable the stream to allow objects read from the stream to be replaced. | 
| Constructor and Description | 
|---|
| ObjectInputStream()Provide a way for subclasses that are completely reimplementing
 ObjectInputStream to not have to allocate private data just used by this
 implementation of ObjectInputStream. | 
| ObjectOutputStream()Provide a way for subclasses that are completely reimplementing
 ObjectOutputStream to not have to allocate private data just used by
 this implementation of ObjectOutputStream. | 
| Modifier and Type | Method and Description | 
|---|---|
| Constructor<T> | Class. getConstructor(Class<?>... parameterTypes)Returns a  Constructorobject that reflects the specified
 public constructor of the class represented by thisClassobject. | 
| Constructor<?>[] | Class. getConstructors()Returns an array containing  Constructorobjects reflecting
 all the public constructors of the class represented by thisClassobject. | 
| Class<?>[] | Class. getDeclaredClasses()Returns an array of  Classobjects reflecting all the
 classes and interfaces declared as members of the class represented by
 thisClassobject. | 
| Constructor<T> | Class. getDeclaredConstructor(Class<?>... parameterTypes)Returns a  Constructorobject that reflects the specified
 constructor of the class or interface represented by thisClassobject. | 
| Constructor<?>[] | Class. getDeclaredConstructors()Returns an array of  Constructorobjects reflecting all the
 constructors declared by the class represented by thisClassobject. | 
| Field | Class. getDeclaredField(String name)Returns a  Fieldobject that reflects the specified declared
 field of the class or interface represented by thisClassobject. | 
| Field[] | Class. getDeclaredFields()Returns an array of  Fieldobjects reflecting all the fields
 declared by the class or interface represented by thisClassobject. | 
| Method | Class. getDeclaredMethod(String name,
                 Class<?>... parameterTypes)Returns a  Methodobject that reflects the specified
 declared method of the class or interface represented by thisClassobject. | 
| Method[] | Class. getDeclaredMethods()Returns an array containing  Methodobjects reflecting all the
 declared methods of the class or interface represented by thisClassobject, including public, protected, default (package)
 access, and private methods, but excluding inherited methods. | 
| Class<?> | Class. getDeclaringClass()If the class or interface represented by this  Classobject
 is a member of another class, returns theClassobject
 representing the class in which it was declared. | 
| Class<?> | Class. getEnclosingClass()Returns the immediately enclosing class of the underlying
 class. | 
| Constructor<?> | Class. getEnclosingConstructor()If this  Classobject represents a local or anonymous
 class within a constructor, returns aConstructorobject representing
 the immediately enclosing constructor of the underlying
 class. | 
| Method | Class. getEnclosingMethod()If this  Classobject represents a local or anonymous
 class within a method, returns aMethodobject representing the
 immediately enclosing method of the underlying class. | 
| Field | Class. getField(String name)Returns a  Fieldobject that reflects the specified public member
 field of the class or interface represented by thisClassobject. | 
| Field[] | Class. getFields()Returns an array containing  Fieldobjects reflecting all
 the accessible public fields of the class or interface represented by
 thisClassobject. | 
| Method | Class. getMethod(String name,
         Class<?>... parameterTypes)Returns a  Methodobject that reflects the specified public
 member method of the class or interface represented by thisClassobject. | 
| Method[] | Class. getMethods()Returns an array containing  Methodobjects reflecting all the
 public methods of the class or interface represented by thisClassobject, including those declared by the class or interface and
 those inherited from superclasses and superinterfaces. | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | AccessibleObject. setAccessible(AccessibleObject[] array,
             boolean flag)Convenience method to set the  accessibleflag for an
 array of objects with a single security check (for efficiency). | 
| void | AccessibleObject. setAccessible(boolean flag)Set the  accessibleflag for this object to
 the indicated boolean value. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | RMISecurityExceptionDeprecated. 
 Use  SecurityExceptioninstead.
 Application code should never directly reference this class, andRMISecurityManagerno longer throws this subclass ofjava.lang.SecurityException. | 
| Modifier and Type | Method and Description | 
|---|---|
| static ClassLoader | RMIClassLoader. getClassLoader(String codebase)Returns a class loader that loads classes from the given codebase
 URL path. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AccessControlException This exception is thrown by the AccessController to indicate
 that a requested access (to a critical system resource such as the
 file system or the network) is denied. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | Guard. checkGuard(Object object)Determines whether or not to allow access to the guarded object
  object. | 
| void | Permission. checkGuard(Object object)Implements the guard interface for a permission. | 
| Object | GuardedObject. getObject()Retrieves the guarded object, or throws an exception if access
 to the guarded object is denied by the guard. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | Logger. addHandler(Handler handler)Add a log Handler to receive logging messages. | 
| void | LogManager. addPropertyChangeListener(PropertyChangeListener l)Deprecated. 
 The dependency on  PropertyChangeListenercreates a
             significant impediment to future modularization of the Java
             platform. This method will be removed in a future release.
             The globalLogManagercan detect changes to the
             logging configuration by overridding thereadConfigurationmethod. | 
| void | LogManager. checkAccess()Check that the current context is trusted to modify the logging
 configuration. | 
| void | SocketHandler. close()Close this output stream. | 
| void | MemoryHandler. close()Close the Handler and free all associated resources. | 
| void | FileHandler. close()Close all the files. | 
| void | StreamHandler. close()Close the current output stream. | 
| abstract void | Handler. close()Close the Handler and free all associated resources. | 
| void | LogManager. readConfiguration()Reinitialize the logging properties and reread the logging configuration. | 
| void | LogManager. readConfiguration(InputStream ins)Reinitialize the logging properties and reread the logging configuration
 from the given stream, which should be in java.util.Properties format. | 
| void | Logger. removeHandler(Handler handler)Remove a log Handler. | 
| void | LogManager. removePropertyChangeListener(PropertyChangeListener l)Deprecated. 
 The dependency on  PropertyChangeListenercreates a
             significant impediment to future modularization of the Java
             platform. This method will be removed in a future release.
             The globalLogManagercan detect changes to the
             logging configuration by overridding thereadConfigurationmethod. | 
| void | LogManager. reset()Reset the logging configuration. | 
| void | StreamHandler. setEncoding(String encoding)Set (or change) the character encoding used by this Handler. | 
| void | Handler. setEncoding(String encoding)Set the character encoding used by this Handler. | 
| void | Handler. setFilter(Filter newFilter)Set a Filter to control output on this Handler. | 
| void | Logger. setFilter(Filter newFilter)Set a filter to control output on this Logger. | 
| void | Handler. setFormatter(Formatter newFormatter)Set a Formatter. | 
| void | Handler. setLevel(Level newLevel)Set the log level specifying which message levels will be
 logged by this Handler. | 
| void | Logger. setLevel(Level newLevel)Set the log level specifying which message levels will be
 logged by this logger. | 
| protected void | StreamHandler. setOutputStream(OutputStream out)Change the output stream. | 
| void | MemoryHandler. setPushLevel(Level newLevel)Set the pushLevel. | 
| Constructor and Description | 
|---|
| FileHandler()Construct a default FileHandler. | 
| FileHandler(String pattern)Initialize a FileHandler to write to the given filename. | 
| FileHandler(String pattern,
           boolean append)Initialize a FileHandler to write to the given filename,
 with optional append. | 
| FileHandler(String pattern,
           int limit,
           int count)Initialize a FileHandler to write to a set of files. | 
| FileHandler(String pattern,
           int limit,
           int count,
           boolean append)Initialize a FileHandler to write to a set of files
 with optional append. | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | FocusManager. setCurrentManager(FocusManager aFocusManager)Sets the current  KeyboardFocusManagerinstance
 for the calling thread's context. | 
| static void | UIManager. setInstalledLookAndFeels(UIManager.LookAndFeelInfo[] infos)Sets the set of available look and feels. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.