DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
  1. DZone
  2. Coding
  3. Java
  4. Fluent Design Style Text and Password Field for Java, JavaFX

Fluent Design Style Text and Password Field for Java, JavaFX

Want to learn more about the fluent design style change for the password and text fields in Java and JavaFX? Click here to learn more about these changes.

Pedro Duque Vieira user avatar by
Pedro Duque Vieira
·
Sep. 11, 18 · Presentation
Like (1)
Save
Tweet
Share
8.36K Views

Join the DZone community and get the full member experience.

Join For Free

I’ve just released version 4.5 of Java, JavaFX theme JMetro. This version adds new styles for the text and password field, inspired, as usual, by Fluent Design.

In this post, I’m going to go over the text box and password box changes in this new release in greater detail.

JMetro Version 4.5

Like I said in the introduction, JMetro 4.5 has just been released.

I’ll start by showing the old text field and password field styles prior to JMetro 4.5:

Text Field JMetro light theme. Java, JavaFX style inspired by Microsoft's Metro (predecessor to Fluent Design)

TextField — JMetro OLD Light Theme

Text Field JMetro dark theme. Java, JavaFX style inspired by Microsoft's Metro (predecessor to Fluent Design)

Text Field — JMetro OLD Dark Theme

And, here is the old light and dark style for the password field:

Password Field JMetro light theme. Java, JavaFX theme, inspired by Fluent Design System (previously named 'Metro').

Password Box — JMetro OLD Light Theme

Password Field JMetro dark theme, Java (JavaFX) style inspired by Microsoft Metro (predecessor of Fluent Design)

Password Field — JMetro OLD dark theme

These are some of the differences between the old styles and the new styles introduced in JMetro 4.5:

  • Colors have changed;
  • The accent color is used when the controls are focused (control is open for, and receives keyboard input);
  • Hover colors have changed;
  • The text has been made bigger by default;
  • Icons for clear and show password have been tweaked slightly (positioning and size).

And, here are the new styles in action:

Text Field JMetro light theme. Java, JavaFX style inspired by Fluent Design (previously named Metro)

TextField — JMetro NEW light theme

Text Field JMetro dark theme. Java, JavaFX style inspired by Fluent Design (previously named Metro)

TextField — JMetro NEW dark theme

The new password field styles look as follows:

Password Field JMetro light theme. Java, JavaFX theme, inspired by Fluent Design System (previously named 'Metro').

Password Field — JMetro NEW light theme

Password Field JMetro dark theme. Java, JavaFX theme, inspired by Fluent Design System (previously named 'Metro').

Password Field — JMetro NEW dark theme

There are the differences between the new styles and Microsoft’s Fluent Design, namely icons. I don’t like the Fluent Design’s icon for the show password button on the password field — and the colors. I’m not fond of how, in the dark version, the color changes abruptly from black to white when the controls are focused.

Of course, if you don’t agree, you can easily add a stylesheet to override the JMetro looks after the call to applyTheme from the JMetro class.

In the future, I plan to slightly update the show password icon and make its stroke thinner.

Wrapping Up

JMetro version 4.5 is still very new. With it, new password field and text field styles are available.

As always, if you want to look at the documentation, you can check out the Java, JavaFX theme JMetro page. This will be updated soon with the details from this new version.

Next, I’ll probably be looking at and updating the Progress controls.

Hope you enjoyed!

Design JavaFX Java (programming language)

Published at DZone with permission of Pedro Duque Vieira, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Is DevOps Dead?
  • What Is API-First?
  • Key Elements of Site Reliability Engineering (SRE)
  • OWASP Kubernetes Top 10

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: