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 or 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. |
JToolTip createToolTip()
|
Documentation changed from old to new. |
Returns the instance of JToolTip that should be used to display the tooltip. |
void disable()
|
Documentation changed from old to new. |
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. |
Returns 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. |
ActionMap getActionMap()
|
Documentation changed from old to new. |
Returns the ActionMap used to determine what Action to fire for particular KeyStroke binding. |
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. |
Gets the autoscrolls property. |
Border getBorder()
|
Documentation changed from old to new. |
Returns the border of this component or null if no border is currently set. |
Object getClientProperty(Object )
|
Documentation changed from old to new. |
Returns the value of the property with the specified key. |
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 getDebugGraphicsOptions()
|
Documentation changed from old to new. |
Returns the state of graphics debugging. |
Graphics getGraphics()
|
Documentation changed from old to new. |
Returns this component's graphics context which lets you draw on a component. |
int getHeight()
|
Documentation changed from old to new. |
Returns the current height of this component. |
InputVerifier getInputVerifier()
|
Documentation changed from old to new. |
Returns the input verifier for this component. |
EventListener[] getListeners(Class )
|
Documentation changed from old to new. |
Returns an array of all the objects currently registered as FooListener s upon this JComponent . |
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. Now deprecated.
|
As of 1.4, replaced by FocusTraversalPolicy . |
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. |
JRootPane getRootPane()
|
Documentation changed from old to new. |
Returns the JRootPane ancestor for this component. |
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. |
boolean getVerifyInputWhenFocusTarget()
|
Documentation changed from old to new. |
Returns the value that indicates whether the input verifier for the current focus owner will be called before this component requests focus. |
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. |
Requests that this Component get the input focus and that this Component's top-level ancestor become the focused Window. |
boolean hasFocus()
|
Documentation changed from old to new. Method was locally defined, but is now inherited from Component.
|
Returns true if this Component is the focus owner. |
void hide()
|
Method was locally defined, but is now inherited from Component.
|
As of JDK version 1.1, replaced by setVisible(boolean) . |
boolean isDoubleBuffered()
|
Documentation changed from old to new. |
Returns whether this component should use a buffer to paint. |
boolean isFocusTraversable()
|
Documentation changed from old to new. Method was locally defined, but is now inherited from Component. Now deprecated.
|
As of 1.4, replaced by isFocusable() . |
boolean isLightweightComponent(Component )
|
Documentation changed from old to new. |
Returns true if this component is lightweight that is if it doesn't have a native window system peer. |
boolean isManagingFocus()
|
Documentation changed from old to new. Now deprecated.
|
As of 1.4, replaced by Component.setFocusTraversalKeys(int, Set) and Container.setFocusCycleRoot(boolean) . |
boolean isMaximumSizeSet()
|
Documentation changed from old to new. |
Returns true if the maximum size has been set to a non-null value otherwise returns false. |
boolean isMinimumSizeSet()
|
Documentation changed from old to new. |
Returns true if the minimum size has been set to a non-null value otherwise returns false. |
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 isPaintingTile()
|
Documentation changed from old to new. |
Returns true if the component is currently painting a tile. |
boolean isPreferredSizeSet()
|
Documentation changed from old to new. |
Returns true if the preferred size has been set to a non-null value otherwise returns false. |
boolean isRequestFocusEnabled()
|
Documentation changed from old to new. |
Returns true if this JComponent should get focus; otherwise returns false . |
boolean isValidateRoot()
|
Documentation changed from old to new. |
If this method returns true revalidate calls by descendants of this component will cause the entire tree beginning with this root to be validated. |
void paint(Graphics )
|
Documentation changed from old to new. |
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. |
Calls the UI delegate's paint method if the UI delegate is non-null . |
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 component. |
void printAll(Graphics )
|
Documentation changed from old to new. |
Invoke this method to print the component. |
void printBorder(Graphics )
|
Documentation changed from old to new. |
Prints the component's border. |
void printChildren(Graphics )
|
Documentation changed from old to new. |
Prints this component's children. |
void printComponent(Graphics )
|
Documentation changed from old to new. |
This is invoked during a printing operation. |
void processFocusEvent(FocusEvent )
|
Documentation changed from old to new. Method was locally defined, but is now inherited from Component.
|
Processes focus events occurring on this component by dispatching them to any registered FocusListener objects. |
boolean processKeyBinding(KeyStroke, KeyEvent, int, boolean)
|
Documentation changed from old to new. |
Invoked to process the key bindings for ks as the result of the KeyEvent e . |
void processKeyEvent(KeyEvent )
|
Documentation changed from old to new. |
Overrides processKeyEvent to process events. |
void processMouseMotionEvent(MouseEvent )
|
Documentation changed from old to new. |
Processes mouse motion events such as MouseEvent.MOUSE_DRAGGED. |
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. Now deprecated.
|
As of 1.4, replaced by FocusTraversalPolicy.getDefaultComponent(Container).requestFocus() |
void resetKeyboardActions()
|
Documentation changed from old to new. |
Unregisters all the bindings in the first tier InputMaps and ActionMap . |
void reshape(int, int, int, int)
|
Documentation changed from old to new. |
Moves and resizes this component. |
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 setActionMap(ActionMap )
|
Documentation changed from old to new. |
Sets the ActionMap to am . |
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. |
Sets the autoscrolls property. |
void setBackground(Color )
|
Documentation changed from old to new. |
Sets the background color of this component. |
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 this 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 setFont(Font )
|
Documentation changed from old to new. |
Sets the font for this component. |
void setForeground(Color )
|
Documentation changed from old to new. |
Sets the foreground color of this component. |
void setInputMap(int, InputMap)
|
Documentation changed from old to new. |
Sets the InputMap to use under the condition condition to map . |
void setInputVerifier(InputVerifier )
|
Documentation changed from old to new. |
Sets the input verifier for this component. |
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 setNextFocusableComponent(Component )
|
Documentation changed from old to new. Now deprecated.
|
As of 1.4, replaced by FocusTraversalPolicy |
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 this component. |
void setRequestFocusEnabled(boolean )
|
Documentation changed from old to new. |
Provides a hint as to whether or not this JComponent should get focus. |
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 setVerifyInputWhenFocusTarget(boolean )
|
Documentation changed from old to new. |
Sets the value to indicate whether input verifier for the current focus owner will be called before this component requests focus. |
void setVisible(boolean )
|
Documentation changed from old to new. |
Makes the component visible or invisible. |
void unregisterKeyboardAction(KeyStroke )
|
Documentation changed from old to new. |
This method is now obsolete. |
void update(Graphics )
|
Documentation changed from old to new. |
Calls paint . |
void updateUI()
|
Documentation changed from old to new. |
Resets the UI property to a value from the current look and feel. |
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 enable()
|
Documentation changed from old to new. |
Overridden to ensure Accessibility support. |
void firePropertyChange(String, Object, Object)
|
Documentation changed from old to new. |
Supports reporting bound property changes. |
void firePropertyChange(String, boolean, boolean)
|
Documentation changed from old to new. |
Reports a bound property change. |
void firePropertyChange(String, byte, byte)
|
Documentation changed from old to new. |
Reports a bound property change. |
void firePropertyChange(String, char, char)
|
Documentation changed from old to new. |
Reports a bound property change. |
void firePropertyChange(String, double, double)
|
Documentation changed from old to new. |
Reports a bound property change. |
void firePropertyChange(String, float, float)
|
Documentation changed from old to new. |
Reports a bound property change. |
void firePropertyChange(String, int, int)
|
Documentation changed from old to new. |
Reports a bound property change. |
void firePropertyChange(String, long, long)
|
Documentation changed from old to new. |
Reports a bound property change. |
void firePropertyChange(String, short, short)
|
Documentation changed from old to new. |
Reports a bound property change. |
Rectangle getBounds(Rectangle )
|
Documentation changed from old to new. |
Stores the bounds of this component into "return value" rv and returns rv . |
InputMap getInputMap()
|
Documentation changed from old to new. |
Returns the InputMap that is used when the component has focus. |
InputMap getInputMap(int )
|
Documentation changed from old to new. |
Returns the InputMap that is used during condition . |
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 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. |
void repaint(Rectangle )
|
Documentation changed from old to new. |
Adds the specified region to the dirty region list if the component is showing. |
void repaint(long, int, int, int, int)
|
Documentation changed from old to new. |
Adds the specified region to the dirty region list if the component is showing. |