Java / Swing vs Agar
When comparing Java / Swing vs Agar, the Slant community recommends Agar for most people. In the question“What are the best cross-platform GUI toolkits?” Agar is ranked 5th while Java / Swing is ranked 16th.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Part of Java
Swing is part of the Java API.
Pro Very good and powerful API
E.g. separate models.
Pro Powerful controls
E.g. JTable which works fine on every platform with very large row counts, e.g. 100.000+.
Pro Several look and feels available
Pro Easy to use
Drag and drop utility.
Pro Easy to work with
Pro Libraries
Libraries included for mathematics, networking, vector graphics etc.
There is also a beta library for audio.
Pro Beautiful and easy to use
Cons
Con Only for JRE-based languages
Con Bugfixes rely on Oracle
Con No real native look
Though the importance of the native look seems to have dropped the last years by the raise of in-browser-applications.
However, you can achieve native look and feel using UIManager.systemLookAndFeelClassName.
Con Severely deprecated
The system is ancient and Oracle has dropped support for it in favor of JavaFX