Generated by
JDiff

Class java.awt.Component

Documentation changed from old to new.

Removed Methods
void firePropertyChange(String, Object, Object) Support for reporting bound property changes.
void requestFocus() Requests that this component get the input focus.
 

Added Methods
void addMouseWheelListener(MouseWheelListener) Adds the specified mouse wheel listener to receive mouse wheel events from this component.
void applyComponentOrientation(ComponentOrientation) Sets the ComponentOrientation property of this component and all components contained within it.
boolean areFocusTraversalKeysSet(int) Returns whether the Set of focus traversal keys for the given focus traversal operation has been explicitly defined for this Component.
VolatileImage createVolatileImage(int, int, ImageCapabilities) Creates a volatile off-screen drawable image with the given capabilities.
VolatileImage createVolatileImage(int, int) Creates a volatile off-screen drawable image to be used for double buffering.
void firePropertyChange(String, boolean, boolean) Support for reporting bound property changes for boolean properties.
void firePropertyChange(String, int, int) Support for reporting bound property changes for integer properties.
void firePropertyChange(String, Object, Object) Support for reporting bound property changes for Object properties.
ComponentListener[] getComponentListeners() Returns an array of all the component listeners registered on this component.
Container getFocusCycleRootAncestor() Returns the Container which is the focus cycle root of this Component's focus traversal cycle.
FocusListener[] getFocusListeners() Returns an array of all the focus listeners registered on this component.
Set getFocusTraversalKeys(int) Returns the Set of focus traversal keys for a given traversal operation for this Component.
boolean getFocusTraversalKeysEnabled() Returns whether focus traversal keys are enabled for this Component.
HierarchyBoundsListener[] getHierarchyBoundsListeners() Returns an array of all the hierarchy bounds listeners registered on this component.
HierarchyListener[] getHierarchyListeners() Returns an array of all the hierarchy listeners registered on this component.
boolean getIgnoreRepaint() @return whether or not paint messages received from the operating system should be ignored.
InputMethodListener[] getInputMethodListeners() Returns an array of all the input method listeners registered on this component.
KeyListener[] getKeyListeners() Returns an array of all the key listeners registered on this component.
MouseListener[] getMouseListeners() Returns an array of all the mouse listeners registered on this component.
MouseMotionListener[] getMouseMotionListeners() Returns an array of all the mouse motion listeners registered on this component.
MouseWheelListener[] getMouseWheelListeners() Returns an array of all the mouse wheel listeners registered on this component.
PropertyChangeListener[] getPropertyChangeListeners() Returns an array of all the property change listeners registered on this component.
PropertyChangeListener[] getPropertyChangeListeners(String) Returns an array of all the listeners which have been associated with the named property.
boolean isBackgroundSet() Returns whether the background color has been explicitly set for this Component.
boolean isCursorSet() Returns whether the cursor has been explicitly set for this Component.
boolean isFocusCycleRoot(Container) Returns whether the specified Container is the focus cycle root of this Component's focus traversal cycle.
boolean isFocusOwner() Returns true if this Component is the focus owner.
boolean isFocusable() Returns whether this Component can be focused.
boolean isFontSet() Returns whether the font has been explicitly set for this Component.
boolean isForegroundSet() Returns whether the foreground color has been explicitly set for this Component.
void processMouseWheelEvent(MouseWheelEvent) Processes mouse wheel events occurring on this component by dispatching them to any registered MouseWheelListener objects.
void removeMouseWheelListener(MouseWheelListener) Removes the specified mouse wheel listener so that it no longer receives mouse wheel events from this component.
boolean requestFocus(boolean) Requests that this Component get the input focus and that this Component's top-level ancestor become the focused Window.
void requestFocus() Requests that this Component get the input focus and that this Component's top-level ancestor become the focused Window.
boolean requestFocusInWindow(boolean) Requests that this Component get the input focus if this Component's top-level ancestor is already the focused Window.
boolean requestFocusInWindow() Requests that this Component get the input focus if this Component's top-level ancestor is already the focused Window.
void setFocusTraversalKeys(int, Set) Sets the focus traversal keys for a given traversal operation for this Component.
void setFocusTraversalKeysEnabled(boolean) Sets whether focus traversal keys are enabled for this Component.
void setFocusable(boolean) Sets the focusable state of this Component to the specified value.
void setIgnoreRepaint(boolean) Sets whether or not paint messages received from the operating system should be ignored.
void transferFocusBackward() Transfers the focus to the previous component as though this Component were the focus owner.
void transferFocusUpCycle() Transfers the focus up one focus traversal cycle.
 

