Skip to content

2.4

Compare
Choose a tag to compare
@DevCharly DevCharly released this 13 Jul 22:13
· 419 commits to main since this release

Highlights

This release brings some usability improvements to the window title bar used in FlatLaf window decorations.
This affects only Windows 10/11.

Window resizing

There are now additional areas at top of embedded menu bar to resize the window. This makes it easier to resize small frames with lot of menus.

image

Minimum window title width for moving window

The window title now has a minimum width, which avoids that it is completely hidden in small frames with menus. The window title is important because it is needed to move the window. Without any window title, you can move the window only via the small area around the window icon.

image

Buttons shrink if space is rare

The width of iconify/maximize/close buttons is reduced if space is rare, to give more space to embedded menu bar and title.

image

image

Show app icon beside title

There is a new option to show window icon beside window title, if menu bar is embedded or title is centered.

image

Change Log

New features and improvements

  • Native window decorations (Windows 10/11 only): (PR #565)
    • There is now a small area at top of the embedded menu bar to resize the window.
    • Improved window title bar layout for small window widths:
      • Width of iconify/maximize/close buttons is reduced (if necessary) to give
        more space to embedded menu bar and title.
      • Window title now has a minimum width to always allow moving window
        (click-and-drag on window title). Instead, embedded menu bar is made smaller.
      • Option to show window icon beside window title, if menu bar is embedded or
        title is centered. Set UI value TitlePane.showIconBesideTitle to true.
    • No longer reduce height of window title bar if it has an embedded menu bar
      and is maximized.

Fixed bugs

  • ComboBox: Fixed vertical alignment of text in popup list with text in combo
    box in IntelliJ/Darcula themes.
  • Menus: Fixed application freeze under very special conditions (invoking
    FlatLaf.initialize() twice in NetBeans GUI builder) and using menu that has
    submenus. See NetBeans issue #4231 for details.
  • MenuItem: Fixed sometimes wrapped HTML text on HiDPI screens on Windows.
  • TableHeader: Fixed exception when changing table structure (e.g. removing
    column) from a table header popup menu action. (issue #532)
  • HiDPIUtils.paintAtScale1x() now supports rotated graphics. (issue #557)
  • Typography: No longer use Consolas or Courier New as monospaced font on
    Windows because they have bad vertically placement.
  • Native window decorations (Windows 10/11 only):
    • Do not center window title if embedded menu bar is empty or has no menus at
      left side, but some components at right side. (issue #558)
    • Do not use window decorations if system property sun.java2d.opengl is
      true on Windows 10. (issue #540)
    • Fixed missing top window border in dark themes if window drop shadows are
      disabled in system settings. (issue #554; Windows 10 only)
    • Right-to-left component orientation of title bar was lost when switching theme.