--- old/src/java.desktop/share/classes/javax/swing/plaf/synth/doc-files/componentProperties.html 2017-10-23 13:51:16.000000000 -0700 +++ new/src/java.desktop/share/classes/javax/swing/plaf/synth/doc-files/componentProperties.html 2017-10-23 13:51:16.000000000 -0700 @@ -1,8 +1,11 @@ - - + +
+ +The look, and to some degree the feel of Synth -can be customized by way of component specific properties. -These properties are accessed from SynthStyle#get. Refer to synth file format for examples of how to specify these properties in a synth configuration file.
-+ can be customized by way of component specific properties. + These properties are accessed from SynthStyle#get. Refer to synth file format for examples + of how to specify these properties in a synth configuration file.
+
This file specifies the expected class type each of the values
are to take. The behavior of supplying the wrong type is
unspecified: typically a ClassCastException is
@@ -66,7 +70,7 @@
-
JButton paints text using the TEXT_FOREGROUND ColorType. In addition to the Button properties, JButton supports the following property:
@@ -89,7 +93,7 @@JCheckBox paints text using the TEXT_FOREGROUND ColorType. In addition to the Button properties, JCheckBox supports the following property:
@@ -111,7 +115,7 @@JComboBox is a composite component that consists of the following child Components:
| ComboBox.renderer | Component | -The renderer used for the JComboBox. This is ONLY set if + | The renderer used for the JComboBox. This is ONLY set if the renderer is a UIResource. |
| Icon used by the button that creates a new folder. | -|||
| FileChooser.upFolderIcon |
@@ -301,7 +305,7 @@
Icon used by the button that navigates to the current user's home directory. | -||
| FileChooser.detailsViewIcon |
@@ -312,7 +316,7 @@
Icon used by the button that toggles the detailed files list view. | -||
| FileChooser.listViewIcon |
@@ -324,7 +328,7 @@
regular files list view, showing only an icon and the name of each
file and directory.
- |||
| FileChooser.viewMenuIcon |
@@ -339,7 +343,7 @@
JInternalFrameTitlePane is the control bar located at the top of the
internal frame similar to that found in a frame.
JList's sets the name of the renderer to List.renderer. JList supports the following properties:
The Menu classes (JCheckBoxMenuItem, JMenu, JMenuItem, and JRadioButtonMenuItem) all support the same set of properties and behave similarly. Each component consists of two Regions: the region @@ -536,7 +540,7 @@
javax.swing.AbstractButton#setIconTextGap(int) for details of how
this is used. JOptionPane is a composite component and may consist of numerous child components, they are: OptionPane.button, OptionPane.label, OptionPane.comboBox, OptionPane.scrollPane, OptionPane.list, @@ -623,7 +627,7 @@
JRadioButton paints text using the TEXT_FOREGROUND ColorType. In addition to the Button properties, JRadioButton supports the following property:
@@ -771,7 +775,7 @@JScrollBar is a composite component that consists of the following child Components:
All of the separator classes, JSeparator, JPopupMenu.Separator and JToolBar.Separator use the same property:
| Separator.thickness | Integer | 2 | -Preferred width, for vertically aligned separators, or + | Preferred width, for vertically aligned separators, or preferred height for horizontally aligned separators. The resulting preferred size will include the Insets. | @@ -875,20 +879,21 @@ToolBar.separatorSize | Dimension | null | -The value of this is passed to the javax.swing.JToolBar$Separator#setSeparatorSize(java.awt.Dimension)
-method. If unspecified setSeparatorSize is not
-invoked. |
-
+ The value of this is passed to the
+ javax.swing.JToolBar$Separator#setSeparatorSize(java.awt.Dimension)
+ method. If unspecified setSeparatorSize is not invoked.
+ |
+
+
JScrollPane is unique in that it provides a method for setting
the Border around the JViewport with JViewport throwing an
IllegalArgumentException from setBorder. To
accommodate this a special border is installed on the
- JScrollPane that uses the
+ JScrollPane that uses the
insets from the key
ScrollPane.viewportBorderInsets. The
SynthPainter method
@@ -913,7 +918,7 @@
-
JSplitPane is a composite component that will contain a divider and potentially two buttons, if setOneTouchExpandable(true) has been invoked. The two buttons will be named: @@ -950,7 +955,7 @@
JTable sets the name of the renderer to Table.cellRenderer. +
JTable sets the name of the renderer to Table.cellRenderer. JTable supports the following properties:
| Boolean | true | If true the renderers state is not updated, and the text -colors come from JTable's getSelectionBackground and +colors come from JTable's getSelectionBackground and getSelectionForeground methods. If false, the renderer's state is updated and the colors will instead come from the Style. | @@ -1116,7 +1121,7 @@Table.rendererUseUIBorder | Boolean | true | -If true setBorder on the renderer will succeed + | If true setBorder on the renderer will succeed regardless of the border passed in, otherwise setBorder on the renderer will only succeed if it is a Synth Border. | @@ -1129,7 +1134,7 @@
JTree sets the name of the renderer to Tree.renderer, the name of the editor is Tree.cellEditor.
JToggleButton paints text using the TEXT_FOREGROUND ColorType. In addition to the Button properties, JToggleButton supports the following property:
@@ -1234,7 +1239,7 @@Each of the Button classes (JButton, JCheckBox, JRadioButton, JToggleButton and SynthArrowButton) support a similar set of properties. These properties are:
@@ -1250,23 +1255,29 @@javax.swing.AbstractButton#contentAreaFilled(boolean) for details
-of how this is used. It is up to the Painter to properly honor this
-property. javax.swing.AbstractButton#contentAreaFilled(boolean)
+ for details of how this is used. It is up to the Painter to properly honor
+ this property.
+ javax.swing.AbstractButton#setIconTextGap(int) for details of how
-this is used. javax.swing.AbstractButton#setIconTextGap(int)
+ for details of how this is used.
+ javax.swing.AbstractButton#setMargin(java.awt.Insets) for details
-of how the margin is used. javax.swing.AbstractButton#setMargin(java.awt.Insets) for
+ details of how the margin is used.
+ Prefix is one of: Button, CheckBox, RadioButton or
JToggleButton.