github JFormDesigner/FlatLaf 0.24

latest releases: 3.5.2, 3.5.1, 3.5...
4 years ago

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).

image

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.

image

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

image

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 to square).
  • ToggleButton: Support underline toggle button style (set client property
    JButton.buttonType to underline).
  • Button and TextComponent: Support per component minimum width (set client
    property JComponent.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 with Table.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 and controlDkShadow.

Don't miss a new FlatLaf release

NewReleases is sending notifications on new releases.