
Good day Friends ....
I have a doubt in jpopupmenu. That how can i sow a perticular menu item in jpopup menu to be selected. I created a gui where it has 1 textfield.when this text field get focus. then a popup menu will appear with 5 menu item in it. assume that the user pressing down key 3 times. I need to show the 3rd item get selected.
I used MenuItems as elements in jpopup menu. If u have any suggestions otherthan any of these like use jlist instead of jpopup menu. Then please send me an example with code.
Some one please help me.
thanks in advance....

Thanks dude...
I didnt get the exact answr for my question.
The link is describing about the basics of jPopUpMenu. But i need to select 3rd item through my program. Here it is selecting 1st has default.
there is any method like
JPopupMenu jpm=new JPopupMenu();
and 5 'JMenuItem menuItem1 = new JMenuItem("1"); ' jpm.getselected(); or similar method which will help us to select any 1 menu item from menu
Please help me friends....
Thanks in advance friends....

Thanks dude...
I didnt get the exact answr for my question.
The link is describing about the basics of jPopUpMenu. But i need to select 3rd item through my program. Here it is selecting 1st has default.
there is any method like
JPopupMenu jpm=new JPopupMenu();
and 5 'JMenuItem menuItem1 = new JMenuItem("1"); ' jpm.getselected(); or similar method which will help us to select any 1 menu item from menu
Please help me friends....
Thanks in advance friends....
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.