| setBackgroundAt() | ใช้กำหนด สีพื้นหลัง ให้กับ tab ณ ตำแหน่งที่กำหนด ใน Object JTabbedPane |
|---|
method:setBackgroundAt ( int_index, object_color );
return type:void
content:ใช้กำหนด สีพื้นหลัง ให้กับ tab ณ ตำแหน่งที่กำหนด ใน Object JTabbedPane
example:JTabbedPane tab = new JTabbedPane ( JTabbedPane.RIGHT ); tab.addTab ( "DataEmployee", new JButton ( "TestTabEmployee" ) ); tab.addTab ( "DataPosition", new JButton ( "TestTabPosition" ) ); tab.setBackgroundAt ( 0, Color.BLUE );