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. |