| getMenu() | ใช้คืนค่า Object JMenu ณ ตำแหน่งที่กำหนด |
|---|
method:getMenu ( int_index );
return type:JMenu
content:ใช้คืนค่า Object JMenu ณ ตำแหน่งที่กำหนด
example:JMenuBar menu_bar = new JMenuBar (); menu_bar.add ( new JMenu ( "data employee" ) ); menu_bar.add ( new JMenu ( "data position" ) ); JMenu menu = menu_bar.getMenu ( 1 );