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.invoke |
The
java.lang.invoke package contains dynamic language support provided directly by
the Java core class libraries and virtual machine. |
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)
Answers a public Constructor object which represents the
constructor described by the arguments.
|
Constructor<?>[] |
Class.getConstructors()
Answers an array containing Constructor objects describing
all constructors which are visible from the current execution
context.
|
Class<?>[] |
Class.getDeclaredClasses()
Answers an array containing all class members of the class
which the receiver represents.
|
Constructor<T> |
Class.getDeclaredConstructor(Class<?>... parameterTypes)
Answers a Constructor object which represents the
constructor described by the arguments.
|
Constructor<?>[] |
Class.getDeclaredConstructors()
Answers an array containing Constructor objects describing
all constructor which are defined by the receiver.
|
Field |
Class.getDeclaredField(String name)
Answers a Field object describing the field in the receiver
named by the argument.
|
Field[] |
Class.getDeclaredFields()
Answers an array containing Field objects describing
all fields which are defined by the receiver.
|
Method |
Class.getDeclaredMethod(String name,
Class<?>... parameterTypes)
Answers a Method object which represents the method
described by the arguments.
|
Method[] |
Class.getDeclaredMethods()
Answers an array containing Method objects describing
all methods which are defined by the receiver.
|
Class<?> |
Class.getEnclosingClass()
Return the enclosing Class of this Class.
|
Constructor<?> |
Class.getEnclosingConstructor()
If this Class is defined inside a constructor, return the Constructor.
|
Method |
Class.getEnclosingMethod()
If this Class is defined inside a method, return the Method.
|
Field |
Class.getField(String name)
Answers a Field object describing the field in the receiver
named by the argument which must be visible from the current
execution context.
|
Field[] |
Class.getFields()
Answers an array containing Field objects describing
all fields which are visible from the current execution
context.
|
Method |
Class.getMethod(String name,
Class<?>... parameterTypes)
Answers a Method object which represents the method
described by the arguments.
|
Method[] |
Class.getMethods()
Answers an array containing Method objects describing
all methods which are visible from the current execution
context.
|
Modifier and Type | Method and Description |
---|---|
MethodHandle |
MethodHandles.Lookup.findGetter(Class<?> clazz,
String fieldName,
Class<?> fieldType)
Return a MethodHandle that provides read access to a field.
|
MethodHandle |
MethodHandles.Lookup.findSetter(Class<?> clazz,
String fieldName,
Class<?> fieldType)
Return a MethodHandle that provides write access to a field.
|
MethodHandle |
MethodHandles.Lookup.findSpecial(Class<?> clazz,
String methodName,
MethodType type,
Class<?> specialToken)
Return a MethodHandle bound to a specific-implementation of a virtual method, as if created by an invokespecial bytecode
using the class specialToken.
|
MethodHandle |
MethodHandles.Lookup.findStaticGetter(Class<?> clazz,
String fieldName,
Class<?> fieldType)
Return a MethodHandle that provides read access to a field.
|
MethodHandle |
MethodHandles.Lookup.findStaticSetter(Class<?> clazz,
String fieldName,
Class<?> fieldType)
Return a MethodHandle that provides write access to a field.
|
static <T extends Member> |
MethodHandles.reflectAs(Class<T> expected,
MethodHandle target)
Gets the underlying Member of the provided
target MethodHandle. |
MethodHandleInfo |
MethodHandles.Lookup.revealDirect(MethodHandle target)
Cracks a MethodHandle, which allows access to its symbolic parts.
|
Modifier and Type | Method and Description |
---|---|
static void |
AccessibleObject.setAccessible(AccessibleObject[] array,
boolean flag)
Convenience method to set the
accessible flag for an
array of objects with a single security check (for efficiency). |
void |
AccessibleObject.setAccessible(boolean flag)
Set the
accessible flag for this object to
the indicated boolean value. |
Modifier and Type | Class and Description |
---|---|
class |
RMISecurityException
Deprecated.
Use
SecurityException instead.
Application code should never directly reference this class, and
RMISecurityManager no longer throws this subclass of
java.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
PropertyChangeListener creates a
significant impediment to future modularization of the Java
platform. This method will be removed in a future release.
The global LogManager can detect changes to the
logging configuration by overridding the readConfiguration method. |
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
PropertyChangeListener creates a
significant impediment to future modularization of the Java
platform. This method will be removed in a future release.
The global LogManager can detect changes to the
logging configuration by overridding the readConfiguration method. |
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
KeyboardFocusManager instance
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, 2023, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.