| getMenuComponent() | ใช้คืนค่า component ณ ตำแหน่งที่กำหนด จาก object JMenu |
|---|
method:getMenuComponent ( int_index );
return type:Component
content:ใช้คืนค่า component ณ ตำแหน่งที่กำหนด จาก object JMenu
example:JMenu menu_position = new JMenu ( "data position" ); menu_position.add ( new JMenuItem ( "insert position" ) ); menu_position.add ( new JMenuItem ( "update position" ) ); menu_position.add ( new JMenuItem ( "delete position" ) ); menu_position.add ( new JMenuItem ( "search position" ) ); JMenuItem menu_item = ( JMenuItem ) menu_position.getMenuComponent ( 2 );