X web hosting - Java Swing - O Reilly public InsertContentAction() Creates an
Java Swing - O Reilly public InsertContentAction() Creates an action using the name insertContentAction. 24.1.9.2 Method public void actionPerformed(ActionEvent e) Inserts the actionCommand value from the given event into the active JTextComponent, using replaceSelection(). If the action command is null, a beep is sounded. 24.1.10 The DefaultEditorKit.InsertTabAction Class 24.1.10.1 Constructor public InsertTabAction() Creates an action using the name insertTabAction. 24.1.10.2 Method public void actionPerformed(ActionEvent e) Replaces the current selection with a t (tab) character, if an active JTextComponent can be determined. If there is no selection, a tab is inserted. 24.1.11 The DefaultEditorKit.PasteAction Class 24.1.11.1 Constructor public PasteAction() Creates an action using the name pasteAction. 24.1.11.2 Method public void actionPerformed(ActionEvent e) Calls paste() on the active JTextComponent, if it can be determined. 24.1.12 A Simple Text Editor In this first example, we’ll show how to do some of things you’d expect from a basic editor. Our first editor will support the following features: Cut, copy, and paste via toolbar buttons, menu selection, and default key shortcuts Select-all capability via menu selection Quick keyboard navigation using the nextWordAction, previousWordAction, selectionNextWordAction, and selectionPreviousWordAction Saving and loading documents [2] When we run it, our simple editor will look something like Figure 24.3. - 798
In case you need affordable webhost to host your website, our recommendation is ecommerce web host services.