News for hackers. Stuff that matters.
Re:Ask HN: Does Java need a modern Java UI toolkit for deskt... by amelius on Thursday March 24, 2022 @11:36AM (#30791355)
> You can make buttons look like Windows buttons on Windows and OSX buttons on OSX but that's only superficially cross-platform.

Sorry, but the problems you are talking about are first-world problems imho. If the button looks like a button, and clicks like a button, what is the problem really?

Re:Ask HN: Does Java need a modern Java UI toolkit for deskt... by stefs on Thursday March 24, 2022 @12:20PM (#30792005)
the problem used to be very visible in early app development: you get android apps that try to imitate ios. the navigation is wrong, the inputs are wrong, the ui language is inconsistent.

it happened all the time when almost all of the graphic designers (which were thrust into the roles of UI designers) were on mac and usually ios but got the task of "designing an app", which meant _one_ design for both ios and android. as an android developer i had to fight the OS, the framework and pretty much everything else to make the designers vision work, which resulted in buggy apps that felt unintuitive to use.

Re:Ask HN: Does Java need a modern Java UI toolkit for deskt... by amelius on Thursday March 24, 2022 @12:29PM (#30792141)
The Web has had buttons that are inconsistent with the native OS for ages, yet users never really complained.

E.g. visit https://twitter.com/ and select Sign-up. I don't know what OS you are on, but the sign-up box probably doesn't look native. Users accept this. So what is the problem, really?

Re:Ask HN: Does Java need a modern Java UI toolkit for deskt... by shantnutiwari on Thursday March 24, 2022 @12:17PM (#30791978)
Yeah, people complain about UI not looking "native", but other than UI experts, does anyone care? Do the end users care?
Re:Ask HN: Does Java need a modern Java UI toolkit for deskt... by stefs on Thursday March 24, 2022 @12:23PM (#30792054)
that's not what they were arguing tho: "You can make buttons look like Windows buttons on Windows and OSX buttons on OSX but that's only superficially cross-platform."

platform design choices are much more than the look of a button. it's choice and arrangement of ui elements, navigation systems, metaphors, ...

if you just see it as "button on windows" vs. "button on macos" it's not that obvious, but think about how you'd design an email client on windows vs. command line vs. mobile phone vs. smart watch.

a simple "button" might be roughly the same on every platform, but the overall design would be quite different.

Re:Ask HN: Does Java need a modern Java UI toolkit for deskt... by thfuran on Thursday March 24, 2022 @09:57PM (#30797894)
The problem is that any GUI for a not-completely-trivial application is going to consist of much more than a single isolated button and the way that a GUI is expected to behave and be structured is not the same across all platforms so no matter how carefully you mimic the appearance of the buttons, an app that behaves the same onall platforms cannot behave like a native app on all platforms.