3 ms·
I don't need a native look a feel and most people probably don't even care about it, but I do care and I definitely prefer it. I loathe modern flat themes which
by cpburns2009 9y ago
I don't need a native look a feel and most people probably don't even care about it, but I do care and I definitely prefer it. I loathe modern flat themes which completely lack affordance. However, I would like my applications to look like they belong on the host OS even if it has an unfortunate flat theme.
In order to practice what I preach, I'm looking for something that looks native for most cases that I can use for side projects and become proficient in. For my current project I chose SWT over Swing because SWT supports a native look on Linux (via GTK) while Swing doesn't (as far as I can tell). However, SWT is kind of clunky and I wonder if there are better options or if my previous research is out of date.
- librexpr 9y agoI recently tried to get a native look and feel with Swing, and this code worked on both linux and windows: try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch( ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException e ) { } I originally found the UIManager line on StackOverflow, but I'm too lazy to go looking for the link.
- cpburns2009 9y agoHmm, either what I read was wrong or I misunderstood what it was saying. Thank you for the correction.