Generated by
JDiff

Class javax.swing.JComponent

Documentation changed from old to new.

Changed Constructors
JComponent(void) Documentation changed from old to new.
Default JComponent constructor.
 

Added Methods
void enable() overridden to ensure Accessibility support
ActionMap getActionMap() Returns the ActionMap used to determine what Action to fire for particular KeyStroke binding.
InputMap getInputMap() Returns the InputMap that is used when the receiver has focus.
InputMap getInputMap(int) Returns the InputMap that is used during condition.
InputVerifier getInputVerifier() Returns the input verifier for this component.
EventListener[] getListeners(Class) Return an array of all the listeners that were added to this JComponent with addXXXListener() where XXX is the name of the listenerType argument.
boolean getVerifyInputWhenFocusTarget() Get the value that indicates whether the input verifier for the current focus owner will be called before this component requests focus.
boolean isMaximumSizeSet() Returns true if the maximum size has been set to a non-null value otherwise returns false.
boolean isMinimumSizeSet() Returns true if the minimum size has been set to a non-null value otherwise returns false.
boolean isPreferredSizeSet() Returns true if the preferred size has been set to a non-null value otherwise returns false.
void printBorder(Graphics) Prints the component's border.
void printChildren(Graphics) Prints this component's children.
void printComponent(Graphics) This is invoked during a printing operation.
boolean processKeyBinding(KeyStroke, KeyEvent, int, boolean) Invoked to process the key bindings for ks as the result of the KeyEvent e.
void setActionMap(ActionMap) Sets the ActionMap to am.
void setInputMap(int, InputMap) Sets the InputMap to use under the condition condition to map.
void setInputVerifier(InputVerifier) Sets the input verifier for this component.
void setVerifyInputWhenFocusTarget(boolean) Set the value to indicate whether input verifier for the current focus owner will be called before this component requests focus.
 

