If you're interested in porting this tutorial to an additional IDE please contact us on the users list. 如果有兴趣将本教程移植到其他开发环境上使用,请通过用户列表和我们联系。
Noes and Errata
笔记和勘误
If you're running under OS X you may run into an issue where the file chooser dialog never appears and the application hangs.
如果您在OS X下运行,您可能会遇到文件选择对话框不出现并且应用程序挂起的问题。
This is a known issue with the native OS X Swing look and feel.
这是由于Swing在本机的OS X系统上的皮肤外观(不兼容)导致的。
As a workaround you can use the cross platform look and feel;
您可以通过使用跨平台的外观来解决这个问题:
either use the following static block in your files:
或者也可以在文件中使用如下静态代码块:
static{// Set System L&Ftry{UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());}catch(Exceptione){e.printStackTrace();System.exit(1);}}
or urn your applications with the following VM argument -Dswing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel