Desktop Java

JMetro Version 8.6.14 And 11.6.14 Released

Another release of JMetro has just came out.

This time the focus has been on fixing bugs and tweaking existing styles. A bunch of these have been fixed in this release.

Besides this, a new feature has been added. It is now also possible to easily add grid lines on table like controls.

Keep on reading for details.

Adding gridlines to Table like controls

On table like controls you already had the ability to easily add alternating row colors. This was easily set by adding the JMetroStyleClass.ALTERNATING_ROW_COLORS style class to any control with cells. With this turned on, information dense controls become easier to scan because it becomes easier to distinguish between different rows.

On this new release it is now also possible to add grid lines to columns, thus making information dense table like controls even easier to read. To set this, all that’s needed is to add the JMetroStyleClass.TABLE_GRID_LINES style class to Tables or TreeTables.

TreeTableView with no gridlines (LIGHT Style)
TreeTableView with gridlines and alternating row colors (LIGHT Style)

The pictures above show examples of using and not using this new style class. In these examples there isn’t much to gain in adding gridlines and alternating row colors but if the table/treetable has lots of data to show (e.g. a considerable number of columns, etc) the difference in ease of scanning will be greater.

Complete list of tweaks and fixes

  1. Fixes #143: Panes – Check warnings when running PanesWithBackgroundStyleClassSample
  2. Fixes #91: Label – move label in light stylesheet to the same place as dark stylesheet
  3. Fixes #131: ScrollPane – Fix control’s that use a ScrollPane like control inside and whose corners appear wrong on Dark theme
  4. Issue #137: Spinner – some buttons are slightly misaligned when using some styleclasses
  5. Fixes #137: Spinner – tweak colors for hover and pressed of decrement/increment button
  6. Fixes #94: ListView – style unfilled cells differently
  7. Fixes #156: ListView – ListCell hover background color with selected item is invalid
  8. Fixes #157: JMetro Alert – Expandable content “Expand all” Label stay in dark when the style is dark
  9. Fixes #158: JMetro TextInputDialog – TextField has a black background and a black font-color in Dark Style
  10. Fixes #159: ListView – Odd row hover effects issue when “alternating row colors” style is applied and ListView has focus
  11. Fixes #160: ListView, TreeTableView – Should have hover effects on cells even when not focused
  12. Fixes #148: TextField, PasswordField – TextFields in VBox expand outside of scene if window is resized
  13. Issue #148: TextField, PasswordField – Add TextField and PasswordField shrink glitch test
  14. Fixes #164: SplitMenuButton – Tweak hover effect when SplitMenuButton is inside a Toolbar
  15. Fixes #165: TableView, TreeTableView – Add the ability to set column gridlines on Tables
  16. TreeTableView – Make bottom border of TreeTableView header slightly darker when column grid lines are enabled
  17. Issue #170: TreeTableView – Sort arrow isn’t showing on secondary column
  18. Fixes #166: ToggleSwitch – thumbs moves out of control bounds
  19. Fixes #166: ToggleSwitch – further optimize css and further clean up ToggleSwitchSkin class
  20. Deprecate JMetro automaticallyColorPanes property
  21. Fixes #168: TableView, TreeTableView – Have gridlines in table headers too when column grid line styleclass is present
  22. Issue #168: TableView, TreeTableView – Update CSS based on changes made in 11 branch to fix header grid line issues
  23. Fixes #171: TextField – Wrong color when not focused and in DARK Style
  24. Fixes #172: TreeTableView – Collapse/Expand arrow color is wrong on DARK Style

Further changes

The property automaticallyColorPanes of JMetro class has been deprecated and will be removed on a later version.

Programmers are advised to use JMetroStyleClass.BACKGROUND instead. Add it to the styleclass list of Panes that are supposed to be a background and consequently should change their color depending on whether JMetro LIGHT Style or DARK is being used.

For other planned issues, as usual, check out the issue tracker on Github.

Published on Java Code Geeks with permission by Pedro Duque Vieira, partner at our JCG program. See the original article here: JMetro Version 8.6.14 And 11.6.14 Released

Opinions expressed by Java Code Geeks contributors are their own.

Pedro Duque Vieira

JavaFX and Swing, Freelancer and Consultant specialized in creating User Interfaces. Has been working as a front end consultant and has been developing web, native and cross platform since 2006. Holder of a master degree in Computer Science, he's permanently studying and taking courses in User Interface Design and User Experience. Owner of the software company Pixel Duke.
Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Inline Feedbacks
View all comments
Back to top button