JComponent常用API

组件外观:setBorder setBackgroud setForeground setFont setCursor setOpaque

组件状态:setComponentPopupMenu setTransferHandler setTooltipText isShowing setVisible setEnable

事件处理:addHierarchyListener addMouseListener addMouseMotionListener addKeyListener addComponentListener  contains getComponentAt

绘制组件:repaint revalidate paintComponent

容器层次:add remove removeAll getTopLevelAncestor getParent getComponentCount  getComponent  getComponentZOrder

布局:setPreferredSize setMaximumSize setMinimumSize setAllignmentX setAllignmentY setLayout setComponentOrientation applyComponentOrientation

大小和位置:setSize setWidth setHeight setBouds setLocation

你可能感兴趣的:(component)