-
* 이벤트 객체
java.util.EventObject
.getSource()
java.awt.AWTEvent -> java.util.EventObject
java.awt.event.KeyEvent -> java.awt.event.InputEvent -> java.awt.event.ComponentEvent -> java.awt.AWTEvent
.VK_UP
.VK_DOWN
.VK_LEFT
.VK_RIGHT
.VK_ENTER
.getKeyChar()
.getKeyCode()
java.awt.event.KeyEvent.VK_UP
java.awt.event.MouseEvent -> java.awt.event.InputEvent -> java.awt.event.ComponentEvent -> java.awt.AWTEvent.getX()
.getY()
java.awt.event.ActionEvent -> java.awt.AWTEvent
java.awt.Button
java.awt.MenuItem
.getActionCommand()
java.awt.event.TextEvent -> java.awt.AWTEvent
java.awt.event.ItemEvent -> java.awt.AWTEvent
.SELECTED
java.awt.Checkbox
java.awt.Choice
java.awt.List
.getStateChange()
java.awt.event.ItemEvent.SELECTED
.getItem()
c.f. java.awt.List::addItem()
java.awt.event.AdjustmentEvent -> java.awt.AWTEvent
.getAdjustmentType()
.getValue()
* 이벤트 리스너
java.awt.event.ActionListener // interface
void actionPerformed(ActionEvent e) // callback
java.awt.event.ItemListener // interface
void itemStateChanged(ItemEvent e)
java.awt.event.AdjustmentListener // interface
void adjustmentValueChanged(AdjustmentEvent e)
java.awt.event.KeyListener // interface
void keyTyped(KeyEvent e)
void keyPressed(KeyEvent e)
void keyReleased(KeyEvent e)
java.awt.event.KeyAdaptervoid keyTyped(KeyEvent)java.awt.event.TextListener // interface
void textValueChanged(TextEvent e)
java.awt.event.MouseListener // interface
void mouseEntered(MouseEvent e)
void mouseExited(MouseEvent e)
void mouseClicked(MouseEvent e)
void mousePressed(MouseEvent e)
void mouseReleased(MouseEvent e)
java.awt.event.MouseMotionListener // interfacevoid mouseDragged(MouseEvent e)void mouseMoved(MouseEvent e)*
java.awt.Component -> java.lang.Object
.addKeyListener()
java.awt.event.KeyListener // interface
.addMouseListener()
java.awt.event.MouseListener // interface
.addMouseMotionListener()
java.awt.event.MouseMotionListener // interface
.setBackground()
java.awt.Color.red
.getBackground()
.getGraphics()
.setSize()
.requestFocus()
java.awt.Container -> java.awt.Component
.add()
java.awt.Window -> java.awt.Container
java.awt.Frame -> java.awt.Window
.setMenuBar()
java.awt.Panel -> java.awt.Container
java.awt.MenuItem -> java.awt.MenuComponent
.addActionListener(java.awt.event.ActionListener)
java.awt.Menu -> java.awt.MenuItem
.add()
java.awt.MenuBar -> java.awt.MenuComponent
.add()
java.awt.Label -> java.awt.Component
.CENTER
.setText()
java.awt.Canvas -> java.awt.Component
java.awt.Button -> java.awt.Component
.addActionListener()
java.awt.event.ActionListener // interface
java.awt.CheckboxGroup
java.awt.Checkbox
.addItemListener(java.awt.event.ItemListener)
java.awt.TextComponent -> java.awt.Component
.addTextListener()
java.awt.event.TextListener // interface
.getText()
java.awt.TextField -> java.awt.TextComponent
.setEchoChar()
.setText()
java.awt.TextArea -> java.awt.TextComponent
.append()
.appendText() // Deprecated
java.awt.Choice
.addItem()
java.awt.List
.addItem()
.getSelectedItem()
.getSelectedItems()
java.awt.Scrollbar -> java.awt.Component
.HORIZONTAL
.addAdjustmentListener()
java.awt.event.AdjustmentListener // interface
java.applet.Applet -> java.awt.Panel
.getDocumentBase()
.getImage()