News for hackers. Stuff that matters.
Re:The decline and fall of Java on the desktop by Macha on Wednesday March 02, 2022 @02:32PM (#30531766)
Swing's platform look and feel does not get a convincing native experience, as you'll find out the first time you open a JFileChooser on Mac and see a clone of the windows XP file picker with widgets made to look like mac OS widgets circa Snow Leopard.
Re:The decline and fall of Java on the desktop by shannah78 on Wednesday March 02, 2022 @03:19PM (#30532496)
The FileDialog is the only AWT widget I still use regularly. It gives you the native file chooser. Unfortunately it isn't terribly flexible when it comes to, for example, only selecting directories. In those cases, I have been known to use JNI to use the truly native dialog.
Re:The decline and fall of Java on the desktop by cosmotic on Wednesday March 02, 2022 @02:49PM (#30532009)
Some of those dialogs are indeed not great and a weak point. There are a few options to get a native picker though.