Container and Component Properties Inherited by JComponent
  • Color getBackground()
  • Rectangle getBounds()
  • void setBounds(int x, int y, int width, int height)
  • void setBounds(Rectangle r)
  • ColorModel getColorModel()
  • Component getComponent(int n)
  • int getComponentCount()
  • ComponentOrientation getComponentOrientation()
  • void setComponentOrientation (ComponentOrientation orientation)
  • Component[] getComponents()
  • Cursor getCursor()
  • void setCursor(Cursor cursor)
  • boolean isDisplayable()
  • DropTarget getDropTarget()
  • boolean isEnabled()
  • Font getFont()
  • Color getForeground()
  • boolean isLightweight()
  • boolean isShowing()
  • void setDropTarget(DropTarget dt)
  • FontMetrics getFontMetrics(Font font)
  • InputContext getInputContext()
  • InputMethodRequests getInputMethodRequests()
  • LayoutManager getLayout()
  • void setLayout(LayoutManager mgr)
  • Locale getLocale()
  • void setLocale(Locale l)
  • Point getLocation()
  • void setLocation(int x, int y)
  • void setLocation(Point p)
  • Point getLocationOnScreen()
  • String getName()
  • void setName(String name)
  • Container getParent()
  • Dimension getSize()
  • void setSize(int width, int height)
  • void setSize(Dimension d)
  • Toolkit getToolkit()
  • Object getTreeLock()
  • boolean isValid()
  • boolean isVisible()
Figure 2