How can i select a particular item in jpopup menu through java programs
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....
View Answers
September 15, 2011 at 12:32 PM
September 15, 2011 at 1:16 PM
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....
September 15, 2011 at 1:16 PM
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....
Ads
Related Tutorials/Questions & Answers:
how we can create website through java
how we
can create website
through java Dear actually
i wanna ask query about creation of website
through java then
how we
can create web site
through java plz help me..........
i have already a web site ....specially for premium
Advertisements
How can I learn Java?
How can I learn
Java? Hi,
I have just completed a course in HTML.... Now
I want to learn Learn
Java programming and become the expert in
Java programming.
How can I learn
Java? in shortest possible time.
I mean
I just want to begin
How can I learn Java in 5 minutes
How can I learn
Java in 5 minutes Hi,
I am searching for the tutorials to learn
Java programming.
I don't know
how easy or difficult is
Java.... It will be helpful for me if someone gives me tutorials to learn
Java.
How can I
How can I master Java in one month?
How can I master
Java in one month? Hi,
I wish to learn
Java programming in one month.
I have little experience in c programming and PHP programming. Is there any way to learn
Java quickly.
How can I master
Java in one month
how to execuite java programs???
how to execuite
java programs???
I have jdk 1.6 installed in my pc.i want to execuite
java programs in ms-dos for applet and without using applet.please tell me
how to execuite java programs???
how to execuite
java programs???
I have jdk 1.6 installed in my pc.i want to execuite
java programs in ms-dos for applet and without using applet.please tell me
how I do select from select in hql
how I do
select from
select in hql
select RN from (
select rownum RN, dbid from (
select * from profile p where type = 1912 and name like... doesn't work
select RN from (
select rownum RN, DBId from (
select distinct p
How can I do it? .click();
How can I do it? .click();
I have a very unusual problem.
I want...("a");
x.click();
</script>
So it's click on an element witch one Id's is "a", but
I want that it make mouseup in this element.
How can I do it, because if
I write
how should i can solve
how should
i can solve Web based program -
Input - Person's contact details with Passport Number as Unique Key.
Save data in to oracle / MySQL.
Output - List of Persons saved in the database.
Technology to be used - JSP
highlight menu item html
highlight
menu item html highlight
menu item in html or CSS
<body id="index">
<div id="
menu">
<ul>
<li class...;
</ul>
</div> <!--
menu -->
</body>
Which java can i download?
Which
java can i download? Hello,
i'm a beginner on
java.
Which
java can i download for to exercise with my codes?
Thanks in advance.
nobody.
And
i download Eclipse
java. But when
i want to install
How can i use Facebook connect button
How can i use Facebook connect button Please to meet you all guys
I wonder
how can i use this Connect to facebook for me to post in a
particular... http://likekhevy4.blogspot.com/
How can i apply this kind of comment with "Connect
how can i display a editable result of form?
how can i display a editable result of form?
how can i display a editable result of form?
i know
how to display form result but the result... show the result but
i can not modify the result.
how can i display modifyable