A JButton, a mnemonic, and a missing action event.

Does anybody have a clue as to why a JButton, when activated by a mnemonic, would highlight the button onscreen but NOT call the button's actionPerformed() method?
Specifically, I have a (huge) application that consists of a main JFrame and any number of internal JDialogs launched (mostly) by buttons and menu items. The situation is arising when a dialog is closed without expressly placing focus on a component parented by the main frame. Once the dialog closes you can hit a mnemonic key combination and the button associated will 'depress' (turn grey) but not reset back to it's normal state, nor will the associated actionPerformed be called. A second usage of the mnemonic immediately following the first one WILL activate the button (and reset the visual state). This behaviour can be avoided by clicking on a component (other than a button) on the main frame before trying the mnemonic the first time, but that's not acceptable from a user's standpoint (this job would be sooo much easier without them! ;) )
I know it's not possible to get specific without code examples (which aren't possible because I can't narrow down were it's happening in the 900+ GUI-side scripts) but I'd really appreciate anyone who could point me in the right direction to start investigating this phenomenon. Thx.

Hi Yuki,
Yeah, after I turn on detail JSF debugging as instructed by the book Core JavaServer Faces, I figured out I had a validation error. That solves the mystery.
Thanks,
Edmond

Similar Messages

  • Missing Action Event from Custom Component

    Hi JSF Gurus,
    I have two custom components, both extends UICommand and have their
    own renderers. I use them on two seperate pages, say component1 on
    page1 and component2 on page2. And page2 is include inside page2.
    I registered an action listener on component2. When the composite page
    is rendered, I clicked on component2. However, the registered action
    listener was not invoked. Inside the debugging (I'm using IntelliJ
    IDEA 5.0) I set a breakpoint inside the decode method of Renderer2
    (renderer for component2). I do see the componen2 actually as an
    actionLister method binding being set to correct value. I do queue the
    new action event to component2 at the end of the decode method. But
    the action listerner never invoke.
    Any idea what did I miss?
    Thanks,
    Edmond

    Hi Yuki,
    Yeah, after I turn on detail JSF debugging as instructed by the book Core JavaServer Faces, I figured out I had a validation error. That solves the mystery.
    Thanks,
    Edmond

  • I am running 3.6.12 and my new tab and/or window actions are the same. How can i open new links within apps into new tabs?

    I used to be able to control new tab actions such as opening on top of current tab or in a new tab. This is frustrating as i always cover up where I am or was! How can this be corrected so I can open a new tab in a new tab? I am enrolled in an on-line class and can not open tabs in a new tab as needed as it always places the new tab on top of teh current or old tab.
    Funny as i use to complain about opening in new windows!
    I am missing how to control new tabs and new window actions?
    THanks,
    William

    Do you have any tab related extensions (Tools > Add-ons > Extensions) that allow to divert links?<br />
    See [[Troubleshooting extensions and themes]]
    Did you ever made changes to the prefs browser.link.open_newwindow and browser.link.open_newwindow.restriction yourself on the about:config page?
    See:
    * http://kb.mozillazine.org/browser.link.open_newwindow
    * http://kb.mozillazine.org/browser.link.open_newwindow.restriction
    See also http://kb.mozillazine.org/about%3Aconfig

  • How do I retain Jbutton text for action event & set img icon on Jbutton

    I need to retain the text on my button as I use this to identify the action event in actionPerformed method when the button is pressed.
    Hoe do I add an image icon to the Jbutton without effecting this?
    [/b]
    class CalcPanel extends JPanel
        implements ActionListener, CurrencyVals
    //currency panel data members
        JButton[] cb = new JButton[4];
    JPanel cbkeys = new JPanel(new GridLayout(4,1));
    //Toolkit tk = Toolkit.getDefaultToolkit();
        //Image img = tk.getImage("D:/temp/ausflag.jpg");
    public CalcPanel(){
    ImageIcon b = new ImageIcon("D:/temp/ausflag.jpg","AUS");
        cb[AUS]= new JButton(b);  //cb[AUS]= new JButton("AUS");
          cbkeys.add(cb[AUS]);
          cb[AUS].addActionListener(this);
    setLayout(new BorderLayout());
        add(display, BorderLayout.NORTH);
        add(keys, BorderLayout.CENTER);
        add(cbkeys, BorderLayout.EAST);
        add(label, BorderLayout.SOUTH);
        public void actionPerformed(ActionEvent evt){
          Object source = evt.getSource();
          int id;
          if (keyBoard) {
            if (source instanceof JButton) {
              String s = ((JButton)source).getText();
    [/b]Regards
    Synfield

    if(keyBoard) { ??! [/b]... do have cause to feel flattered?
    Copy and paste this and save a small eg;- 25px high x 50px wide Jpeg image in the same file and call it "new.jpg", then study it, this posted program (again?) to see where your code went astray.
    THEN, figure out what you want to do with your code ...keep at it!
    Sue x
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ButtonIcon extends JFrame implements ActionListener {
    String []str ={"abc","def","ghi","jkl","mno","pqr","st","uvw"};
    JButton b[] = new JButton[str.length];
       JButton on = new JButton("ON");
       JButton off = new JButton("OFF");
       JButton picture;
       JPanel panel;
       String str2="";
       Font font = new Font("Comic Sans MS" ,0, 14);
       boolean keyBoard;
       ImageIcon icon = new ImageIcon("new.jpg");
    public ButtonIcon(){
       Container c = getContentPane();
       panel = new JPanel();
       panel.setLayout(new FlowLayout());
       picture = new JButton(icon);
       for (int j=0; j<=str.length-1; j++){
             b[j]= new JButton(str[j]);
             b[j].setFont(font);
             panel.add(b[j]);
             b[j].addActionListener(this);
       on.addActionListener(this);
       off.addActionListener(this);
       panel.add(on);
       panel.add(off);
       panel.add(picture);
       c.add(panel);
       public void paint (Graphics g) {
          super.paint (g);
          Graphics2D G = (Graphics2D) g;
          G.setColor(Color.red);
          G.setFont(font);
          G.drawString(str2, 25, 150);
    public void actionPerformed(ActionEvent evt){
        String command = evt.getActionCommand();
        if (keyBoard) {
           if (evt.getSource() instanceof JButton ) {
               str2 += command;
           if (evt.getActionCommand().equals("OFF")) str2 = "";
        if(command.equals("ON")) keyBoard = true;
        if(command.equals("OFF")) keyBoard = false;
    repaint();
    public static void main (String []args){
       ButtonIcon boo = new ButtonIcon();
       boo.setSize(300,200);
       boo.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE );
       boo.setVisible(true);

  • Missing action 88 in table sys.audit_actions

    dear all,
    this select give me a result of some rows: select * from sys.aud$ where action# = 88;
    In the table sys.audit_actions is no row with the action 88.
    What does the action 88 describe?
    Thanks a bunch.

    user10911131 wrote:
    Hi
    I found some rows in the table aud$ with 88 and didn't know what is 88.
    After than I found a link with all "missing" actions.Do you not want to share ?
    And please, I probably do not understand or I missed something but could you tell me how you set audit on ALTER VIEW event :
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> audit alter view;
    audit alter view
    ERROR at line 1:
    ORA-00956: missing or invalid auditing option
    SQL> audit alter table;
    Audit succeeded.Nicolas.

  • Question related to JButton action event

    Hi All,
    In my application a small issue has poppedup i.e. i am giving a JButton with an action and with that action a .bat file is getting generated and immediately i am making it to get executed by using the runtime class.Now my question is if i keep on firing the same button for 20 times same batch file is getting executed for 20 times.SO i want to control that process something like once the execution is done i need to have an acknowledgement so that i will be getting a chance to fire in the next.
    After first click on the JButton second click should not process anything till the first execution is done.
    How is it possoible to implement this??
    Any help appreciated.
    regards,
    Viswanadh

    Hi Camic and Andre,
    Thanks for the replies i will try out in both the ways and get back to you people.
    And camic as you were saying to go through Process class i have seen and immediately got a question.When i disable the JButton is it a right way that me getting the exitValue of the Process soemthing like
    Process p;
    if ( p.exitValue()==0){
    JButton.setEnabled(true) /enabling button
    }Is this the right way to do???
    regards,
    Viswanadh

  • Very Urgent (How can i add fade in and fade out Action)

    Hi, How can i add fade in and fade out action on the JButton when the mouse is over the button.its mean that when the mouse is over the button then the button's Label is fade in and out.
    plz give code example
    thanks

    If you want to fade in and out anything, you should look at the Composite interface. A Composite is part of a Graphics2D object. You should be able to gradually change this on the button, but maybe within a different thread?

  • When I am trying to use my printer with mac it will not print anything and says missing plug???  Help???

    I have usb cord from printer to Mac cannot print anything and says missing plug???  Anyone who can help me?  I do not understand what missing plug means?

    What Mac?
    What Mac OS X?
    What Printer?
    What software are you trying to print from?
    What sort of stuff are you trying to print? {just text, text and some diagrams, graphics, photos, animated Giffs, movies, something else}

  • I downloaded some videos to Premier Elements 13 from external hard drive but now the external hard drive is damaged. I tried to open the videos on the organizer which it shows the video but with a yellow ? and says missing file. Is there anyway I can open

    I downloaded some videos to Premier Elements 13 from an external hard drive but now the external hard drive is damaged. While setting up my new MAC the external hard drive was dropped and I have been told by an outside source they could not retrieve the files.  It had 4 years of photos and videos on it. I remembered that I had downloaded some of the videos from the external hard drive (before it was broke) to Adobe Organizer 13 when I installed the Adobe 13 on my MACOS X 10.9.5.  I tried to open the videos on the organizer which it shows the video but with a yellow ? and says missing file. Is there anyway I can open these videos?
    Any input is greatly appreciated!! I am sick over losing the videos and had a little hope on Adobe Organizer until I was unable to open them.  I am thinking it is due to my external hard drive not being plugged in. I thought when I transferred from the external hard drive to Adobe 13 that it would be there without the external hard drive needing to be attached but maybe I did something wrong.
    Thanks again for any help!!!!

    jnrmendonca
    It had 4 years of photos and videos on it.
    To what did your camera record those photos and videos - camera's internal memory, inserted memory card, other?
    Any remote chance that the latter may still exist for you to use to download the camera files to your new external hard drive?
    ATR

  • Audio cut out and midi miss sync

    Lately I have been getting audio cut out, and the missing, 'error while trying to sync audio and midi'.
    I thought it was that I had too many instances of virtual instruments. So I mixed the song down. Imported that into a NEW song, with only one audio track, and then proceeded to try to do an organ overdub...Well Logic still drops out and gives me the message, even though there is NO midi information in this file...
    Then I noticed that even AIF or mp3 files, didn't play properly from the desktop preview mode. They stop too. Activity monitor doesn't seem to be showing anything overworking..
    Disk Warrior fixed some volume errors,
    Anyone have any ideas to try?

    I'm using a motu828. I disconnected the firewire connection, and ran audio from the headphone jack to the motu, and VOILA, no problems... Last year, I went thru two motu units, not really sure if they are the issue.
    I think it might be LOGIC's firewire circuitry. Apple techs couldn't find the issue, I had the G5 motherboard replaced. Another factor was I had 3 Lacie firewire drives (2 firewire 800, 1 400) I have had 4 Lacie drives die on me in the last 3 years. They are the only firewire drives I have, so I don't know if the fault lies with them, or the again Apples firewire circuitry, stressing the drives out???
    I also put a firewire 800 card in my system.
    I have now switched to an external ESATA raid setup. No more firewire drives. So far so good. Since I had the whole motherboard replaced, I don't know what that means in terms of MOTU connected via firewire..
    For now, I'm running audio out of headphone jack, using all virtual instruments, so I know it will sound better when I get firewire audio up and running, but I got tired of it cutting out every 3 - 30 minutes. I'm thinking about the apogee duet unit. But again if it's connected via firewire, I don't know where that leaves me..
    My G5 is three and half years old, perhaps it's tired and wants to be retired....
    The dark part of me wonders, if Apple computers don't start crapping out after three years of heavy use, or is it that technology, software, updates, push the hardware beyond it's capacity after a few years.

  • I have files in my iTunes media folder that somehow are not in my library. How do I get iTunes to scan my media folder and add missing files to my library without making a copy of each file in the same location?

    I have files in my iTunes media folder that somehow are not in my library. How do I get iTunes to scan my media folder and add missing files to my library without making a copy of each file in the same location? If I use add file / folder to library, it scans the folder and then makes a copy of any file that is not in my library in the exact same location; I recal in older versions of iTunes being able to just drag my media folder into my library and it would update missing links.

    Only the songs that are connected to iTunes will be copied when you consolidate to a new folder.
    Splitting the media folder away from the usual location makes it harder to move iTunes in the future.
    Are you go move everything back once you've tidied up or are you going to leave it that way? Either way I'd recommend you create an iTunes folder at the new location, an iTunes Media folder inside that, and consolidate to this new iTunes Media folder. You should also use the option File > LIbrary > Organize Library > Rearrange files in the folder "<Media Folder"> if you have not already done so.
    tt2

  • TS3212 the new download of itunes will not run. I get a message during the process that I need to verify that I have sufficient privilege. then I get an error 126 and a missing file MSVCR80.dll. what can I do?

    I'm trying to download the new version of itunes. durig the install i get a message that I need to verify that I have sufficient privilege. Then I get a message of a Windows error 126 and a missing file MSVCR 80.dll. I've tried everything on the support site and nothing works.

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • Internal links in portal (CSS, images, and other struts actions)

    Good morning gurus! I have another question regarding Struts Portlets. We have an application that builds a page with an image that comes from the database. The application is composed of two Struts actions. One that's in charge of drawing the page and the other action is in charge of bringing the image from the database. The second action is called from a JSP (img src="/getImage.do"). In portal, once the portlet rendered the JSP it doesn't recongnize the other links inside the JSP (the call to the second action). Also, other links suchs as images, CSS, and others Struts actions are not recognized. How can I access images, links, and CSS from the main application (the actual application).
    Best regards,
    Marcelo Oliva
    Message was edited by:
    molivas08

    Hi Andrew -
    This is a pretty big topic for one thread ... I will try to provide some pointers on where to look for more information.
    1. Need ability for non-html literate authors to update text, images and links on their portion of a shared web page
    In the following whitepaper, see the section: Associated Funtion for Item Display
    http://www.oracle.com/technology/products/ias/portal/pdf/oow_10gr2_1336_fender.pdf
    This will allow you to prompt your non-HTML literate users for the "parts" to display and you worry about the UI.
    2. Need ability to enforce common look and feel on content provided by non-html literate authors.
    Create pages based on Templates. Templates can force the style on users. Again - do not use text items and the RTE for users, you control the display with an Associated Function.
    3. Prefer ability to approve content before it goes live.
    Grant content contributors "Manage with Approval" access
    5. Need advanced search capabilities
    Check out the search section on Portal OTN
    http://www.oracle.com/technology/products/ias/portal/content_management_10gr2.html
    Hope this helps,
    Candace

  • Auto Launch Application and perform some action

    Hello Friends,
    I am working on Autoback, want to launch application and perform some action to take backup.
    Can any one please update me what all the J2ME phone supports this kind of feature and basic needs to implement Autobackup, any sample code available please let me know
    Thanks,
    Kumar.M.R

    Something sketchy.
    I had the same message appear. It resized my window to the smallest possible size (not minimize!) and when I resized it larger, it had opened a new tab with that message. It was on "c510a1.minersaver1.com" which sounds like a related site. It tried to download "avmast_2004-4_mst5.exe"and I was going to try and refind this site on my Linux box, but forgot to save the exact URL (oops!).
    Running Firefox 4.0b11 on 64-bit Windows 7 Home Premium.
    EDIT: Found a LIVE link
    http://c510a1.minersaver1.com/defender/?44a=pccfjf&8d1ad=glslkkqpgl&eb45=gpqmpkkcmc&03f67=3

  • Videos with avi format do not open under Lion and receive "missing codec" message.  Worked fine prior to Lion installation.

    Videos with avi format do not open under Lion and receive "missing codec" message.  Worked fine prior to Lion installation.

    http://perian.org
    You may also need to install QuickTime Player 7.6.6 to open the files.

Maybe you are looking for

  • I am trying to use livetype with persian alphabet and it doesn't work. what should I do?

    I am trying to use livetype with persian alphabet and it doesn't work. what should I do?

  • Don't know how to format external hard drive

    dont know how to format my new external hard drive can anyboby help me not very good with computers   thanx

  • ITunes freezes my Macbook Pro

    Hey everyone. I just purchased a brand new 15" Macbook Pro with a 128GB SSD. My first Mac after 13 years using PCs. OSX Lion is the current version. iTunes is also the most current version. All software is up-to-date. Every time i open up iTunes, my

  • Converting Word TOC

    I am importing a word file with its TOC in RH 7. The file and the TOC are correctly imported. In the TOC (in the compiled project), when I click on a book (where no topic should be linked), the previous topic in the TOC opens. RH automatically links

  • PDFs are unable to be viewed.

    I have downloaded adobe a few times, along with restarting firefox. I have also made sure the plugins were on. Still not working. I have a mac book pro. Not the Lion OS system I do not think. Thanks