一些有用的Swing Demo http://docs.oracle.com/javase/tutorial/uiswing/examples/components/index.html#ToolBarDemo 可以下载project 再在eclipse里运行看效果。