Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的表单上有一个 JTabbedPane。问题是我想在我的 TabbedPane 的选项卡上显示图标。
我怎样才能做到这一点?
使用以下setIconAt方法JTabbedPane:
setIconAt
JTabbedPane
http://docs.oracle.com/javase/7/docs/api/javax/swing/JTabbedPane.html#setIconAt(int, javax.swing.Icon)
请先阅读 Java 教程,它们非常有用: http ://docs.oracle.com/javase/tutorial/uiswing/components/tabbedpane.html