Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

JMetro Adds a New TableView Style in JavaFX

DZone's Guide to

JMetro Adds a New TableView Style in JavaFX

A new TableView style has been added to the JMetro JavaFX theme. Click here to learn more!

· Java Zone ·
Free Resource

Verify, standardize, and correct the Big 4 + more– name, email, phone and global addresses – try our Data Quality APIs now at Melissa Developer Portal!

This time the TableView “Metro” style gets added to the JMetro JavaFX theme. This amps up the JMetro version to 3.1.0.

The reason I didn’t add the Table style before is because, strangely, there isn’t a definition for the Table in the Fluent Design System (previously Metro). There is a preview control called DataGrid, but it is still in preview and will only be officially added later.

The JMetro Table style is a custom made style based on the Fluent Design System’s other controls and guidelines.

As usual, there is a dark and light theme.

JMetro Table View – Light Theme

JMetro Table View – Dark Theme

If you’re familiar with the standard JavaFX theme (Modena), you’ll also notice that the JMetro arrow that appears when sorting a column is different.

The border around the Table in the dark and light themes are not part of the control style. It was added to the Table in the sample app.

In the light theme, there is a light border below the header row that is not visible in the GIF. It is visible in a PNG image:

Image title

These are the relevant fixes that have been made in version 3.1.0:

  • Fix toggle switch style showing with rounded corners

As usual check out the JMetro documentation page for information on how to use JMetro theme.

Further Developments

In the next weeks, my intention is to make the further improvements to the library:

  • Add TreeView style
  • Improve Radio Button style
  • Improve Check Box style
  • Improve Toggle Switch style
  • Add the ability to change the accent color and other colors easily through a code call or CSS definition

Developers! Quickly and easily gain access to the tools and information you need! Explore, test and combine our data quality APIs at Melissa Developer Portal – home to tools that save time and boost revenue. Our APIs verify, standardize, and correct the Big 4 + more – name, email, phone and global addresses – to ensure accurate delivery, prevent blacklisting and identify risks in real-time.

Topics:
java ,javafx ,theme ,jmetro ,style ,news ,tableview

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}