Home » Java » Desktop Java » “Metro” Table For Java (JavaFX)

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

“Metro” Table For Java (JavaFX)

Hi again, 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 why I didn’t add the Table style before is because strangely there isn’t yet a definition for the Table in the Fluent Design System (previously Metro). There is a preview control, called DataGrid but is still in preview and will only be officially added later.

The JMetro Table style is a custom made style I’ve done based on the Fluent Design System’s other controls and guide lines.

As usual there is a Dark and Light theme.

JMetro Table View – Dark Theme

JMetro Table View – Light 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:

table for java

Table View with the border below the header row

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
  • Etc

As usual follow me on twitter or subscribe to this blog if you want to stay up-to-date with the latest news.

Published on Java Code Geeks with permission by Pedro Duque Vieira, partner at our JCG program. See the original article here: “Metro” Table For Java (JavaFX)

Opinions expressed by Java Code Geeks contributors are their own.

Do you want to know how to develop your skillset to become a Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!

 

1. JPA Mini Book

2. JVM Troubleshooting Guide

3. JUnit Tutorial for Unit Testing

4. Java Annotations Tutorial

5. Java Interview Questions

6. Spring Interview Questions

7. Android UI Design

 

and many more ....

 

Receive Java & Developer job alerts in your Area

I have read and agree to the terms & conditions

 

Subscribe
Notify of
guest

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

0 Comments
Inline Feedbacks
View all comments