Changed Methods
void addAncestorListener(AncestorListener) Documentation changed from old to new.
Registers listener so that it will receive AncestorEvents when it or any of its ancestors move or are made visible / invisible.
void addNotify() Documentation changed from old to new.
Notifies this component that it now has a parent component.
void addVetoableChangeListener(VetoableChangeListener) Documentation changed from old to new.
Adds a VetoableChangeListener to the listener list.
void computeVisibleRect(Rectangle) Documentation changed from old to new.
Returns the Component's "visible rect rectangle" - the intersection of the visible rectangles for this component and all of its ancestors.
void disable() Documentation changed from old to new.
Method was inherited from Component, but is now defined locally. Change from deprecated to undeprecated.
overridden to ensure Accessibility support
void fireVetoableChange(String, Object, Object) Documentation changed from old to new.
Supports reporting constrained property changes.
AccessibleContext getAccessibleContext() Documentation changed from old to new.
Gets the AccessibleContext associated with this JComponent.
ActionListener getActionForKeyStroke(KeyStroke) Documentation changed from old to new.
Returns the object that will perform the action registered for a given keystroke.
float getAlignmentX() Documentation changed from old to new.
Overrides Container.getAlignmentX to return the vertical alignment.
float getAlignmentY() Documentation changed from old to new.
Overrides Container.getAlignmentY to return the horizontal alignment.
boolean getAutoscrolls() Documentation changed from old to new.
Returns true if this component automatically scrolls its contents when dragged (when contained in a component that supports scrolling like JViewport).
Graphics getComponentGraphics(Graphics) Documentation changed from old to new.
Returns the graphics object used to paint this component.
int getConditionForKeyStroke(KeyStroke) Documentation changed from old to new.
Returns the condition that determines whether a registered action occurs in response to the specified keystroke.
int getHeight() Documentation changed from old to new.
Returns the current height of this component.
Dimension getMaximumSize() Documentation changed from old to new.
If the maximum size has been set to a non-null value just returns it.
Dimension getMinimumSize() Documentation changed from old to new.
If the minimum size has been set to a non-null value just returns it.
Component getNextFocusableComponent() Documentation changed from old to new.
Returns the next focusable component or null if the focus manager should choose the next focusable component automatically.
Dimension getPreferredSize() Documentation changed from old to new.
If the preferredSize has been set to a non-null value just returns it.
KeyStroke[] getRegisteredKeyStrokes() Documentation changed from old to new.
Returns the KeyStrokes that will initiate registered actions.
Point getToolTipLocation(MouseEvent) Documentation changed from old to new.
Returns the tooltip location in this component's coordinate system.
Container getTopLevelAncestor() Documentation changed from old to new.
Returns the top-level ancestor of this component (either the containing Window or Applet) or null if this component has not been added to any container.
String getUIClassID() Documentation changed from old to new.
Returns the UIDefaults key used to look up the name of the swing.plaf.ComponentUI class that defines the look and feel for this component.
Rectangle getVisibleRect() Documentation changed from old to new.
Returns the Component's "visible rectangle" - the intersection of this component's visible rectangle:
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 component's origin.
int getY() Documentation changed from old to new.
Returns the current y coordinate of the component's origin.
void grabFocus() Documentation changed from old to new.
Sets the focus on the receiving component if it doesn't already have it.
boolean hasFocus() Documentation changed from old to new.
Returns true if this Component has the keyboard focus.
void hide() Method was inherited from Component, but is now defined locally. As of JDK version 1.1, replaced by setVisible(boolean).
boolean isDoubleBuffered() Documentation changed from old to new.
Returns whether the receiving component should use a buffer to paint.
boolean isLightweightComponent(Component) Documentation changed from old to new.
Returns true if this component is a lightweight that is if it doesn't have a native window system peer.
boolean isManagingFocus() Documentation changed from old to new.
Override this method and return true if your JComponent manages focus.
boolean isOpaque() Documentation changed from old to new.
Returns true if this component is completely opaque.
boolean isOptimizedDrawingEnabled() Documentation changed from old to new.
Returns true if this component tiles its children -- that is if it can guarantee that the children will not overlap.
boolean isRequestFocusEnabled() Documentation changed from old to new.
Returns whether the receiving component can obtain the focus by calling requestFocus.
void paint(Graphics) Documentation changed from old to new.
This method is invoked by Swing to draw components.
void paintBorder(Graphics) Documentation changed from old to new.
Paints the component's border.
void paintChildren(Graphics) Documentation changed from old to new.
Paints this component's children.
void paintComponent(Graphics) Documentation changed from old to new.
If the UI delegate is non-null calls its paint method.
String paramString() Documentation changed from old to new.
Returns a string representation of this JComponent.
void print(Graphics) Documentation changed from old to new.
Invoke this method to print the receiver.
void printAll(Graphics) Documentation changed from old to new.
Invoke this method to print the receiver.
void processComponentKeyEvent(KeyEvent) Documentation changed from old to new.
Processes any key events that the component itself recognizes.
void processKeyEvent(KeyEvent) Documentation changed from old to new.
Overrides processKeyEvent to process events.
void putClientProperty(Object, Object) Documentation changed from old to new.
Adds an arbitrary key/value "client property" to this component.
void removeAncestorListener(AncestorListener) Documentation changed from old to new.
Unregisters listener so that it will no longer receive AncestorEvents
void removeNotify() Documentation changed from old to new.
Notifies this component that it no longer has a parent component.
void removeVetoableChangeListener(VetoableChangeListener) Documentation changed from old to new.
Removes a VetoableChangeListener from the listener list.
boolean requestDefaultFocus() Documentation changed from old to new.
Requests the focus for the component that should have the focus by default.
void requestFocus() Documentation changed from old to new.
Sets focus on the receiving component if isRequestFocusEnabled returns true and the component doesn't already have focus.
void resetKeyboardActions() Documentation changed from old to new.
Unregisters all the bindings in the first tier InputMaps and ActionMap.
void revalidate() Documentation changed from old to new.
Supports deferred automatic layout.
void scrollRectToVisible(Rectangle) Documentation changed from old to new.
Forwards the scrollRectToVisible() message to the JComponent's parent.
void setAlignmentX(float) Documentation changed from old to new.
Sets the the vertical alignment.
void setAlignmentY(float) Documentation changed from old to new.
Sets the the horizontal alignment.
void setAutoscrolls(boolean) Documentation changed from old to new.
If true this component will automatically scroll its contents when dragged if contained in a component that supports scrolling such as JViewport.
void setBorder(Border) Documentation changed from old to new.
Sets the border of this component.
void setDebugGraphicsOptions(int) Documentation changed from old to new.
Enables or disables diagnostic information about every graphics operation performed within the component or one of its children.
void setDoubleBuffered(boolean) Documentation changed from old to new.
Sets whether the receiving component should use a buffer to paint.
void setEnabled(boolean) Documentation changed from old to new.
Sets whether or not this component is enabled.
void setMaximumSize(Dimension) Documentation changed from old to new.
Sets the maximum size of this component to a constant value.
void setMinimumSize(Dimension) Documentation changed from old to new.
Sets the minimum size of this component to a constant value.
void setOpaque(boolean) Documentation changed from old to new.
If true the component paints every pixel within its bounds.
void setPreferredSize(Dimension) Documentation changed from old to new.
Sets the preferred size of the receiving component.
void setRequestFocusEnabled(boolean) Documentation changed from old to new.
Sets whether the receiving component can obtain the focus by calling requestFocus.
void setToolTipText(String) Documentation changed from old to new.
Registers the text to display in a tool tip.
void setUI(ComponentUI) Documentation changed from old to new.
Sets the look and feel delegate for this component.
void unregisterKeyboardAction(KeyStroke) Documentation changed from old to new.
This method is now obsolete.
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 for a specific property.
boolean contains(int, int) Documentation changed from old to new.
Gives the UI delegate an opportunity to define the precise shape of this component for the sake of mouse processing.
void firePropertyChange(String, Object, Object) Documentation changed from old to new.
Supports reporting bound property changes.
Rectangle getBounds(Rectangle) Documentation changed from old to new.
Stores the bounds of this component into "return value" rv and returns rv.
Insets getInsets() Documentation changed from old to new.
If a border has been set on this component returns the border's insets; otherwise calls super.getInsets.
Insets getInsets(Insets) Documentation changed from old to new.
Returns an Insets object containing this component's inset values.
Point getLocation(Point) Documentation changed from old to new.
Stores the x y origin of this component into "return value" rv and returns rv.
Dimension getSize(Dimension) Documentation changed from old to new.
Stores the width/height of this component into "return value" rv and returns rv.
String getToolTipText() Documentation changed from old to new.
Returns the tooltip string that has been set with setToolTipText().
String getToolTipText(MouseEvent) Documentation changed from old to new.
Returns the string to be used as the tooltip for event.
void paintImmediately(int, int, int, int) Documentation changed from old to new.
Paints the specified region in this component and all of its descendants that overlap the region immediately.
void paintImmediately(Rectangle) Documentation changed from old to new.
Paints the specified region now.
void registerKeyboardAction(ActionListener, String, KeyStroke, int) Documentation changed from old to new.
This method is now obsolete please use a combination of getActionMap() and getInputMap() for similiar behavior.
void registerKeyboardAction(ActionListener, KeyStroke, int) Documentation changed from old to new.
This method is now obsolete please use a combination of getActionMap() and getInputMap() for similiar behavior.
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 for a specific property.
 

Changed Fields
int UNDEFINED_CONDITION Documentation changed from old to new.
Constant used by some of the APIs to mean that no condition is defined.
int WHEN_ANCESTOR_OF_FOCUSED_COMPONENT Documentation changed from old to new.
Constant used for registerKeyboardAction() that means that the command should be invoked when the receiving component is an ancestor of the focused component or is itself the focused component.
int WHEN_FOCUSED Documentation changed from old to new.
Constant used for registerKeyboardAction() that means that the command should be invoked when the component has the focus.
int WHEN_IN_FOCUSED_WINDOW Documentation changed from old to new.
Constant used for registerKeyboardAction() that means that the command should be invoked when the receiving component is in the window that has the focus or is itself the focused component.
AccessibleContext accessibleContext Documentation changed from old to new.
The AccessibleContext associated with this JComponent.