Advanced   Java   Services JComponent Back Next Up Home


Grundlegende Eigenschaften
Methoden
ReturntypName der Methode
Border
 
getBorder()
Returns the border of this component or null if no border is currently set.
void
 
setBorder(Border border)
Sets the border of this component.
Dimension
 
getPreferredSize()
If the preferredSize has been set to a non-null value just returns it.
void
 
setPreferredSize(Dimension preferredSize)
Sets the preferred size of this component.
JRootPane
  
getRootPane()
Returns the JRootPane that contains this component, or null if no JRootPane is found.
Note: The only subclass of JComponent, that has a setRootPane(JRootPane)-Method is JInternalFrame!
String
 
getToolTipText()
Returns the tooltip string that has been set with setToolTipText.
String
 
getToolTipText(MouseEvent e)
Returns the string to be used as the tooltip for event.
void
 
setToolTipText(String text)
Registers the text to display in a tool tip.
Container
 
getTopLevelAncestor()
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.
TransferHandler
 
getTransferHandler()
Gets the transferHandler property.
void
 
setTransferHandler(TransferHandler newHandler)
Sets the transferHandler property, which is null if the component does not support data transfer operations.
boolean
 
isOpaque()
Returns true if this component is completely opaque.
void
 
setOpaque(boolean isOpaque)
If true the component paints every pixel within its bounds.
boolean
 
isRequestFocusEnabled()
Returns true if this JComponent should get focus; otherwise returns false.
void
 
setRequestFocusEnabled(boolean requestFocusEnabled)
Provides a hint as to whether or not this JComponent should get focus.

Valid XHTML 1.0 Strict top Back Next Up Home