| setIconAt() | ใช้กำหนด icon ให้กับ tab ณ ตำแหน่งที่กำหนด ใน Object JTabbedPane |
|---|
method:setIconAt ( int_index, object_icon );
return type:void
content:ใช้กำหนด icon ให้กับ tab ณ ตำแหน่งที่กำหนด ใน Object JTabbedPane
example:JTabbedPane tab = new JTabbedPane ( JTabbedPane.RIGHT ); tab.addTab ( "DataEmployee", new JButton ( "TestTabEmployee" ) ); tab.addTab ( "DataPosition", new JButton ( "TestTabPosition" ) ); ImageIcon icon = new ImageIcon ( "c:/bamboo.gif" ); tab.setIconAt ( 0, icon );