Eventi e metodi delle rispettive interfaccie listener

Tipo di evento(*) Metodi associati(**)
ActionactionPerformed
AdjustmentadjustmentValueChanged
ComponentcomponentHidden
componentShown
componentMoved
componentResized
ContainercomponentAdded
componentRemoved
FocusfocusGained
focusLost
KeykeyPressed
keyReleased
keyTyped
Mouse(***)mouseClicked
mouseEntered
mouseExited
mousePressed
mouseReleased
MouseMotion(***)mouseDragged
mouseMoved
WindowwindowOpened
windowClosing
windowClosed
windowActivated
windowDeactivated
windowIconified
windowDeiconified
ItemitemStateChanged
TexttextValueChanged
(*)Il nome dell'interfaccia e' TipoEventoListener ad esempio:ActionListener
(**)Il metodo va ridefinito nel modo seguente:

public void metodo(TipoeventoEvent e) ad es:
public void mouseMoved(MouseEvent e)

(***)L'evento MouseEvent ha 2 interfacce associate:MouseListener e MouseMotionListener
INDIETRO a Seminario su Java
Maintained by Giuseppe Zito: info@zitogiuseppe.com
Ultimo aggiornamento: