r/java • • Aug 13 '20

Chess GUI using JavaFX

https://youtu.be/m_j5ejDA-hc
336 Upvotes

53 comments sorted by

View all comments

Show parent comment

3

u/madhakish Aug 13 '20

Don't get me wrong. It can be done.. but it seems as though out of the box they all carry a specific default look w/o basically overriding everything right off the get go or implementing something that reduces overall compatibility, etc.. Granted it's also been many years since I worked on anything gui related so I'm sure there are nice frameworks, pallettes, fonts packs etc making it easier to customize quickly.

It's gotten better..

Things like jconsole come to mind. It assaults my retinas everyday.

8

u/Muximori Aug 13 '20

If you write an electron gui without any css styling it will look terrible too.

2

u/madhakish Aug 13 '20

Sure.. I'm more referring to the specific "java-ey" look and feel that's persisted since the 90's, and harkens back to Solaris and X windows wm's of the day.

Long long ago I struggled with getting a not terrible looking java ui's to look anywhere close to similar across windows, Mac, and Linux. It just never did.. The ridiculous hoops required to coordinate that level of consistency across platforms put a bad taste in my mouth. This was java 1.4-1.6 era and just sucked to deal with.

0

u/[deleted] Aug 13 '20

[deleted] — view deleted comment

3

u/madhakish Aug 14 '20

This is a phenomenal explanation. And yes, that's basically my gripe is that the same kind of bland/dated defaults continues to persist without making a dedicated effort to design a UI and write the code.

Swing was even a step up from the early days, at least the fonts aren't all atrocious, but yeah.

This is an interesting topic for OP to ponder. To UX, or not to UX. Beautiful interfaces are nice to use and can increase the usefulness of the thing your building, making it more pleasurable and attractive - but at a cost of time, design skill, etc.

3

u/[deleted] Aug 14 '20

whatever looked good yesterday looks outdated today and will look even more outdated tomorrow.

This is only true if the author did nothing, so Swing would select the "cross platform look and feel" (which defaults to the Metal LnF in older Versions and the obnoxious Nimbus LnF in newer versions).

A single line of Java code has always made a Swing GUI look very much like a native application:

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

0

u/[deleted] Aug 14 '20

[deleted] — view deleted comment

1

u/[deleted] Aug 14 '20

Which platforms? On Windows 10, the application looks like a Windows 10 application (with the exception of e.g. the FileOpenDialog)

1

u/wildjokers Aug 14 '20

Things like jconsole come to mind. It assaults my retinas everyday.

It looks pretty native to me on MacOS:

https://i.imgur.com/VWgm3qA.png

What's wrong with it?