Java Swing - O Reilly by an (Php web hosting) EditorKit that
Java Swing - O Reilly by an EditorKit that wishes to add new actions to the set of actions supported by its superclass. 24.1.2.3 Protected Methods protected final JTextComponent getFocusedComponent() Returns JTextComponent.getFocusedComponent(). protected final JTextComponent getTextComponent(ActionEvent e) Determines the currently active text component, allowing actions to be shared by multiple text components. If the given event has a JTextComponent as its target, that component is returned. If not, the result of getFocusedComponent() is returned. 24.1.3 The DefaultEditorKit Class DefaultEditorKit is a subclass of EditorKit that provides a great deal of default behavior applicable to most document types. As we’ll see below, the most interesting features available in this class are provided by the actions it supports via its numerous inner classes. When used directly, DefaultEditorKit only supports plain text data. Its actions deal with tasks such as copying and pasting data, and its I/O methods read and write only plain text. However, the important thing about this class is that it can be extended to add more features, and the actions it defines will still be applicable. We’ll see extensions of DefaultEditorKit in the sections that follow. 24.1.3.1 Properties DefaultEditorKit defines values for the properties shown in Table 24.2. The actions provided by DefaultEditorKit are discussed below in the “Constants” section. Each action is an instance of an inner class, defined in DefaultEditorKit that is capable of performing a given action. The contentType for editors using DefaultEditorKit is text/plain, indicating that styled text is not supported. The viewFactory property is set to null, indicating that users of this class must provide ViewFactory support via the TextUI. Table 24.2, DefaultEditorKit Properties Property Data Type get is set bound Default Value actions* Action[] Array of 47 TextAction objects contentType* String “text/plain” viewFactory* ViewFactory null See also properties from the EditorKit class (Table 24.1). 24.1.3.2 Constants DefaultEditorKit defines 46[1] different action names (Strings, shown in Table 24.3) as constant values. Behind each action name is an inner class (some classes are used by multiple actions) that extends TextAction to carry out the goal of the action. Several of these action classes are public, so we will define them in more detail after this section. However, even with the nonpublic classes, you can get to an instance of the action using these constants, along with the actions property. The following example shows a common strategy for doing this. We’ll store all of the actions in a local - 792
Note: If you are looking for cheap and reliable webhost to host and run your mysql application check mysql web server services.