Java Swing - O Reilly are passed to the (Cheapest web hosting)
Java Swing - O Reilly are passed to the specific action class constructor. Additional actions can be created by instantiating the desired action class, passing different values to the constructor. Table 24.4, StyledEditorKit Properties Property Data Type get is set bound Default Value actions* Action[] DefaultEditorKit’s actions plus 18 more characterAttributeRun Element null inputAttributes MutableAttributeSet viewFactory* ViewFactory StyledViewFactory() See also properties from the DefaultEditor class (Table 24.2). Table 24.5, StyledEditorKit Default Actions Action Class Action Name Constructor Argument FontFamilyAction font-family-SansSerif “SansSerif” FontFamilyAction font-family-Monospaced “Monospaced” FontFamilyAction font-family-Serif “Serif” FontSizeAction font-size-8 8 FontSizeAction font-size-10 10 FontSizeAction font-size-12 12 FontSizeAction font-size-14 14 FontSizeAction font-size-16 16 FontSizeAction font-size-18 18 FontSizeAction font-size-24 24 FontSizeAction font-size-36 36 FontSizeAction font-size-48 48 AlignmentAction left-justify StyleConstants.ALIGN_LEFTAlignmentAction center-justify StyleConstants.ALIGN_CENTER AlignmentAction right-justify StyleConstants.ALIGN_RIGHTBoldAction font-bold N/A ItalicAction font-italic N/A UnderlineAction font-underline N/A The characterAttributeRun property is a new property that indicates the Element in which the caret is currently located. This is updated whenever the kit’s JEditorPane fires a CaretEvent. Similarly, inputAttributes provides access to the attribute set in use at the current caret position. This property is used by the JTextPane class whenever content is added to the document. The viewFactory defined by StyledEditorKit is an inner class capable of creating View objects for different types of Elements. The View objects created by this factory depend on the name property of the Element passed to the create() method, as shown in Table 24.6. Table 24.6, StyledEditorKit.StyledViewFactory View Creation Policy Element Name View Class Created AbstractDocument.ContentElementName LabelView AbstractDocument.ParagraphElementName ParagraphView AbstractDocument.SectionElementName BoxView AbstractDocument.ComponentElementName ComponentViewAbstractDocument.IconElementName IconView other LabelView - 804
You need excellent and relaible webhost company to host your web applications? Then pay a visit to Inexpensive Web Hosting services.