KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > swing > JComponent

javax.swing
Class JComponent

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable
Direct Known Subclasses:
AbstractButton, BasicInternalFrameTitlePane, Box, Box.Filler, JColorChooser, JComboBox, JFileChooser, JInternalFrame, JInternalFrame.JDesktopIcon, JLabel, JLayeredPane, JList, JMenuBar, JOptionPane, JPanel, JPopupMenu, JProgressBar, JRootPane, JScrollBar, JScrollPane, JSeparator, JSlider, JSpinner, JSplitPane, JTabbedPane, JTable, JTableHeader, JTextComponent, JToolBar, JToolTip, JTree, JViewport
See Also:
Top Examples, Source Code, XMLEncoder, getClientProperty(java.lang.Object), putClientProperty(java.lang.Object, java.lang.Object), ComponentUI, KeyStroke, Action, setBorder(javax.swing.border.Border), registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int), setDebugGraphicsOptions(int), setToolTipText(java.lang.String), setAutoscrolls(boolean)

protected AccessibleContext accessibleContext
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void addAncestorListener(AncestorListener listener)
See Also:
AncestorEvent
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void addNotify()
See Also:
registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int), Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void addVetoableChangeListener(VetoableChangeListener listener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void computeVisibleRect(Rectangle visibleRect)
See Also:
getVisibleRect()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean contains(int x,
                        int y)
See Also:
ComponentUI, Component
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JToolTip createToolTip()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


@Deprecated
public void disable()
See Also:
Component
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


@Deprecated
public void enable()
See Also:
Component
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void firePropertyChange(String propertyName,
                               boolean oldValue,
                               boolean newValue)
See Also:
Component
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void firePropertyChange(String propertyName,
                               char oldValue,
                               char newValue)
See Also:
Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void firePropertyChange(String propertyName,
                               int oldValue,
                               int newValue)
See Also:
Component
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void fireVetoableChange(String propertyName,
                                  Object oldValue,
                                  Object newValue)
                           throws PropertyVetoException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public AccessibleContext getAccessibleContext()
See Also:
Component
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public ActionListener getActionForKeyStroke(KeyStroke aKeyStroke)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final ActionMap getActionMap()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public float getAlignmentX()
See Also:
setAlignmentX(float), Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public float getAlignmentY()
See Also:
setAlignmentY(float), Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public AncestorListener[] getAncestorListeners()
See Also:
removeAncestorListener(javax.swing.event.AncestorListener), addAncestorListener(javax.swing.event.AncestorListener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean getAutoscrolls()
See Also:
setAutoscrolls(boolean), JViewport
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Border getBorder()
See Also:
setBorder(javax.swing.border.Border)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Rectangle getBounds(Rectangle rv)
See Also:
Component
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final Object getClientProperty(Object key)
See Also:
putClientProperty(java.lang.Object, java.lang.Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected Graphics getComponentGraphics(Graphics g)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JPopupMenu getComponentPopupMenu()
See Also:
setComponentPopupMenu(javax.swing.JPopupMenu)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[1435]_
By Zezmain on 2005/05/19 06:06:57  Rate
JPopupMenu menu = createPopupMenu ( cell ) ;

public int getConditionForKeyStroke(KeyStroke aKeyStroke)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getDebugGraphicsOptions()
See Also:
setDebugGraphicsOptions(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static Locale getDefaultLocale()
See Also:
Component.setLocale(java.util.Locale), Component.getLocale(), setDefaultLocale(java.util.Locale)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public FontMetrics getFontMetrics(Font font)
See Also:
Component.getPeer(), Component.getFont(), NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Graphics getGraphics()
See Also:
Component.paint(java.awt.Graphics)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getHeight()
See Also:
Component
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean getInheritsPopupMenu()
See Also:
setComponentPopupMenu(javax.swing.JPopupMenu)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final InputMap getInputMap()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final InputMap getInputMap(int condition)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public InputVerifier getInputVerifier()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Insets getInsets()
See Also:
setBorder(javax.swing.border.Border), Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Insets getInsets(Insets insets)
See Also:
getInsets()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public <T extends EventListener> T[] getListeners(Class<T> listenerType)
See Also:
getAncestorListeners(), getVetoableChangeListeners(), ClassCastException, Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Point getLocation(Point rv)
See Also:
Component
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Dimension getMaximumSize()
See Also:
ComponentUI, setMaximumSize(java.awt.Dimension), Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Dimension getMinimumSize()
See Also:
ComponentUI, setMinimumSize(java.awt.Dimension), Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


@Deprecated
public Component getNextFocusableComponent()
See Also:
setNextFocusableComponent(java.awt.Component)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Point getPopupLocation(MouseEvent event)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Dimension getPreferredSize()
See Also:
ComponentUI, setPreferredSize(java.awt.Dimension), Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public KeyStroke[] getRegisteredKeyStrokes()
See Also:
registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JRootPane getRootPane()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Dimension getSize(Dimension rv)
See Also:
Component
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Point getToolTipLocation(MouseEvent event)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getToolTipText()
See Also:
TOOL_TIP_TEXT_KEY
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getToolTipText(MouseEvent event)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Container getTopLevelAncestor()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public TransferHandler getTransferHandler()
See Also:
setTransferHandler(javax.swing.TransferHandler)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getUIClassID()
See Also:
UIDefaults.getUI(javax.swing.JComponent)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean getVerifyInputWhenFocusTarget()
See Also:
setVerifyInputWhenFocusTarget(boolean), getInputVerifier(), setInputVerifier(javax.swing.InputVerifier), InputVerifier
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public VetoableChangeListener[] getVetoableChangeListeners()
See Also:
removeVetoableChangeListener(java.beans.VetoableChangeListener), addVetoableChangeListener(java.beans.VetoableChangeListener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Rectangle getVisibleRect()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[91]Testing for SWING componentb visibility
By Anonymous on 2002/10/17 17:46:53  Rate
//Testing for visibility 
  
  
 public static boolean isVisible ( JComponent c, Rectangle r )  
  {  
     return c.getVisibleRect (  ) .contains ( r ) ; 
  }  
  
  
 public static boolean isHorizontallyVisible ( JComponent c, int from, int to )  
  {  
     Rectangle visible = c.getVisibleRect (  ) ; 
  
  
     return visible.x  < = from 
         && visible.x + visible.width  > = to;         
  }  
 


public int getWidth()
See Also:
Component
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getX()
See Also:
Component
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getY()
See Also:
Component
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void grabFocus()
See Also:
requestFocusInWindow()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isDoubleBuffered()
See Also:
Component
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static boolean isLightweightComponent(Component c)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


@Deprecated
public boolean isManagingFocus()
See Also:
SortingFocusTraversalPolicy, Component.setFocusTraversalKeys(int, java.util.Set)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isOpaque()
See Also:
setOpaque(boolean), Component
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isOptimizedDrawingEnabled()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[1264]Ensure that lower z-order components are not drawn on top of higher components
By Anonymous on 2005/01/20 13:12:13  Rate
To ensure that lower z-order components are not drawn on top of higher components, when components overlap, be sure their container returns false from the isOptimizedDrawingEnabled (  )  method that is inherited from JComponent, 
  
  
 JPanel myPane = new JPanel (  )   {  
    public boolean isOptimizedDrawingEnabled (  )   {  
          return false; 
     }  
  } ; 
 


public boolean isPaintingTile()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isRequestFocusEnabled()
See Also:
Component.isFocusable(), setRequestFocusEnabled(boolean)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isValidateRoot()
See Also:
Container.validate(), Component.invalidate(), revalidate()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JComponent()
See Also:
getDefaultLocale()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected EventListenerList listenerList
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void paint(Graphics g)
See Also:
repaint(long, int, int, int, int), getComponentGraphics(java.awt.Graphics), paintChildren(java.awt.Graphics), paintBorder(java.awt.Graphics), paintComponent(java.awt.Graphics), Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void paintBorder(Graphics g)
See Also:
setBorder(javax.swing.border.Border), paint(java.awt.Graphics)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void paintChildren(Graphics g)
See Also:
Container.paint(java.awt.Graphics), paint(java.awt.Graphics)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void paintComponent(Graphics g)
See Also:
ComponentUI, paint(java.awt.Graphics)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void paintImmediately(int x,
                             int y,
                             int w,
                             int h)
See Also:
repaint(long, int, int, int, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void paintImmediately(Rectangle r)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected String paramString()
See Also:
Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void print(Graphics g)
See Also:
printChildren(java.awt.Graphics), printBorder(java.awt.Graphics), printComponent(java.awt.Graphics), Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void printAll(Graphics g)
See Also:
printChildren(java.awt.Graphics), printBorder(java.awt.Graphics), printComponent(java.awt.Graphics), print(java.awt.Graphics), Component
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void printBorder(Graphics g)
See Also:
print(java.awt.Graphics)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void printChildren(Graphics g)
See Also:
print(java.awt.Graphics)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void printComponent(Graphics g)
See Also:
print(java.awt.Graphics)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void processComponentKeyEvent(KeyEvent e)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected boolean processKeyBinding(KeyStroke ks,
                                    KeyEvent e,
                                    int condition,
                                    boolean pressed)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void processKeyEvent(KeyEvent e)
See Also:
Component.isShowing(), Component.enableEvents(long), Component.addKeyListener(java.awt.event.KeyListener), Component.dispatchEvent(java.awt.AWTEvent), Component.processEvent(java.awt.AWTEvent), DefaultKeyboardFocusManager, KeyboardFocusManager, KeyListener
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void processMouseEvent(MouseEvent e)
See Also:
Component
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void processMouseMotionEvent(MouseEvent e)
See Also:
Component
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final void putClientProperty(Object key,
                                    Object value)
See Also:
Container.addPropertyChangeListener(java.beans.PropertyChangeListener), getClientProperty(java.lang.Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void registerKeyboardAction(ActionListener anAction,
                                   String aCommand,
                                   KeyStroke aKeyStroke,
                                   int aCondition)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void registerKeyboardAction(ActionListener anAction,
                                   KeyStroke aKeyStroke,
                                   int aCondition)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void removeAncestorListener(AncestorListener listener)
See Also:
addAncestorListener(javax.swing.event.AncestorListener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void removeNotify()
See Also:
registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int), Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void removeVetoableChangeListener(VetoableChangeListener listener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void repaint(Rectangle r)
See Also:
RepaintManager.addDirtyRegion(javax.swing.JComponent, int, int, int, int), Component.isShowing()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void repaint(long tm,
                    int x,
                    int y,
                    int width,
                    int height)
See Also:
RepaintManager.addDirtyRegion(javax.swing.JComponent, int, int, int, int), Component.isShowing()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


@Deprecated
public boolean requestDefaultFocus()
See Also:
FocusTraversalPolicy.getDefaultComponent(java.awt.Container)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void requestFocus()
See Also:
Component.requestFocusInWindow(boolean), Component.requestFocusInWindow(), requestFocusInWindow()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean requestFocus(boolean temporary)
See Also:
Component.requestFocusInWindow(boolean), Component.requestFocusInWindow(), requestFocusInWindow(boolean)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean requestFocusInWindow()
See Also:
Component.requestFocusInWindow(boolean)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected boolean requestFocusInWindow(boolean temporary)
See Also:
Component.requestFocusInWindow()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void resetKeyboardActions()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


@Deprecated
public void reshape(int x,
                               int y,
                               int w,
                               int h)
See Also:
Component.setBounds(int, int, int, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void revalidate()
See Also:
RepaintManager.addInvalidComponent(javax.swing.JComponent), isValidateRoot(), Container.validate(), Component.invalidate()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void scrollRectToVisible(Rectangle aRect)
See Also:
JViewport
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final void setActionMap(ActionMap am)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setAlignmentX(float alignmentX)
See Also:
getAlignmentX()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setAlignmentY(float alignmentY)
See Also:
getAlignmentY()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setAutoscrolls(boolean autoscrolls)
See Also:
JScrollPane, JViewport, getAutoscrolls()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setBackground(Color bg)
See Also:
Component.getBackground()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setBorder(Border border)
See Also:
CompoundBorder
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setComponentPopupMenu(JPopupMenu popup)
See Also:
getComponentPopupMenu()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setDebugGraphicsOptions(int debugOptions)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static void setDefaultLocale(Locale l)
See Also:
Component.setLocale(java.util.Locale), Component.getLocale(), getDefaultLocale()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setDoubleBuffered(boolean aFlag)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setEnabled(boolean enabled)
See Also:
Component.isLightweight(), Component.isEnabled()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setFocusTraversalKeys(int id,
                                  Set<? extends AWTKeyStroke> keystrokes)
See Also:
KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS, KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS, KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, IllegalArgumentException, Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setFont(Font font)
See Also:
Component.getFont(), Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setForeground(Color fg)
See Also:
Component.getForeground()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setInheritsPopupMenu(boolean value)
See Also:
setComponentPopupMenu(javax.swing.JPopupMenu)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final void setInputMap(int condition,
                              InputMap map)
See Also:
IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setInputVerifier(InputVerifier inputVerifier)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setMaximumSize(Dimension maximumSize)
See Also:
getMaximumSize(), Component
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setMinimumSize(Dimension minimumSize)
See Also:
getMinimumSize(), Component
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


@Deprecated
public void setNextFocusableComponent(Component aComponent)
See Also:
FocusTraversalPolicy, getNextFocusableComponent()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setOpaque(boolean isOpaque)
See Also:
isOpaque()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setPreferredSize(Dimension preferredSize)
See Also:
Component.isPreferredSizeSet(), Component.getPreferredSize()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setRequestFocusEnabled(boolean requestFocusEnabled)
See Also:
Component.setFocusable(boolean)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setToolTipText(String text)
See Also:
TOOL_TIP_TEXT_KEY
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[90]Multi-Line Tooltip
By Anonymous on 2002/10/17 17:43:25  Rate
// add tool tips to three buttons 
 b1.setToolTipText ( "Click this button to disable the middle button." ) ; 
 b2.setToolTipText ( "This middle button does nothing when you click it." ) ; 
 b3.setToolTipText ( "Click this button to enable the middle button." ) ; 
 


[126]_
By Anonymous on 2002/11/22 09:03:31  Rate
//Multi-Line Tooltip 
  
  
 myJComponent.setToolTipText ( " < html > First Line < br/ > Second Line < /html > " ) ; 
 


public void setTransferHandler(TransferHandler newHandler)
See Also:
getTransferHandler()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void setUI(ComponentUI newUI)
See Also:
UIManager.getUI(javax.swing.JComponent), UIManager.getLookAndFeel(), updateUI()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setVerifyInputWhenFocusTarget(boolean verifyInputWhenFocusTarget)
See Also:
getVerifyInputWhenFocusTarget(), getInputVerifier(), setInputVerifier(javax.swing.InputVerifier), InputVerifier
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setVisible(boolean aFlag)
See Also:
Component.isVisible()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final String TOOL_TIP_TEXT_KEY
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected transient ComponentUI ui
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int UNDEFINED_CONDITION
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void unregisterKeyboardAction(KeyStroke aKeyStroke)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void update(Graphics g)
See Also:
ComponentUI, paintComponent(java.awt.Graphics), paint(java.awt.Graphics), Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void updateUI()
See Also:
UIManager.getUI(javax.swing.JComponent), UIManager.getLookAndFeel(), setUI(javax.swing.plaf.ComponentUI)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int WHEN_FOCUSED
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int WHEN_IN_FOCUSED_WINDOW
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags