| setMnemonicAt() | ใช้กำหนด คีย์ลัด ให้กับ tab ณ ตำแหน่งที่กำหนด ของ object JTabbedPane |
|---|
method:setMnemonicAt ( int_index, char_key_ascii );
return type:void
content:ใช้กำหนด คีย์ลัด ให้กับ tab ณ ตำแหน่งที่กำหนด ของ object JTabbedPane โดย คีย์ลัด คือการกด alt + key
example:JTabbedPane tab = new JTabbedPane ( JTabbedPane.RIGHT ); tab.addTab ( "DataEmployee", new JButton ( "TestTabEmployee" ) ); tab.addTab ( "DataPosition", new JButton ( "TestTabPosition" ) ); tag.setMnemonicAt ( 0, 65 ); tag.setMnemonicAt ( 1, 66 );