![]() Methods inherited from class java.awt.TextComponent addTextListener, enableInputMethods, getBackground, getCaretPosition, getInputMethodRequests, getSelectedText, getSelectionEnd, getSelectionStart, getText, getTextListeners, isEditable, processTextEvent, removeNotify, removeTextListener, select, selectAll, setBackground, setCaretPosition, setEditable, setSelectionEnd, setSelectionStart ProcessActionEvent(),ĪddActionListener(), Since: JDK1.0 See Also: KeyEvent,Ĭomponent.addKeyListener(), Registered to receive action events generated by this The latter method redirects theĮvent to any ActionListener objects that have Method examines the action event and passes it along to If action events are enabled for the text field, they may It is also possible to fire an ActionEvent. Or KeyAdapter object which registered to receive suchĮvents using the component's addKeyListener method. The key event is passed to every KeyListener Such as what modifiers are applied to the key event and the It is, as well as additional information about the event, ![]() The properties of a key event indicate which of these types May be one of three types: keyPressed, keyReleased, or keyTyped. ![]() More key events are sent to the text field. Here is the code that produces these four text fields:Įvery time the user types a key in the text field, one or That allows for the editing of a single line of text.įor example, the following image depicts a frame with four ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |