|
|
Start of Tutorial > Start of Trail > Start of Lesson |
Search
Feedback Form |
The following table maps 1.0 events to their 1.1 counterparts. The first column lists each 1.0 event type, along with the name of the method (if any) that's specific to the event. Where no method is listed, the event is always handled in thehandleEventmethod. The second column lists the 1.0 components that can generate the event type. The third column lists the listener interface that helps you handle the 1.1 equivalents of the listed events. The fourth column lists the methods in each listener interface.
1.0 1.1 Event/Method Generated By Interface Methods ACTION_EVENT/actionButton,List,MenuItem,TextFieldActionListeneractionPerformed(ActionEvent)Checkbox,CheckboxMenuItem,ChoiceItemListeneritemStateChanged(ItemEvent)WINDOW_DESTROY
WINDOW_EXPOSE
WINDOW_ICONIFY
WINDOW_DEICONIFYDialog,FrameWindowListenerwindowClosing(WindowEvent)
windowOpened(WindowEvent)
windowIconified(WindowEvent)
windowDeiconified(WindowEvent)
windowClosed(WindowEvent)(no 1.0 equivalent)
windowActivated(WindowEvent)(no 1.0 equivalent)
windowDeactivated(WindowEvent)(no 1.0 equivalent)WINDOW_MOVEDDialog,FrameComponentListenercomponentMoved(ComponentEvent)
componentHidden(ComponentEvent) (no 1.0 equivalent)
componentResized(ComponentEvent) (no 1.0 equivalent)
componentShown(ComponentEvent) (no 1.0 equivalent)SCROLL_LINE_UP
SCROLL_LINE_DOWN
SCROLL_PAGE_UP
SCROLL_PAGE_DOWN
SCROLL_ABSOLUTE
SCROLL_BEGIN
SCROLL_ENDScrollbarAdjustmentListener
(or use the newScrollPaneclass)adjustmentValueChanged(AdjustmentEvent)LIST_SELECT
LIST_DESELECTCheckbox,CheckboxMenuItem,Choice,ListItemListeneritemStateChanged(ItemEvent)MOUSE_DRAG/mouseDrag
MOUSE_MOVE/mouseMoveCanvas,Dialog,Frame,Panel,WindowMouseMotionListenermouseDragged(MouseEvent)
mouseMoved(MouseEvent)MOUSE_DOWN/mouseDown
MOUSE_UP/mouseUp
MOUSE_ENTER/mouseEnter
MOUSE_EXIT/mouseExitCanvas,Dialog,Frame,Panel,WindowMouseListenermousePressed(MouseEvent)
mouseReleased(MouseEvent)
mouseEntered(MouseEvent)
mouseExited(MouseEvent)
mouseClicked(MouseEvent)(no 1.0 equivalent)KEY_PRESS/keyDown
KEY_RELEASE/keyUp
KEY_ACTION/keyDown
KEY_ACTION_RELEASE/keyUpComponentKeyListenerkeyPressed(KeyEvent)
keyReleased(KeyEvent)
keyTyped(KeyEvent)(no 1.0 equivalent)GOT_FOCUS/gotFocus
LOST_FOCUS/lostFocusComponentFocusListenerfocusGained(FocusEvent)
focusLost(FocusEvent)No 1.0 equivalent. ContainerListenercomponentAdded(ContainerEvent)
componentRemoved(ContainerEvent)No 1.0 equivalent. TextListenertextValueChanged(TextEvent)
|
|
Start of Tutorial > Start of Trail > Start of Lesson |
Search
Feedback Form |
Copyright 1995-2004 Sun Microsystems, Inc. All rights reserved.