Changed Methods
void add(PopupMenu) Documentation changed from old to new.
Adds the specified popup menu to the component.
void addComponentListener(ComponentListener) Documentation changed from old to new.
Adds the specified component listener to receive component events from this component.
void addFocusListener(FocusListener) Documentation changed from old to new.
Adds the specified focus listener to receive focus events from this component when this component gains input focus.
void addHierarchyBoundsListener(HierarchyBoundsListener) Documentation changed from old to new.
Adds the specified hierarchy bounds listener to receive hierarchy bounds events from this component when the hierarchy to which this container belongs changes.
void addHierarchyListener(HierarchyListener) Documentation changed from old to new.
Adds the specified hierarchy listener to receive hierarchy changed events from this component when the hierarchy to which this container belongs changes.
void addInputMethodListener(InputMethodListener) Documentation changed from old to new.
Adds the specified input method listener to receive input method events from this component.
void addKeyListener(KeyListener) Documentation changed from old to new.
Adds the specified key listener to receive key events from this component.
void addMouseListener(MouseListener) Documentation changed from old to new.
Adds the specified mouse listener to receive mouse events from this component.
void addMouseMotionListener(MouseMotionListener) Documentation changed from old to new.
Adds the specified mouse motion listener to receive mouse motion events from this component.
void addNotify() Documentation changed from old to new.
Makes this Component displayable by connecting it to a native screen resource.
AWTEvent coalesceEvents(AWTEvent, AWTEvent) Documentation changed from old to new.
Potentially coalesce an event being posted with an existing event.
void disableEvents(long) Documentation changed from old to new.
Disables the events defined by the specified event mask parameter from being delivered to this component.
void dispatchEvent(AWTEvent) Documentation changed from old to new.
Dispatches an event to this component or one of its sub components.
void enableEvents(long) Documentation changed from old to new.
Enables the events defined by the specified event mask parameter to be delivered to this component.
void enableInputMethods(boolean) Documentation changed from old to new.
Enables or disables input method support for this component.
AccessibleContext getAccessibleContext() Documentation changed from old to new.
Gets the AccessibleContext associated with this Component.
Color getBackground() Documentation changed from old to new.
Gets the background color of this component.
ColorModel getColorModel() Documentation changed from old to new.
Gets the instance of ColorModel used to display the component on the output device.
ComponentOrientation getComponentOrientation() Documentation changed from old to new.
Retrieves the language-sensitive orientation that is to be used to order the elements or text within this component.
Cursor getCursor() Documentation changed from old to new.
Gets the cursor set in the component.
DropTarget getDropTarget() Documentation changed from old to new.
Gets the DropTarget associated with this Component.
Font getFont() Documentation changed from old to new.
Gets the font of this component.
FontMetrics getFontMetrics(Font) Documentation changed from old to new.
Gets the font metrics for the specified font.
Color getForeground() Documentation changed from old to new.
Gets the foreground color of this component.
Graphics getGraphics() Documentation changed from old to new.
Creates a graphics context for this component.
GraphicsConfiguration getGraphicsConfiguration() Documentation changed from old to new.
Gets the GraphicsConfiguration associated with this Component.
int getHeight() Documentation changed from old to new.
Returns the current height of this component.
InputContext getInputContext() Documentation changed from old to new.
Gets the input context used by this component for handling the communication with input methods when text is entered in this component.
InputMethodRequests getInputMethodRequests() Documentation changed from old to new.
Gets the input method request handler which supports requests from input methods for this component.
EventListener[] getListeners(Class) Documentation changed from old to new.
Returns an array of all the objects currently registered as FooListeners upon this Component.
Locale getLocale() Documentation changed from old to new.
Gets the locale of this component.
Point getLocationOnScreen() Documentation changed from old to new.
Gets the location of this component in the form of a point specifying the component's top-left corner in the screen's coordinate space.
Dimension getMaximumSize() Documentation changed from old to new.
Gets the maximum size of this component.
Dimension getMinimumSize() Documentation changed from old to new.
Gets the mininimum size of this component.
String getName() Documentation changed from old to new.
Gets the name of the component.
Container getParent() Documentation changed from old to new.
Gets the parent of this component.
ComponentPeer getPeer() Documentation changed from old to new.
As of JDK version 1.1, programs should not directly manipulate peers; replaced by boolean isDisplayable().
Dimension getPreferredSize() Documentation changed from old to new.
Gets the preferred size of this component.
Toolkit getToolkit() Documentation changed from old to new.
Gets the toolkit of this component.
Object getTreeLock() Documentation changed from old to new.
Gets this component's locking object (the object that owns the thread sychronization monitor) for AWT component-tree and layout operations.
int getWidth() Documentation changed from old to new.
Returns the current width of this component.
int getX() Documentation changed from old to new.
Returns the current x coordinate of the components origin.
int getY() Documentation changed from old to new.
Returns the current y coordinate of the components origin.
boolean hasFocus() Documentation changed from old to new.
Returns true if this Component is the focus owner.
boolean imageUpdate(Image, int, int, int, int, int) Documentation changed from old to new.
Repaints the component when the image has changed.
void invalidate() Documentation changed from old to new.
Invalidates this component.
boolean isDisplayable() Documentation changed from old to new.
Determines whether this component is displayable.
boolean isEnabled() Documentation changed from old to new.
Determines whether this component is enabled.
boolean isFocusTraversable() Documentation changed from old to new.
Now deprecated.
As of 1.4, replaced by isFocusable().
boolean isLightweight() Documentation changed from old to new.
A lightweight component doesn't have a native toolkit peer.
boolean isOpaque() Documentation changed from old to new.
Returns true if this component is completely opaque returns false by default.
boolean isShowing() Documentation changed from old to new.
Determines whether this component is showing on screen.
boolean isValid() Documentation changed from old to new.
Determines whether this component is valid.
boolean isVisible() Documentation changed from old to new.
Determines whether this component should be visible when its parent is visible.
void paint(Graphics) Documentation changed from old to new.
Paints this component.
void paintAll(Graphics) Documentation changed from old to new.
Paints this component and all of its subcomponents.
String paramString() Documentation changed from old to new.
Returns a string representing the state of this component.
void print(Graphics) Documentation changed from old to new.
Prints this component.
void printAll(Graphics) Documentation changed from old to new.
Prints this component and all of its subcomponents.
void processComponentEvent(ComponentEvent) Documentation changed from old to new.
Processes component events occurring on this component by dispatching them to any registered ComponentListener objects.
void processEvent(AWTEvent) Documentation changed from old to new.
Processes events occurring on this component.
void processFocusEvent(FocusEvent) Documentation changed from old to new.
Processes focus events occurring on this component by dispatching them to any registered FocusListener objects.
void processHierarchyBoundsEvent(HierarchyEvent) Documentation changed from old to new.
Processes hierarchy bounds events occurring on this component by dispatching them to any registered HierarchyBoundsListener objects.
void processHierarchyEvent(HierarchyEvent) Documentation changed from old to new.
Processes hierarchy events occurring on this component by dispatching them to any registered HierarchyListener objects.
void processInputMethodEvent(InputMethodEvent) Documentation changed from old to new.
Processes input method events occurring on this component by dispatching them to any registered InputMethodListener objects.
void processKeyEvent(KeyEvent) Documentation changed from old to new.
Processes key events occurring on this component by dispatching them to any registered KeyListener objects.
void processMouseEvent(MouseEvent) Documentation changed from old to new.
Processes mouse events occurring on this component by dispatching them to any registered MouseListener objects.
void processMouseMotionEvent(MouseEvent) Documentation changed from old to new.
Processes mouse motion events occurring on this component by dispatching them to any registered MouseMotionListener objects.
void remove(MenuComponent) Documentation changed from old to new.
Removes the specified popup menu from the component.
void removeComponentListener(ComponentListener) Documentation changed from old to new.
Removes the specified component listener so that it no longer receives component events from this component.
void removeFocusListener(FocusListener) Documentation changed from old to new.
Removes the specified focus listener so that it no longer receives focus events from this component.
void removeHierarchyBoundsListener(HierarchyBoundsListener) Documentation changed from old to new.
Removes the specified hierarchy bounds listener so that it no longer receives hierarchy bounds events from this component.
void removeHierarchyListener(HierarchyListener) Documentation changed from old to new.
Removes the specified hierarchy listener so that it no longer receives hierarchy changed events from this component.
void removeInputMethodListener(InputMethodListener) Documentation changed from old to new.
Removes the specified input method listener so that it no longer receives input method events from this component.
void removeKeyListener(KeyListener) Documentation changed from old to new.
Removes the specified key listener so that it no longer receives key events from this component.
void removeMouseListener(MouseListener) Documentation changed from old to new.
Removes the specified mouse listener so that it no longer receives mouse events from this component.
void removeMouseMotionListener(MouseMotionListener) Documentation changed from old to new.
Removes the specified mouse motion listener so that it no longer receives mouse motion events from this component.
void removeNotify() Documentation changed from old to new.
Makes this Component undisplayable by destroying it native screen resource.
void setBackground(Color) Documentation changed from old to new.
Sets the background color of this component.
void setComponentOrientation(ComponentOrientation) Documentation changed from old to new.
Sets the language-sensitive orientation that is to be used to order the elements or text within this component.
void setCursor(Cursor) Documentation changed from old to new.
Sets the cursor image to the specified cursor.
void setDropTarget(DropTarget) Documentation changed from old to new.
Associate a DropTarget with this component.
void setEnabled(boolean) Documentation changed from old to new.
Enables or disables this component depending on the value of the parameter b.
void setFont(Font) Documentation changed from old to new.
Sets the font of this component.
void setForeground(Color) Documentation changed from old to new.
Sets the foreground color of this component.
void setLocale(Locale) Documentation changed from old to new.
Sets the locale of this component.
void setName(String) Documentation changed from old to new.
Sets the name of the component to the specified string.
void setVisible(boolean) Documentation changed from old to new.
Shows or hides this component depending on the value of parameter b.
String toString() Documentation changed from old to new.
Returns a string representation of this component and its values.
void transferFocus() Documentation changed from old to new.
Transfers the focus to the next component as though this Component were the focus owner.
void update(Graphics) Documentation changed from old to new.
Updates this component.
void validate() Documentation changed from old to new.
Ensures that this component has a valid layout.
void addPropertyChangeListener(PropertyChangeListener) Documentation changed from old to new.
Adds a PropertyChangeListener to the listener list.
void addPropertyChangeListener(String, PropertyChangeListener) Documentation changed from old to new.
Adds a PropertyChangeListener to the listener list for a specific property.
int checkImage(Image, int, int, ImageObserver) Documentation changed from old to new.
Returns the status of the construction of a screen representation of the specified image.
int checkImage(Image, ImageObserver) Documentation changed from old to new.
Returns the status of the construction of a screen representation of the specified image.
boolean contains(int, int) Documentation changed from old to new.
Checks whether this component "contains" the specified point where x and y are defined to be relative to the coordinate system of this component.
boolean contains(Point) Documentation changed from old to new.
Checks whether this component "contains" the specified point where the point's x and y coordinates are defined to be relative to the coordinate system of this component.
Image createImage(int, int) Documentation changed from old to new.
Creates an off-screen drawable image to be used for double buffering.
Image createImage(ImageProducer) Documentation changed from old to new.
Creates an image from the specified image producer.
Rectangle getBounds() Documentation changed from old to new.
Gets the bounds of this component in the form of a Rectangle object.
Rectangle getBounds(Rectangle) Documentation changed from old to new.
Stores the bounds of this component into "return value" rv and return rv.
Component getComponentAt(int, int) Documentation changed from old to new.
Determines if this component or one of its immediate subcomponents contains the (x  y) location and if so returns the containing component.
Component getComponentAt(Point) Documentation changed from old to new.
Returns the component or subcomponent that contains the specified point.
Point getLocation() Documentation changed from old to new.
Gets the location of this component in the form of a point specifying the component's top-left corner.
Point getLocation(Point) Documentation changed from old to new.
Stores the x y origin of this component into "return value" rv and return rv.
Dimension getSize() Documentation changed from old to new.
Returns the size of this component in the form of a Dimension object.
Dimension getSize(Dimension) Documentation changed from old to new.
Stores the width/height of this component into "return value" rv and return rv.
void list(PrintStream) Documentation changed from old to new.
Prints a listing of this component to the specified output stream.
void list(PrintStream, int) Documentation changed from old to new.
Prints out a list starting at the specified indentation to the specified print stream.
void list(PrintWriter) Documentation changed from old to new.
Prints a listing to the specified print writer.
void list(PrintWriter, int) Documentation changed from old to new.
Prints out a list starting at the specified indentation to the specified print writer.
boolean prepareImage(Image, int, int, ImageObserver) Documentation changed from old to new.
Prepares an image for rendering on this component at the specified width and height.
boolean prepareImage(Image, ImageObserver) Documentation changed from old to new.
Prepares an image for rendering on this component.
void removePropertyChangeListener(PropertyChangeListener) Documentation changed from old to new.
Removes a PropertyChangeListener from the listener list.
void removePropertyChangeListener(String, PropertyChangeListener) Documentation changed from old to new.
Removes a PropertyChangeListener from the listener list for a specific property.
void repaint() Documentation changed from old to new.
Repaints this component.
void repaint(int, int, int, int) Documentation changed from old to new.
Repaints the specified rectangle of this component.
void repaint(long) Documentation changed from old to new.
Repaints the component.
void repaint(long, int, int, int, int) Documentation changed from old to new.
Repaints the specified rectangle of this component within tm milliseconds.
void setBounds(int, int, int, int) Documentation changed from old to new.
Moves and resizes this component.
void setBounds(Rectangle) Documentation changed from old to new.
Moves and resizes this component to conform to the new bounding rectangle r.
void setLocation(int, int) Documentation changed from old to new.
Moves this component to a new location.
void setLocation(Point) Documentation changed from old to new.
Moves this component to a new location.
void setSize(int, int) Documentation changed from old to new.
Resizes this component so that it has width width and height height.
void setSize(Dimension) Documentation changed from old to new.
Resizes this component so that it has width d.width and height d.height.