Keystrokes for button actions in JOptionPane

When running my app in Windows, the Alt key must be pressed to cause the "Yes" button or "No" button to respond from the keyboard. Can I set an option in JOptionPane, or elsewhere, to not require pressing the Alt key to activate a button in JOptionPane?

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
* Class JPSOptionPane
* @author Sreenivasa Reddy M
* @version 1.0
public class JPSOptionPane {
private static boolean isKeyPressed;
private static Object selectedValue;
* Method showOptionDialog
* @param parentComponent
* @param message
* @param title
* @param optionType
* @param messageType
* @param icon
* @param options
* @param initialValue
* @return
public static int showOptionDialog (Component parentComponent,
Object message, String title,
int optionType, int messageType,
Icon icon, Object [] options,
Object initialValue) {
JOptionPane pane = new JOptionPane (message, messageType, optionType,icon, options, initialValue);
pane.setInitialValue (initialValue);
HashSet hash1 = new HashSet ();
hash1.add (AWTKeyStroke.getAWTKeyStroke (KeyEvent.VK_UP, 0,true));
hash1.add (AWTKeyStroke.getAWTKeyStroke (KeyEvent.VK_TAB, 0,true));
pane.setFocusTraversalKeys (KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS,hash1);
HashSet hash2 = new HashSet ();
hash2.add (AWTKeyStroke.getAWTKeyStroke (KeyEvent.VK_TAB, 1, true));
hash2.add (AWTKeyStroke.getAWTKeyStroke (KeyEvent.VK_DOWN, 0, true));
final JDialog dialog = pane.createDialog (parentComponent, title);
pane.setFocusTraversalKeys (KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, hash2);
ActionListener yActionLis=new ActionListener(){
public void actionPerformed(ActionEvent e){
isKeyPressed=true;
dialog.dispose();
selectedValue=new Integer(0);
KeyStroke ks_y=KeyStroke.getKeyStroke(KeyEvent.VK_Y,8,true);
pane.registerKeyboardAction(yActionLis,ks_y,JComponent.WHEN_IN_FOCUSED_WINDOW);
          ActionListener nActionLis=new ActionListener(){
public void actionPerformed(ActionEvent e){
isKeyPressed=true;
dialog.dispose();
selectedValue=new Integer(1);
KeyStroke ks_n=KeyStroke.getKeyStroke(KeyEvent.VK_N,8,true);
pane.registerKeyboardAction(nActionLis,ks_n,JComponent.WHEN_IN_FOCUSED_WINDOW);
pane.selectInitialValue();
dialog.show ();
if(!isKeyPressed){
dialog.dispose ();
selectedValue = pane.getValue();
          isKeyPressed=false;
else{
          isKeyPressed=false;
return ((Integer) selectedValue).intValue ();
if (selectedValue == null) {
return JOptionPane.CLOSED_OPTION;
if (options == null) {
if (selectedValue instanceof Integer) {
return ((Integer) selectedValue).intValue ();
return JOptionPane.CLOSED_OPTION;
for (int counter = 0, maxCounter = options.length; counter < maxCounter; counter++) {
if (options [counter].equals (selectedValue)) {
return counter;
return JOptionPane.CLOSED_OPTION;
* Method showInputDialog
* @param parentComponent
* @param message
* @param title
* @param messageType
* @param icon
* @param selectionValues
* @param initialSelectionValue
* @return
* @throws HeadlessException
public static Object showInputDialog (Component parentComponent,
Object message, String title,
int messageType, Icon icon,
Object [] selectionValues,
Object initialSelectionValue)
throws HeadlessException {
JOptionPane pane = new JOptionPane (message, messageType,JOptionPane.OK_CANCEL_OPTION,
icon, null, null);
HashSet hash1 = new HashSet ();
hash1.add (AWTKeyStroke.getAWTKeyStroke(KeyEvent.VK_UP,0,true));
pane.setFocusTraversalKeys(KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS, hash1);
HashSet hash2 = new HashSet ();
hash2.add(AWTKeyStroke.getAWTKeyStroke (KeyEvent.VK_DOWN, 0,true));
pane.setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, hash2);
pane.setWantsInput (true);
pane.setSelectionValues (selectionValues);
pane.setInitialSelectionValue (initialSelectionValue);
JDialog dialog = pane.createDialog (parentComponent, title);
pane.selectInitialValue();
dialog.show();
dialog.dispose();
Object value = pane.getInputValue();
if (value == JOptionPane.UNINITIALIZED_VALUE){
return null;
return value;
public static void showMessageDialog(Component parentComponent,
Object message)
throws HeadlessException{
JOptionPane.showMessageDialog(parentComponent,message);
public static void showMessageDialog(Component parentComponent,
Object message,
String title,
int messageType)
throws HeadlessException{
JOptionPane.showMessageDialog(parentComponent,message,title,
messageType);
public static void showMessageDialog(Component parentComponent,
Object message,
String title,
int messageType,
Icon icon)
throws HeadlessException{
JOptionPane.showMessageDialog(parentComponent,message,title,
messageType,icon);

Similar Messages

  • Need help for button actions

    Hi, can someone help me please? I like to put a invisable
    button over a picture (movie) with two actions. 1. rollover will
    show a title, 2. release will get new URL. I succeed in one or the
    other action but not on both of them combined. What can I do? I use
    action script 2. Thanks. Sarosa

    You could achieve the same result putting code in the
    button...
    1 - Open example.fla
    2 - Save it as example2.fla
    3 - Layer Actions --> frame 1, delete all the code leaving
    only:
    testing._visible = false;
    stop();
    4 - Layer button: select the bt button instance
    5 - in the Actions Panel (by the way, attached to the
    button), put this code:
    on (rollOver) {
    testing._visible = true;
    on (rollOut) {
    testing._visible = false;
    on (release) {
    getURL("
    http://www.google.com", _blank);
    6 - Test your movie: it works too!
    If you are totally new to Flash, always remember to name
    things in an appropriate way using the "official" names.
    (read again the beginner's tutorials)
    For example, it's wrong to say "I put the action script on
    the button not on a separate layer".
    This is completely ununderstandable...
    More: I didn't "convert" a graphic symbol to a button but I
    changed the behavior of a graphic symbol into the behavior of a
    button.
    Doing so, the graphic symbol is recognized as a button with
    all the properties attached to a button.
    The main difference between a graphic symbol acting as a
    button and a real Button is that the Button has four frames (Up,
    Over, Down and Hit) and the graphic symbol has not.

  • How to use Keystroke Ctrl Right for button

    Hi all,
    I am a new user to swing .I am facing some problems while implementing the following.I have a tree table .I have one listener class which is listening the tree selection.I have one button for which I want to use ctrl right arrow as accelerator .I have added the keystroke for this.
    It is working fine.But when I am selecting any iitems from the tree the listener class is listening it.i am passing the tree and the button there.But the keystroke for the button is not working.Please helpme to solve this.
    thanks

    I'm guessing the button accelerator is not working because the tree has the
    input focus. You might want to try using the WHEN_IN_FOCUSED_WINDOW
    input map to set up your accelerator binding.

  • InDesign Button Action for PDF – Open File (in new window)

    I am using the 'Open File' action on buttons in a document i am making which will eventually be a PDF, but am wanting to specify the button action to open the file (another PDF) in a new window.
    I have found that I can achieve this and add button actions with this specific behavior in Acrobat, but it seems to be missing in indesign's abilities as far as I can see. Is there a way to do this in indesign so that i do not have to tinker in acrobat after I have made my PDF. As if I have changes to the PDF, all buttons then have to be totally re-done each time, and i will have possibly 900 buttons!!
    Thanks.
    (Using indesign CS4)

    Jeff,
    You are correct. I want to have a DVD with multiple PDFs. The main one almost acting as a table of contents for the rest.
    Problem = the 'main one' is 62 pages long, many hundred buttons and every page has at least a few of these links needed.
    Which means, if you are correct (and I believe you are, hope you aren't) that I need to custom code these buttons in Acrobat.
    The method is easy, but x300 = painful. And then the kicker... Boss says, 'Change slide 30' ... which means: Back to InDesign, Export to PDF, Recode ALL BUTTONS.
    *Note, there are some 'interactive' buttons with roll over states. So I don't think replacing the pages would work.

  • Programmatically change settings for "Button mode" in actions palette

    Hi,
    I am making an addon installer for Adobe Photoshop for Mac. After installing, I need to open a ".atn" file, and from the action palette , set it to "Button mode". How can I set the mode programmatically? Is there a plist or xml or setting file that I can modify to set its mode to "Button mode"? Or is there support for this in AppleScript dictionary? Thanks.

    I am making an addon installer for Adobe Photoshop for Mac.
    That’s certainly beyond my grasp, so please excuse if the question is useless, but if you load the atn-file anyway could you not use a Configurator Panel for those Actions instead of trying to change the Actions Panel’s settings?

  • Value  set in constructor is not getting saved in button  Action method

    Hi All,
    I am not understanding why the value set ( On Condition )in constructor is not hold in the button actoin method.
    Could any body explain me on that
    for this I will try to explain with sample example
    I have taken a button and add a integer property in session bean.
    now if session bean's property is even then I am trying to set the button value to bidNow other wise Accept Invitation.
    Till this opstion everything is OK
    but once I click on Button,
    Constructor is doing the right job only. But I do not understand why in button action I am getting the First Value only.
    public Page1() {
            // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
            try {
                if (getSessionBean1().getIntValue()%2==0)
                    button1.setValue("BidNow");
                else
                    button1.setValue("Accept Invitation");
                getSessionBean1().setIntValue(getSessionBean1().getIntValue()+1);
                log("In Constructor Button Value : "+button1.getValue());
            } catch (Exception e) {
                log("Page1 Initialization Failure", e);
                throw e instanceof javax.faces.FacesException ? (FacesException) e: new FacesException(e);
            // </editor-fold>
            // Additional user provided initialization code
        public String button1_action() {
            // TODO Replace with your code
            log("In Action Button Value : "+button1.getValue());
            return null;
        }and here is the log
    [#|2005-07-19T11:55:17.859+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:17.859+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:18.359+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:18.359+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:18.843+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:18.843+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:19.312+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:19.312+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:19.828+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:19.828+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:20.234+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:20.250+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:20.828+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:20.828+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:21.328+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:21.328+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:35.437+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:35.437+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:35.906+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:35.921+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:36.265+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:36.265+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:36.890+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:36.890+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:37.171+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:37.171+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:37.468+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:37.468+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]As per this log every time I am getting Bid Now only in action, though the value is changed in Construtcor
    Can u explain the reason for this

    Hi Sudhakar,
    Please try the following and you will get an idea as to what is happening:
    1. Drag and drop a button, 2 outputText components
    2. Add a property to the session bean called intValue of type int. Customize it to set it's initial value to 0
    3. Add the following lines of code to the constructor
    outputText1.setValue("" + getSessionBean1().getIntValue());
    getSessionBean1().setIntValue(getSessionBean1().getIntValue()+1);
    4. Double click on the button component to go to the button action method.
    5. Add the following line of code
    outputText2.setValue("" + etSessionBean1().getIntValue());
    6. Save and run the application
    7. Watch the values of outputText1 and outputText2 with each click of the button
    Also, try the application with the following code block in the button action method:
    if(getSessionBean1().getIntValue()%2==0){
    button1.setValue("Bid Now");
    } else{
    button1.setValue("Accept Invitation");
    getSessionBean1().setIntValue(getSessionBean1().getIntValue()+1);
    outputText1.setValue(button1.getValue());
    outputText2.setValue("" + getSessionBean1().getIntValue());
    When the above code block is in the button action method the values set to button are as expected.
    Hope that helps
    Cheers
    Giri :-)

  • How to view an Image in ABAP Webdynpro on button action

    Hi Experts,
    I want to view an image on a button action without creating a new view or window.
    I just need to display the image.
    Thanks,
    R Sahu

    Hi Rabi,
    Add Context Attribute "SOURCE_IMG" with type String.
    Add Image UI "img_id" in layout and bind its source with this context attribute.
    on any method where you want to change/show image dynamically, put this code :
    here url can be path to image on local or any url-path for web image.
    call method wd_context->set_attribute
           EXPORTING
             name = 'SOURCE_IMG'
             value          = url .
    I hope this is what you are looking for.
    Thank you
    Meet Vajaria

  • Command link / button action is not taking place if i use it in iterator.

    Hi,
    I am new to ADF, i am facing 1 issue while implementing ADF mobile browser application.
    Issue: command link / button action is not taking place if i use it in iterator. its just refreshing the page it self and displaying as no records.
    Scenario is i am populating the search results in results page from search page using iterator, i want to get the complete details in different page (results page -> details page) .
    I have tried in different ways.like
    case1:
    <tr:panelGroupLayout id="pgl2" layout="vertical" styleClass="af_m_panelBase">
    <tr:panelHeader text="#{classviewBundle.SEARCH_RESULTS}" id="ph1"/>
    <tr:iterator id="i1" value="#{bindings.SubjectVO1.collectionModel}" var="subject"
    varStatus="subIndx" rows="100">
    <tr:panelBox text="#{subject.Subject} #{subject.CatalogNbr} - #{subject.CourseTitleLong}"
    styleClass="af_m_listingPrimaryDetails" id="pb1">
    <f:facet name="toolbar"/>
    <tr:table var="ssrClass" rowBandingInterval="1" id="t1" value="#{subject.children}"
    varStatus="clsIndx" rowSelection="none"
    binding="#{SessionBean.subjectTable}" verticalGridVisible="true"
    emptyText="No Records" width="100%">
    <tr:column id="c9" sortable="false" styleClass="width:100%">
    <*tr:commandLink text="Section: #{ssrClass.ClassSection}-#{ssrClass.SsrComponentLovDescr} (#{ssrClass.ClassNbr})"*
    id="commandLink2" styleClass="af_m_listingLink"
    *action="#{pageFlowScope.BackingBean.searchaction}"></tr:commandLink>*
    //remaining code
    in this case commandlink action is not able to invoke serachaction() method
    case 2:
    <tr:commandLink text="Section: #{ssrClass.ClassSection}-#{ssrClass.SsrComponentLovDescr} (#{ssrClass.ClassNbr})"
    id="commandLink2" styleClass="af_m_listingLink"
    action="classdetails}"></tr:commandLink>
    in this case its not able to navigate to classdetails page.
    I gave correct navigation cases and rules in taskflow,but its working fine when the command link is out of iterator only.
    i tried with actionlistener too.. but no use.. please help me out of this problem .
    *Update to issue:*
    The actual issue is when i use command link/button in an table/iterator whose parent tag is another iterator then the action is not taking place.
    the structer of my code is
    < iterator1>
    #command link action1
    < iterator2>
    #command link action2
    </ iterator2>
    < /iterator1>
    #command link action1 is working but "#command link action2" is not...
    Thanks
    Shyam
    Edited by: shyam on Dec 26, 2011 5:40 PM

    Hi,
    To solve my problem I used a af:foreach instead.
    <af:forEach items="#{viewScope.DataBySubjectServiceBean.toArray}" var="text">
    <af:commandLink text="#{text.IndTextEn}" action="indicator-selected" id="cl1">
    <af:setActionListener from="#{text.IndCode}" to="#{pageFlowScope.IndicatorCodeParam}" />
    </af:commandLink>
    </af:forEach>
    By the way you need to convert the iterator to an Array using a ManagedBean.
    public Object[] toArray() {
    CollectionModel cm = (CollectionModel) getEL("#{bindings.TView1.collectionModel}");
    indicators = new Object[cm.getRowCount()];
    for(int i=0;i<cm.getRowCount();i++){
    indicators[i] = cm.getRowData(i);
    return indicators;
    public static Object getEL(String expr) {
    FacesContext fc = FacesContext.getCurrentInstance();
    return fc.getApplication().evaluateExpressionGet(fc,expr,Object.class);
    Hope that helps-
    Edited by: JuJuZ on Jan 3, 2012 12:23 AM
    Add getEL Method

  • How to use the cases in button action?

    Hi Experts,
    I want to get a prompt message if the field is empty.I got it but at the same time if the field is filled I want the other action to be performed that is to call a BAPI and give me output.How can I give two events for the same action.
    How to use the cases in button action?
    So, please guide me.Urgent need
    Regards
    Nutan

    Hi Nutan,
    if I understand you, then you have a simple validation. Therefore you can use the validation functionality of VC for your components. An alternative could be by writing a new ABAP RFC function module like:
    BAPI Input parameters as input and BAPI output parameters as output and an additional return code or string for a message:
    IF I_FIELD IS INITIAL.
      E_RETURN_CODE = "THE FIELD IS EMPTY."
    ELSE.
      CALL FUNCTION <YOUR_BAPI>
      <BAPI PARAMETERS>
    ENDIF.
    I hope that helps.
    Best Regards,
    Marcel

  • Button actions only work the first time used then nothing?

    This is what I have...
    I Have 2 buttons in MC named mcMovieTrans the AS for these buttons are in the MC's timeline, the code is:
    stop();
    function playLifeboy(event:MouseEvent):void
    gotoAndStop(3);
    function playKrave(event:MouseEvent):void
    gotoAndStop(2);
    lifeboy_btn.addEventListener(MouseEvent.CLICK, playLifeboy);
    krave_btn.addEventListener(MouseEvent.CLICK, playKrave);
    when the buttons are activated they go to there corresponding frames and Stop. As an example of what happens next I'll show you frame 3 which plays MC mcKraveMovie:
    Frame 45 has a flv. movie on it that plays at this frame. The AS for this timeline on Frame 45 is:
    stop();
    function playReturn(event:MouseEvent):void
    gotoAndPlay(46);
    return_btn.addEventListener(MouseEvent.CLICK, playReturn);
    The AS for the timeline on Frame 90 is:
    MovieClip(parent).gotoAndStop(1);
    This is where the problem occurs because when this action takes place and it returns to the parent MC (mcMovieTrans) The buttons actions dont work anymore.
    And I get this error message:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at capQinc_fla::mcMovieTrans_89/frame1()[capQinc_fla.mcMovieTrans_89::frame1:15]
    at flash.display::MovieClip/gotoAndStop()
    at capQinc_fla::mcKraveMovie_97/frame90()[capQinc_fla.mcKraveMovie_97::frame90:1]
    Thanks

    Thanks,
    I replaced all the button symbols that where in tweens on the MC mcKraveMovie with static art. But I still Get this error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at capQinc_fla::mcMovieTrans_89/frame1()[capQinc_fla.mcMovieTrans_89::frame1:15]
    at flash.display::MovieClip/gotoAndStop()
    at capQinc_fla::mcKraveMovie_97/frame90()[capQinc_fla.mcKraveMovie_97::frame90:1]
    This is the timeline for the (Parent) MC mcMovieTrans:
    If that helps at all, the only place where the buttons are (and there actions) are in Frame 1 of this Timeline
    Thanks

  • Keystrokes for Adobe Photoshop Album Starter Edition 3.0

    I'm looking at my photos in the organize view and can see thumbnails. I want to rotate the pictures by using CTRL+R for Rotate right but nothing happens with the selected picture. I have to go to the Edit menu and then do it. Can I assign a keystroke for this single action?
    Thanks
    Claire

    Hi Colin,
    Yes, I'm doing that. I only have one Enter type key (which I guess equates to return), I don't have a number pad. Perhaps I'll see what IBM think is the Enter key and see if that works.
    thanks for your help
    Claire

  • Submit button (Action)

    I was curious if there was a way to have two (or more actions) connected to a submit button.  With the action tool, I know I am limited to one.  is it that way if I create a javascript?

    <form action="xxx.php" method="post">
    email: <input type="text"><br>
    <button type="submit">Submit Now</button>
    </form>
    This form action stands for submit button action. It may be either a PHP scipt that is connected to a database or an email account.

  • How to intercept the InCopy 'Save' button action?

    Hi,
    I have an InCopy plug-in that can successfully intercept ‘Save’ actions from the File->Save menu (using an Action Filter).
    But in InCopy there is also a Command Bar that contains a ‘Save’ button. The problem is that I cannot work out how to intercept this button action from within the plug-in code.
    I have tried ‘Spy’ and tracing events and so far there does not appear to be any clue to what I should be intercepting to achieve this.
    (the button action does not appear to trigger a FileSave action... which is what I was hoping it would do).

    Thanks for the reply, I am beginning to think that I need to do something similar.
    Did you disable the button via code?
    I know that the class id (boss) for this button is kSaveButtonBoss.
    Regards
    Malcolm

  • How to set Shortcut keys for button in Apex

    Hi
    Could anyone help me on how to set shortcut keys for buttons in Apex.
    I need to use say ALT + S to submit the page.
    The following thread pertaining to HTML DB refered to use ACCESS key. but that couldnt work in my case.
    Re: operation of the app. with the keyboard
    Any pointers on achieving this would be helpful.
    Thanks
    Vijay

    Hi Vijay,
    I’m afraid you must do it using javascript key listener. You can’t use action() on template based buttons because they are actually not HTML buttons but images with hyperlink.
    Key listener checks which key has been pressed down and invoke some JS function. For example, write this code in page header:
    <script>
    document.onkeydown=keyCheck;
    function keyCheck(e){
         var KeyId = (window.event) ? event.keyCode : e.keyCode;
         switch(KeyId){         
              case 113:
                   doSubmit('SAVE');
                   break;                    
              case 118:
                   alert('Hello');
                   break;
    </script>
    This script will submit page with request 'SAVE' if you press F2 or will show alert message if you press F7. Modify it to your issue.
    Regards,
    Przemek

  • How to pause while document printing and wait for user actions.

    How to pause while document printing and wait for user actions. (for sample: pressed button). Pause after each printed pages.

    Print page by page after considering the user actions!

Maybe you are looking for