I need the action for menu in java swing

hai friends
have a peace day.
i created a menu using swing, but i don't know how to give the action.
eg: i created menu called FILE if i click this menu its goes to specify program
please give any idea or sample code.
thank u
regards
rex

Hi,
u have to implement ActionListener...when u r pressing menu item the events
will come inside the ActionPerformed function.
for example
public class Menuexample implements ActionListener
public Menuexample()
filemenuiem=new MenuItem("File");
filemenuiem.addActionListener(this);
public void actionPerformed(ActionEvent ae) {
if(ae.getSource==filemenuitem)
regards
pradeep

Similar Messages

  • The action for the submit button

    I know that when I insert a Submit button I need to go to the
    property inspector and point to an action file so it can receive
    the data and redirect the visitor to a confirmation page, but I
    have no idea how to make that file. Is there a template for
    something like that?

    quote:
    Should the button be processed in server for redirecting?
    I have added behaviors like Add Java scripts, Pop up Window
    but they are not seen when the submit button is clicked, neither
    would I receive any mail redirected.
    Actually, where would the "action for redirecting" for the
    submit button be processed? Does it depend on CS3 Program or the
    Server?
    Thanks for helping with instuctions.

  • Hello, had to move to mavericks lost quicktime Pro, Need the feature for looping audio sections repeatedly, I have the install Key from my old QT Pro version, any ideas?

    Hello, had to move to mavericks lost quicktime Pro, Need the feature for looping audio sections repeatedly, I have the install Key from my old QT Pro version, any ideas?

    If QuickTime Player 7 isn't in the Utilities folder automatically, you can install it separately. See:
    http://support.apple.com/kb/HT3678
    Instructions on how to register your QuickTime Pro key can be found in that same document.
    Regards.

  • I need the installer for 10.6.1.7 64, iTunes can you help?

    Pleas advise?... I need the installer for iTunes64 msi, can anyone out there help?..also is there a disk with Itunes on it for an install?

    Download iTunes Here...
    http://www.apple.com/support/itunes/install/
    dueeast47 wrote:
    is there a disk with Itunes on it for an install?
    Not that I am aware of...

  • I bought Adobe Photoshop Elements 13 They sent me the one for Windows and I need the one for Macbook Pro!!!

    The download that adobe sent me is for Windows. I have a Mac and I need the one for Macbook Pro. I have been looking for a contact with customer service and even the chat is not working. Help please! I haven't use the product they sent me

    Please open link
    Contact Customer Care
    Then click on still need help, you will get the chat option

  • I need the drivers for earl 2011 macbook pro 13 inch i7 4 gigs for windows 7 64 bits i tried downloading with bootcamp butt it never completes allways ends up with an error please help

    i need the drivers for earl 2011 macbook pro 13 inch i7 4 gigs for windows 7 64 bits i tried downloading with bootcamp butt it never completes allways ends up with an error please help if any one has the drivers or knows were i can download them

    Doug...
    If you don't have it for reference, the manual might come in handy > US/Boot_Camp_Install-Setup.pdf
    After it loads, Command + F to find information regarding the drivers.

  • I need the calculation for one about apple bought software. how do I receive this?

    I need the calculation for one about apple bought software. How do I receive this?
    Thank you for your answer.

    In iTunes,, go to the iTunes Store. Click on your account. Sign in and the details should be in the list in Purchase History.
    Russ

  • I need the download for the Security Update for Shockwave Player Active X 12.0.3.133

    To Whom It May Concern,
    I need the download for Adobe Shockwave Player Security Update for Shockwave Player Active X 12.0.3.133.  So far all I have got is the run around.  Please can someone help me get this update for my laptop?
    Sincerely,
    Lisa Newman

    Is there a reason you need this SPECIFIC build? Because I was unable to locate it in three different places I looked.
    There are FULL installers here: http://www.adobe.com/shockwave/download/alternates/#sp (version 11)
    12.0.4.144 is here: http://get.adobe.com/shockwave/otherversions/

  • I need the invoice for my order AD010953212

    I need the invoice for my order AD010953212

    Try contacting the iTunes Store support staff, they can help you: http://www.apple.com/emea/support/itunes/contact.html

  • HT5312 Hi, i didn't put a rescue email and i need the answers for the security questions cuz i forgot them

    Hi, i didn't put a rescue email and i need the answers for the security questions cuz i forgot them

    If you can't remember your security questions / answers go to  Express Lane.
    select iTunes from the list, then iTunes store.        On the next screen select account Management.  There, select iTunes store account security and write that you would like to reset your security questions and / or answers.   You should get an eMail reply over the next 24 hours.

  • Please..how to instal libero mail on mi Ipad. I need the parameter for send and receive mail..Thanks

    Please..how to instal "libero" mail on my Ipad. I need the parameter for send and receive mail..Thanks

    FYI: POP will by default, delete messages from the server after downloading them (This applies to most pop clients, computer or mobile). POP is old tech and is not recommended if IMAP or Exchange are available. The default when setting up a g-mail type account is IMAP. Full synchronization with the server. You may also be able to set it up as an Exchange account, allowing for push e-mail and sync of calendars and contacts as well. See the Gmail help pages for instructions.

  • TS1307 The port I'm using is 465. Not working. Just need the setting for outgoing mail. Incoming is still working.

    The port I'm using is 465. Not working. Just need the setting for outgoing mail. Incoming is still working.

    "Well Known" TCP and UDP ports used by Apple software products
    http://support.apple.com/kb/TS1629?viewlocale=en_US

  • I need the password for BronzeZebra-guest. Please help asap

    I need the password for BronzeZebra-guest. I don't know how you find this or get it but I need it now. Please reply to [email protected]

    If you have Cisco Connect open it up & look around & it should show the passwords for both main & guest. At least mine did when I could access it.
    Kathi

  • I need the drivers for a touchsmart iq 770,i need the drivers in xp not vista

    I need the drivers for a touchsmart iq770,i have the disc with drivers on but will not load them because the O S is windows xp,it will not load vista on there,i have down loaded the media file hp suggest but it does not work any ideas

    Hiya got on the web with a wirless but cant down load the windows media center and cant play no music because havent got drivers for sound card could well be going in the bin,its bloody bugging me why i cant reload windows vista on it just goes 85% then fails does the same with windows 7,will it be hard drive or a meomey promblem,
    Thanks so much for you  help
    Barry

  • I need the download for Adobe Photoshop CS4

    I need the download for Adobe Photoshop CS4

    I am following the same instructions, and the downloads work for me. However, the first file downloaded is a "_LS1" file, and has no extension. The second file is a .7z archive. The instructions for how to install this download in the "exact instructions" phase says to "run the .EXE file" but there is none.
    Also, when I rename the _LS1 file to add the .exe extension, it can be run, and extracts an installer to the desktop. Unfortunately, when I run the setup.exe in this installer, it "gets an error and must quit" and asks that I contact Adobe support. Adobe support sends me here. I paid for this software through so many upgrades, and when time came to upgrade to CS6, they suddenly didn't want my money, so I'm stuck on CS4, which now doesn't work, and Adobe won't talk to me?

Maybe you are looking for

  • Print button on Web report.

    Hi gurus, We were trying to add a print button on Web report for printing the result area on the Web report. We followed the steps which has given in the How-to-guide How To Web Printing with Microsoft Excel document. In the document it has mentioned

  • Can't Login to my User Account

    First of all I apologise for posting this question in two forums but as my problem persists I think it's an account issue, rather than hardware. My problem started after the Mac "froze" after I had rebooted it. After a few minutes all I had was the s

  • Problem in the function module RS_SET_SELSCREEN_STATUS-urgent

    HI ALL, my rewuirement is i need to display my own pf status in selection screen. when i am using below code i getting two buttons only.anybody can tell me where i made a mistake. i am sendingf my code below. TABLES : ZUSER_SECOBJECTS, SSCRFIELDS. DA

  • Display artifacts (mostly on 3D apps)

    Hello, My MacBook Pro 17'' (stock, Core Duo 2.16 GHz) has display artifacts. They happen under normal usage, but not very often; however, if I fire up certain apps, like Front Row and then the DVD Player (though not DVD Player.app directly), or 3D ap

  • Server Migration

    I'm having a problem setfing up migration on my Managed Servers on Welbogic 9.2 mp2. First, My problem. When I try to manually migrate ManagedServer1 from MachineA to MachineB: Nodemanger shutdowns ManagedServer1 Nodemanager removes the interface wit