Highlights
Slider
Clicking on slider track now immediately moves the thumb to mouse location and starts dragging the thumb.
This is how sliders work in current desktop operating systems, in smartphones and even on web pages.
If snap to tick is enabled, then snapping is now done while dragging thumb.
Extras: Component extension classes
Some FlatLaf UI delegates already provide additional features that can be enabled via client properties.
E.g. placeholder text for text fields:
Which can be enabled via client property:
myTextField.putClientProperty("JTextField.placeholderText", "Search");
Starting with this release, there are now component classes available in the FlatLaf Extras addon,
that allows easier access to these features. E.g.:
FlatTextField myTextField = new FlatTextField();
myTextField.setPlaceholderText( "Search" );
See package com.formdev.flatlaf.extras.components Javadoc for complete list of components.
Change log
New features and improvements
- Slider and JIDE RangeSlider: Clicking on track now immediately moves the thumb
to mouse location and starts dragging the thumb.
UseUIManager.put( "Slider.scrollOnTrackClick", true )
to enable old behavior
that scrolls the thumb when clicking on track. - Slider: Snap to ticks is now done while dragging the thumb.
UseUIManager.put( "Slider.snapToTicksOnReleased", true )
to enable old behavior
that snaps to ticks on mouse released. - Extras: Added standard component extension classes that provides easy access
to FlatLaf specific client properties (see packagecom.formdev.flatlaf.extras.components
in FlatLaf Extras). - Extras: Renamed tri-state check box class from
com.formdev.flatlaf.extras.TriStateCheckBox
to
com.formdev.flatlaf.extras.components.FlatTriStateCheckBox
.
Also changed/improved API and added javadoc. - Extras: Renamed SVG utility class from
com.formdev.flatlaf.extras.SVGUtils
tocom.formdev.flatlaf.extras.FlatSVGUtils
. - IntelliJ Themes: Added flag whether a theme is dark to
FlatAllIJThemes.INFOS
. (issue #221) - JIDE Common Layer: Support
TristateCheckBox
.
Fixed bugs
- Slider: Fixed painting of colored track if
JSlider.inverted
istrue
. - Table and TableHeader: Fixed missing right vertical grid line if using table
as row header in scroll pane. (issues #152 and #46) - TableHeader: Fixed position of column separators in right-to-left component orientation.
- ToolTip: Fixed drop shadow for wide tooltips on Windows and Java 9+. (issue #224)
- SwingX: Fixed striping background highlighting color (e.g. alternating table
rows) in dark themes. - Fixed: If text antialiasing is disabled (in OS system settings or via
-Dawt.useSystemAAFontSettings=off
), then some components still did use
antialiasing to render text (not-editable ComboBox, ProgressBar, Slider,
TabbedPane and multiline ToolTip). (issue #227)