3 ms·
I just ran my old swing app for years ago and it still displays using its own toolkit. I think you're thinking for SWT (the toolkit used by Eclipse) which will
by djsumdog 9y ago
I just ran my old swing app for years ago and it still displays using its own toolkit.
I think you're thinking for SWT (the toolkit used by Eclipse) which will use native components for each OS.
SWT is kinda difficult to use and last time I checked, all the Scala bindings/wrappers were crap or non-existant, making it a non-starter for me.
- pjmlp 9y agoStarting with Java 9, JEP 283: Enable GTK 3 on Linux http://openjdk.java.net/jeps/283 http://openjdk.java.net/jeps/283 Opening paragraph "Java on Linux currently uses GTK 2. This raises several issues:" The problem are the ones too lazy to call, UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); https://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html https://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/...
- jessaustin 9y agoWhat problems would it cause if the runtime just called that automatically?
- pjmlp 9y agoThe usual traditional backwards compatibility story of Java, if I remember correctly. When it was introduced they didn't want to break the L&F of AWT applications, then they also added multiple ways of enabling it. So a good application should respect the system wide or user specific settings if available, instead of just blindly use whatever L&F it feels like. Also although many complain about how Swing looks like, the API is actually quite powerfull and skinnable, even if it requires some graphic programming skills to achieve it, for example see JGoodies or UltraMixer DJ.