Is it possible to add action to JLable component?

Is it possible to add action to JLable component?

I assume you are talking about an ActionListener? In which case the answer is no. But, you can add a MouseListener, MouseMotionListener, KeyListener and a few other ones as well. There's nothing an ActionListener can do that a well used MouseListener can't.
HTH,
BenW

Similar Messages

  • Add action listener to an image....

    Hello there,
    I was wondering is it possible to add action listener to an image to connected back to a different page....
    for example if i have this code:
    ImageComponent displayFrame = new ImageComponent();
    add(displayFrame,"West");
    displayFrame.setBounds( 90,100,52,58);
    in one of my frame calling an instance Image component...
    Your coorperation is greatly appreaciated,
    Thanks,
    -pal-

    Here are a couple of suggestions.
    First suggestion is to use java.awt.CardLayout. This sets up a series of "cards" where only one is visible at a time.
            ActionListener buttonListener = new ButtonListener();
            JButton mainButton = new JButton("Forward");
            mainButton.addActionListener(buttonListener);
            JButton subButton = new JButton("Back");
            subButton.addActionListener(buttonListener);
            menuLayout = new java.awt.CardLayout();
            menuPanel = new JPanel(menuLayout);
            menuPanel.add("Main", mainPanel);
            menuPanel.add("Sub", subPanel);
        class ButtonListener implements ActionListener {
            public void actionPerformed(ActionEvent e) {
                String cmd = e.getActionCommand();
                if (cmd.equals("Forward")) {
                    menuLayout.show(menuPanel, "Sub");
                } else if (cmd.equals("Back")) {
                    menuLayout.show(menuPanel, "Main");
        }The other suggestion would be to use javax.swing.JDialog. That might be a little cleaner because it could be set up modal. It depends on what your menus look like. Check out this:
    http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html

  • Download URLs action: Is it possible to add delay between each dowmloaded ?

    Hi!
    This is my first experience with Automator. Everything is working great except for one thing:
    I am automatically downloading images from a site and they all have the same name. Because of that, they get an extra -# in their name when they are downloaded. But when I look them up, they were no incremented in the order they were downloaded. I need theses images in the order they appear on the site to be able to rename them in the right order.
    So I tried renaming them using the time at which they were downloaded, but it happens so fast, this function is not really useful.
    So here is my question: Is it possible to add a delay between each image that gets downloaded in the "Download URLs" action ? A one second delay would most probably fine.
    Thank you for your help!

    Use the Wait step.  On your step palette under the synchronization folder you'll see the Wait step.  Place it down and it should be intuitive what to do.
    Let me know if you have any questions.
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Is it possible to add new line to existing Blanket Agreement through interface?

    Hi All,
    I need to add a new line to exisitng list of blanket agreements.
    I populated po_headers_interface and po_lines_interface and ran 'Import Price Catalogs' program.
    But this is only trying to update existing line instead of creating a new one.
    Please clarify whether it is possible to add just a line using the above process?
    tried multiple scenarios:
    action field in both tables - ORIGINAL - error, doc already exists.
    action field in both tables - UPDATE - updates existing line.
    action field - (UPDATE in hdr and ORIGINAL in line) - updates existing line.
    Thanks in advance.
    Girish

    Hi All,
    It's working now. populated action field as 'ADD' in po_lines_interface and it created a new line.

  • Since one of the updates of firefox it is not possible to add a document to my email i.e. Telfort.nl

    Since one of the latest updates of firefox it is not possible to add a document to my email account i.e. Telfort.nl
    I checked with Telfort and no problems of this kind is known.

    You can check for problems caused by extension and plugins.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    *https://support.mozilla.org/kb/Troubleshooting+plugins
    You can try to delete the mimeTypes.rdf file in the Firefox Profile Folder to reset all file actions.
    * http://kb.mozillazine.org/mimeTypes.rdf
    * http://kb.mozillazine.org/File_types_and_download_actions#Resetting_download_actions
    You can try to reset Firefox.
    *https://support.mozilla.org/kb/reset-firefox-easily-fix-most-problems
    Reset creates a new profile and tries to import some settings from the old profile leaving the old profile intact.
    *https://support.mozilla.org/kb/Recovering+important+data+from+an+old+profile

  • Is it possible to add Audio on Demand to an image in Captivate 7 QUIZ for html 5 output in web browsers?

    We are trying to do a simple HEAR IT - SELECT IT type 'quiz' in Captivate 7 for an indigenous language project.  Our target output is html 5 to web browser.
    We have used the multiple choice question mode and have inserted IMAGES in place of text (although we left the question numbers visible)  
    The user should be able to click on a speaker icon to hear the audio file (as many times as they choose)  and then select the correct image answer.
    ALSO -  Is it possible to add sound effects for a correct or incorrect quiz answer?
    Thanks

    Attaching audio could be done to the Success/Failure captions, rather easily.You can put a shape button on a question slide, other interactive objects are not possible (Buttons on Question/Score Slides in Captivate 6? - Captivate blog). And have that shape button pause before the pause of the question slide. Use an advanced action with the Statement 'Play audio'. Don't use a simple action, because it will release the play head: Why choose Standard over Simple action? - Captivate blog
    User will then be able to click that shape button as many times as he wants, because the play head will remain at the pausing point. When he Submits the question, the two step process will use the pausing point of the Question slide: Question Question Slides in Captivate - Captivate blog
    Lilybiri

  • In Numbers 08 is it possible to add a link to a file on the local disc within a cell?

    In Numbers 08 is it possible to add a link to a file on the local disc within a cell?

    As it's a feature asked several times, maybe it will be available in the next version.
    I don't know features available in Excel.
    Sometimes ago I posted an AppleScript which may perhaps fit your needs.
    If you insert in a table pathnames of files stored in your HD, select the cell, trigger the script, open the file.
    Here is an updated version :
    --[SCRIPT open_a_file]
    Enregistrer le script en tant que Script : open_a_file.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Utilisateurs:<votreCompte>:Library:Scripts:Applications:Numb ers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Sélectionner la cellule contenant le chemin d'accès
    Aller au menu Scripts , choisir Numbers puis choisir  “open_a_file”
    ouvre le fichier.
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    --=====
    Save the script as a Script: open_a_file.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Select the cell containing the pathname
    Go to the Scripts Menu, choose Numbers, then choose “open_a_file”
    open the file
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    Save this script as a … Script in the "Folder Actions Scripts" folder
    <startupVolume>:Library:Scripts:Folder Action Scripts:
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2010/02/02
    2011/04/28 - replaced the getSelParams handler by the get_SelParams one
    --=====
    on run
              set {dName, sName, tName, rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
              tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
                        set maybe to value of cell rowNum1 of column colNum1
              end tell -- Numbers
              tell application "Finder" to open maybe
    end run
    --=====
    set { dName, sName, tName,  rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
    on get_SelParams()
              local d_Name, s_Name, t_Name, row_Num1, col_Num1, row_Num2, col_Num2
              tell application "Numbers" to tell document 1
                        set d_Name to its name
                        set s_Name to ""
                        repeat with i from 1 to the count of sheets
                                  tell sheet i to set maybe to the count of (tables whose selection range is not missing value)
                                  if maybe is not 0 then
                                            set s_Name to name of sheet i
                                            exit repeat
                                  end if -- maybe is not 0
                        end repeat
                        if s_Name is "" then
                                  if my parleAnglais() then
                                            error "No sheet has a selected table embedding at least one selected cell !"
                                  else
                                            error "Aucune feuille ne contient une table ayant au moins une cellule sélectionnée !"
                                  end if
                        end if
                        tell sheet s_Name to tell (first table where selection range is not missing value)
                                  tell selection range
                                            set {top_left, bottom_right} to {name of first cell, name of last cell}
                                  end tell
                                  set t_Name to its name
                                  tell cell top_left to set {row_Num1, col_Num1} to {address of its row, address of its column}
                                  if top_left is bottom_right then
                                            set {row_Num2, col_Num2} to {row_Num1, col_Num1}
                                  else
                                            tell cell bottom_right to set {row_Num2, col_Num2} to {address of its row, address of its column}
                                  end if
                        end tell -- sheet…
                        return {d_Name, s_Name, t_Name, row_Num1, col_Num1, row_Num2, col_Num2}
              end tell -- Numbers
    end get_SelParams
    --=====
    on decoupe(t, d)
              local l
              set AppleScript's text item delimiters to d
              set l to text items of t
              set AppleScript's text item delimiters to ""
              return l
    end decoupe
    --=====
    on parleAnglais()
              local z
              try
                        tell application "Numbers" to set z to localized string "Cancel"
              on error
                        set z to "Cancel"
              end try
              return (z is not "Annuler")
    end parleAnglais
    --=====
    --[/SCRIPT]
    Oops, I forgot that you are asking about Numbers '08 which hasn't AppleScript support.
    Yvan KOENIG (VALLAURIS, France) jeudi 28 avril 2011 16:26:39
    Please :
    Search for questions similar to your own before submitting them to the community

  • SAP AC 10 : ERM working fails (Unable to add Actions,permission)to new role

    Hello Gurus,
    We have done configuration for Role creation via ERM in SAP GRC AC 10.
    The configuration is done via BRF+ and MSMP ,when we try to create a new role via
    NWBC > ACCESS MANAGEMENT>Role Management -->Role Maintenance.
    We see that the correct "methodology" is selected which contains following steps
    Define Role --> Maintain Authorization -->Risk Analysis -->Request Approval -->generation.
    We go past 1st stage and when we are at Maintaining authorizations , the "edit" option is disabled
    It is not possible to add any Action (Tx), Permission(Objects) to the role.
    Is there something else that we need to configure or something that is missing ??
    Please suggest.
    Regards,
    Victor

    Hello All,
    This issue was resolved , after i maintained a User as "Role content approver" and "Assignment Approver"  Under "Owners/Approver" Of define role Tab.
    Whole cycle ran w/o any problem.
    Regards,
    Victor

  • Is it possible to add subitems into one entry in buttonchoice?

    Dear All,
    Is it possible to add entries in button choice as following?
    That is, add one line "Process Route Template" in the Button Choice "Additional Functions", then add three sub-items under this entry.
    Can anyone help on this? Thanks.
    Peter Peng

    Hi Peter,
    It is not possible to have sub-items inside the button choice action items.
    To achieve your requirement for MENU BAR ui element, in which you can add as many as sub-menu and menu action items.
    Hope this helps you.
    Regards,
    Rama

  • Is it possible to add and view your key words when creating a web site from Lightroom 4?

    Is it possible to add and view your key words when creating a web site from Lightroom 4?

    Hi,
    I had the same problem with
    "java.lang.NullPointerException at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.ViewContainerUIElementAdapter.getContent(ViewContainerUIElementAdapter.java:98)"
    when I included ViewUsages dynamically in an action handler (outside wdDoInit()).
    The code below fixed that problem.
    This code creates a new OutboundPlug for the embedding view with the embedded view as target and fires the plug.
    <i>// Create OutboundPlug
    IWDOutboundPlugInfo outboundPlug = embedderViewInfo.createOutboundPlug();
    //Create navigation link
    rootViewUsage.createNavigationTarget(outboundPlug.getName(), interfaceViewUsage, "Default");
    // fire navigation link
    wdThis.wdGetAPI().firePlug(outboundPlug, Collections.EMPTY_MAP);
    </i>
    I hope I could help you. Probably you don't need the information anymore, but perhaps anybody else has the same problem.
    Regards, Alex

  • How to add action listener to internal frame?

    I have frame Main where I am trying to add action listener.
    Action listener should be listening button in frame Menu.
    I think it should be:
    Menu frame = new Menu();
    frame.btn_start.addActionListener(this);but it seems to be doing absolutely nothing.
    If I try to add in menu:
    btn_start.addActionListener(new Main());it generates: java.lang.StackOverflowError
    What should I do? Please help noob :)

    To get better help sooner, post a [_Short, Self Contained, Compilable and Executable, Example Program (SSCCE)_|http://mindprod.com/jgloss/sscce.html] that clearly demonstrates your problem.
    You're quite possible adding the ActionListener to the wrong component. And constructing a new instance of a class within the constructor is likely the cause of your StackOverflowError.
    db

  • Is it possible to add markups to a PDF that I am not the author of

    Most of the PDFs I generate are from other applications (like Autocad) where I "print to PDF" to create the file.   Most of the PDFs I recevie are generated the same way.   Prior to Acrobat Reader 8, it was simple for me and my collueges to exchange information on these PDFs by using markup tools and resending them with markups.   Since Acrobat 8 has come along, I now find it impossible to markup a drawing (no matter if I have created it using Print to PDF or if someone has sent it to me).  I went to the knowledge base and see that the drawing has to be enabled for markup in one of 2 ways
    In an open PDF, choose Comments > Enable For Commenting In Adobe Reader, and then save the PDF.  
    Start the wizard to initiate a shared review or an email-based review and follow the on-screen instructions. When you’re finished, commenting is enabled in the PDF that you specify for the review. 
    Well, there is no Comments selection in my toolbar.   Second method is given by
    Quickstart: Start an email review
    An email-based review lets you track review status and merge received comments into the PDF.
    Click Review & Comment and choose Attach For Email Review.
    If prompted, enter your identity information to create a reviewer profile.
    Follow the on-screen instructions to select the PDF, invite reviewers, and send the email invitation.
      If your email application doesn’t send email automatically, you may need to answer alert messages and switch to your email application to finish sending the message
    But there is no Review & Comment button to click.
    So, can someone tell me, can I still do a simple markup of any PDF?   Even if I have to jump through hoops can I?    I guess I can understand Why Adobe has done away with this feature in their free tool, as they were not getting any revenue off of it, but it greatly diminishes the usefulness of Acrobat Reader and therefore all PDFs for me.
    Thanks in advance for your response.

    To enable this right you need Acrobat, not the free Reader.
    However, starting from Reader X it is possible to add simple markups to any file, unless it has been specifically disallowed by the creator of the file.

  • Can I add Action button on each page of my pdf document

    I have created  many power point slides with an action button on each slide that allows the user to click to display a video clip.   I would like to create a pdf document of this and replace each of my action button in ppt with an action button that works in Acrobat.
    I noticed that action buttons can be added to forms, but I want to be able to add an Action Button on each of my ppt slides to start playing a video clip (each slide will have a different video).
    I would like to do this using any coding method (i.e. Javascript, VBA, C , etc).   I think acrobat uses Javascript.
    The reason, is that I want to display my power point slides on an IPad and they don't support hyperlink in power point.   I believe IPad does suppport the full acrobat capabilities.
    Can this be done ??  
    Any suggestions where to start ??
    Thank You,
    G

    NO problem creating the buttons and then playing this back in Acrobat. Works great.
    However, unfortunately, none of the PDF viewers for the iPad support playing movies.   So playing it there won't work :(.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Sat, 28 Jan 2012 11:00:47 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Can I add Action button on each page of my pdf document
    Can I add Action button on each page of my pdf document
    created by gw70115<http://forums.adobe.com/people/gw70115> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4171109#4171109

  • In contacts there is the possibility to add a new event, as the birthdays, but they do not appear in iCal. Is there any way to make that possible? It is normal to have a person with his birthday, anniversary and others key dates you want to link to him.

    In contacts there is the possibility to add a new event, as the birthdays, but they do not appear in iCal. Is there any way to make that possible? It is normal to have a person with his birthday, anniversary and others key dates you want to link to such person, but the only one shows up is the birthday. How to be able to show all those dates linked to people in the agenda in the iCal?
    Thanks

    Hi,
    I sugggest you try my application, Dates to iCal. It is shareware with a 2 week trial period.
    Dates to iCal 2 is a replacement for Apple's birthday calendar for iCal. It has a range of features to allow the user to choose what, and what not, to sync to iCal from Address Book.
    As well as automatically syncing birthday dates from Address Book, Dates to iCal 2 can sync anniversary and custom dates. It can set up to five alarms for each date in iCal and can also set different alarms for birthdays and anniversaries. It allows the option of only syncing from one Address Book group. This application also allows for the titles of the events sent to iCal to be modified to the user's preference.
    Best wishes
    John M
    As I sell software on my site and ask for donations, the Apple Support Communities Use Agreement requires that I state that I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Is it possible to add a graphics card to the back of my HP

    Hello  I want to know if it's possible to add a new graphics card to the back of a Laptop not inside of it but on the back of my laptop ???  my graphics Card is a Intel 4000 graphics card is a terrible for gaming TERRIBLE !!!  

    Not sure where it would go on the back, but no the system is closed. There is no place to insert a graphics card or attach it. You will find some hokey stuff on the internet where people say you can plug a video card in the wireless card slot but those are a hoax at worst and at best they do not tell you that such a thing would not even perform as well as what you have and is likely to damage the motherboard. 

Maybe you are looking for

  • Energy saver not starting the MM at times, holds the log a clue?

    I have a MM as a server, normal OS, that sometimes does not start in the morning.  It is set to shut down at 23.00 and does so all evenings at 23.10.  However this morning (01-10-2011) it did not come on again and I was looking through the log and fo

  • Can someone tell me why i am getting this error

    helo, I am trying to write 3 seperate classes and use inheritence between them, a small brek down is class Thought is suppose to have a method messege that prints out "I'm a teacher" and slass Advice is suppose to be a subclass of Thought and suppose

  • Help needed to load a viewer control in Access

    Hi, I'm having a problem viewing a Crystal Report in Access.  The code looks like this: Dim crApp As New CRAXDRT.Application Dim crRep As CRAXDRT.Report   'load a standalone report created in the designer     Set crRep = crApp.OpenReport("c:\fax\data

  • Avchd output to bluray

    Hi all  I read this on Adobe site "AVCHD output to Blu-ray NEW Publish content from AVCHD cameras to Blu-ray using the high-quality native camera format. By passing AVCHD content directly to disc without transcoding, Encore preserves the original fid

  • PC Crashed and can't activate reinstalled photoshop

    My PC Crashed and a new hard drive was needed. I reinstalled Photoshop Elements 8 on the PC but now I can't activate the product without deactivating the programme on the redundant hard drive. How do I fix this?