Is there a better package or external library that works better than javax.swing , which resembles the look of Windows? I want my Java GUIs to be similar to the forms I create with the C # and .NET framework. Thanks.
javax.swing
SWT is closest because it actually uses OS'es native widgets. The downside is that you have to do some memory management, which is not required for Swing.
Other options include QT with Java, more information on this in this section: https://stackoverflow.com/questions/422956/java-swing-or-java-qt
and wxWidgets with wx4j: http://en.wikipedia.org/wiki/WxWidgets
You can choose the look of the system with a swing:
public static void main(String[] args) { try { // Set System L&F UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassName()); } catch (UnsupportedLookAndFeelException e) { // handle exception } catch (ClassNotFoundException e) { // handle exception } catch (InstantiationException e) { // handle exception } catch (IllegalAccessException e) { // handle exception } new SwingApplication(); //Create and show the GUI. }
Resources:
In the same topic:
You might want to learn about customizing the look ; if you use the look of Windows, your application will look more like a native application.
See this comparison of various appearances.
If you do not mind spending a few JIDE , this is a great product that also offers windows.
Try SWT, which is a GUI widget toolkit for Eclipse. The disadvantage of SWT is that it has some platform dependent libraries for each SWT platform: http://www.eclipse.org/swt/