Java Swing - O Reilly focusAccelerator char (Freelance web design) ‘0′ focusTraversable*
Java Swing - O Reilly focusAccelerator char ‘0′ focusTraversable* boolean true highlighter Highlighter null keymap Keymap null layout* LayoutManager null margin Insets TextUI.getDefaultMargin() opaque* boolean false preferredScrollableViewportSize* Dimension Preferred size of component scrollableTracksViewportHeight* boolean see below scrollableTracksViewportWidth* boolean see below selectedText String From document selectedTextColor Color null selectionColor Color null selectionEnd int From caret selectionStart int From caret text String From document See also properties from the JComponent class (Table 3.5). accessibleContext refers to an instance of the inner class AccessibleJTextComponent which implements the AccessibleText interface, described in Chapter 25. The actions property specifies the Actions (see Chapter 25, for an introduction to Swing’s new Action interface) available for the component. These actions might include things such as cut, paste, or change-font. The supported actions are defined by the component’s EditorKit, which we’ll cover in detail in Chapter 24. caret represents the location at which data will be inserted into the document. We’ll discuss the Caret interface in Chapter 22. caretColor , disabledTextColor, selectionColor , and selectedTextColor simply specify the color used to render the caret, disabled text, selection background, and selected text, respectively.[2] CaretPosition provides quick access to the Caret’s current position. [2] The regular text color is stored in the inherited foreground property. The editable property indicates whether or not the document can be edited. If this property is set to false, characters typed into the component will not be inserted the component will be used only for displaying text. We list the enabled property here only because JTextComponent overrides setEnabled() to explicitly call repaint(). Next, the focusAccelerator property specifies the key that can be used to give focus to the text component. focusTraversable is true by default, because the implementation of isFocusTraversable() is overridden to return true if the component is editable and enabled. The highlighter property is a reference to the object responsible for making highlights in the text. Like Caret, the Highlighter interface will be introduced in Chapter 22. Yet another new interface we’ll get to later in that chapter is Keymap, which is used to define the keymap property. This is an important property that allows you to specify, for example, what keys will cause text to be cut (e.g., CTRL-X) or paste (e.g, CTRL-V). The inherited layout property defaults to null, because the layout of text components is handled by the view hierarchy (see Chapter 23). The margin property specifies the distance between the component’s text and its border (using Insets, an AWT class). - 580
We recommend cheap and reliable webhost to host and run your web applications: Coldfusion Web Hosting services.