News for hackers. Stuff that matters.
Re:Ask HN: How to make a native GUI with a modern language? by cosmotic on Tuesday August 09, 2022 @10:51AM (#32398817)
JavaFX is not native, nor can it be made to look native like Swing can be made.
Re:Ask HN: How to make a native GUI with a modern language? by kaba0 on Tuesday August 09, 2022 @12:31PM (#32400175)
Why couldn’t it be native (whatever that even means)? At the end of the day, it does have a canvas you are free to draw anything on, so there is nothing you can’t imitate.
Re:Ask HN: How to make a native GUI with a modern language? by cosmotic on Wednesday August 10, 2022 @01:39PM (#32415757)
Native would be Win32 calls to draw widgets. There's a built-in Swing look-and-feel that uses this API to render widgets in Swing. Yes, you could write your own code to replicate how things look, but it would be fragile and difficult to maintain. With Swing, it's built in and already maintained.