Highlights
Smooth scrolling
Scrolling with touchpads and high precision mouse wheels is now smooth.
In case you want add a "Smooth scrolling" checkbox to your application options dialog, smooth scrolling can be enabled or disabled at any time with following code:
boolean enabled = ...;
UIManager.put( "ScrollPane.smoothScrolling", enabled );
This returns whether smooth scrolling is enabled:
boolean enabled = UIManager.getBoolean( "ScrollPane.smoothScrolling" );
Square button
You can now make single buttons square (e.g. for table cells).
myButton.putClientProperty( "JButton.buttonType", "square" );
Underline style toggle button
With toggle buttons (class JToggleButton
) in underline style you can build custom tab bars that looks similar to JTabbedPane.
The underline indicates the selected state. If the toggle button is not selected, no underline is shown.
myToggleButton.putClientProperty( "JButton.buttonType", "underline" );
Progress bar color changed in "Flat Dark" theme
Change Log
- Support smooth scrolling with touchpads and high precision mouse wheels.
(issue #27) - Changed
.properties
file loading order: Now all core.properties
files are
loaded before loading addon.properties
files. This makes it easier to
overwrite core values in addons. Also, addon loading order can be specified. - TableHeader: Paint column borders if renderer has changed, but delegates to
the system default renderer (e.g. done in NetBeans). - Label and ToolTip: Fixed font sizes for HTML headings.
- Button and ToggleButton: Support square button style (set client property
JButton.buttonType
tosquare
). - ToggleButton: Support underline toggle button style (set client property
JButton.buttonType
tounderline
). - Button and TextComponent: Support per component minimum width (set client
propertyJComponent.minimumWidth
to an integer). - ScrollPane with Table: The border of buttons that are added to one of the four
scroll pane corners are now removed if the center component is a table. Also,
these corner buttons are made not focusable. - Table: Replaced
Table.showGrid
withTable.showHorizontalLines
and
Table.showVerticalLines
. (issue #38) - ProgressBar: Now uses blueish color for the progress part in "Flat Dark"
theme. In the "Flat Darcula" theme, it remains light gray. - Improved Swing system colors
controlHighlight
,controlLtHighlight
,
controlShadow
andcontrolDkShadow
.