Menus, Buttons and AbstractAction

I am using the code below to create both a JMenuBar and JToolBar.
When I clcik on the Menu item "Cut", the println shows cmd: Cut, which is the value from NAME.
When I click on the ToolBar button, the println shows cmd: null. WHY?
Have I failed to do something to enable the event to show Cut?
Could there be a problem in the manner in which I create the JToolBar that initializes the NAME varibale to null?
The SHORT_DESCRIPTION works and the SMALL_ICON is displayed properly for the button.
private Action m_cut = new AbstractAction() {
{     putValue(NAME, "Cut");
     Icon icon = new ImageIcon(getClass().getResource("pics/Cut24.gif"));
     putValue(SMALL_ICON, icon);
     putValue(SHORT_DESCRIPTION, "Cut selected object");
     putValue(MNEMONIC_KEY, new Integer(KeyEvent.VK_U));
     putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(
     KeyEvent.VK_X,InputEvent.CTRL_DOWN_MASK));
     public void actionPerformed(ActionEvent evt) {
     System.out.println("example: " + evt.paramString());

Ok, learned a valuable lesson here. As a newbie, I should not have given up so easily, I only spent an hour trying to figure this out.
I just went back and played with ActionDemo from the Tutorial and it has the same result as I got, cmd: null, when you press a button.
So, this appears to be expected behaviour.

Similar Messages

  • Encore missing library and buttons, and link to retrieve missing funtional content down

    I registered and downloaded the new creative cloud, and apparently there is some content missing in several programs.  In Encore, the library and buttons are missing.  Supposedly the answers is to download additional functional content here..  http://helpx.adobe.com/x-productkb/multi/library-functional-content-missing.html   But the link is down.

    Hi Stephen Porter
    Link is working fine for me ...Don't Worry ..I am pasting the content from the abobe link here :
    Issue
    When you access the Library panel in Adobe Encore, the panel contains no content. Additionally, there is no subfolder named Library within the Adobe Encore application folder on your hard disk.
    When you access the title templates in Adobe Premiere Pro, the title templates are missing.
    When you access the template projects in After Effects, the template projects are missing.
    To the topSolution: Install the CS6 Functional Content
    Creative Cloud and disc product customersDownload and install the functional content for Adobe Premiere Pro and Encore.
    After Effects template projects were migrated to the After Effects Exchange.
    Adobe Premiere Pro and Encore Functional Content is available here:
    Mac OS (1.1 GB)
    Windows (734 MB)Installation instructionsMac OS
    Double-click the .dmg file to mount a disk image containing the installers.
    Choose to install Encore, or Adobe Premiere Pro functional content, or both packages. Open the folder for each package and locate the installer.
    Run "Install.app" to begin the installation process.
    After installing the first package of functional content, the installer ejects the disk image. Remount the disk image to run the second installer.
    Windows
    Note:If you installed the previous functional content packages, it's possible that you have Templates and Textures folders in the Program Files\Adobe\Adobe Premiere Pro CS6\Presets folder. Delete these folders before installing.
    Extract the contents of the downloaded zip file to a convenient location (for example, the Desktop).
    Run the .exe file to create install folders for the Encore and Adobe Premiere functional content installers.
    Navigate to the folder for the content you want to install and execute the installer.
    Electronic Software Delivery (ESD) customers only
    Download and install functional content for Encore, After Effects, and Adobe Premiere Pro. Note: Skip steps 1-6 if you have already downloaded functional content for Encore, After Effects, and Adobe Premiere Pro.
    In a web browser, go to www.adobe.com/membership.
    Sign in with your Adobe ID and password.
    Click View Order History.
    Look at the row with your order number and click Download.
    On the download page, look at the row with the description for function content. For example, for CS5, look for “Adobe Premiere Pro CS5: Download contains additional ReadMe files plus content (menus, buttons, and backgrounds) for Adobe Encore CS5.”
    Download this content using Akamai Download Manager or Alternate Download Method.
    Close Encore and Adobe Premiere Pro.
    (Mac OS) Double-click the .dmg file that you downloaded. On the Adobe Premiere Pro CS5 Content disk image, open the Encore Functional Content folder. Double-click Setup.
    (Windows) There are two files that you downloaded (for CS5, these files are PremierePro_5_Content_LS7.exe and PremierePro_5_Content_LS7.7z). Double-click the.exe file to extract the folders and files. Browse to the Encore functional content folder within the extracted folders. Double-click Setup. Following are detailed steps for Windows: 
    Go to the folder where you have downloaded files from the download page. For example, Desktop\Premiere. 
    Double-click PremierePro_5_Content_LS7.exe. The installation files are extracted to a folder named Adobe CS5. For example, Desktop\Adobe CS5.
    Go to the Adobe CS5\Premiere Pro Family Content Installers\Adobe Encore CS5 Functional Content folder.
    Double-click Set-up.exe. Installation starts. Follow the instructions to complete installation.
    To the topAdditional solution: Install the Resource Central library content
    Download the extra library content
    Choose your language to begin the download:
    English French German Japanese Italian Spanish Korean
    Extract the Library content to the Library folder
    Extract the zip file that you just downloaded to create a .7z file (for example, en-US.7z).
    Extract the .7z file to any convenient location (for example, the Desktop). This step creates a folder based on the language you selected.
    7-zip for Windows (available for download at http://www.7-zip.org/download.html)
    The Unarchiver for Mac OS (available for download at http://wakaba.c3.cx/s/apps/unarchiver.html)
    Copy the contents of the language folder (for example, en-US) to the following location:Windows: C:/Program Files/Adobe/Adobe Encore CS6/
    Mac OS: Applications/Adobe Encore CS6/
    If you choose a custom Library folder location other than the default location, launch Adobe Encore and browse to your custom Library folder location.Windows: Edit > Preferences > MediaMac OS: Encore > Preferences > Media

  • Moving Menus (video) and custom buttons

    Hi guys,
    A very simple one I am sure but still can't find the right way to do it!
    I have a video BG for my menu, that I have created in After Effects.
    I am trying to add custom shaped buttons W alpha channels to the video BG.
    I have tried to import tga's with Alpha followed multiple posts on the forum, but still haven't been able to do it (And I've been compositing with alpha channels for years)
    To the logical person, I would just drag my graphic shape with it's alpha over my background as a button and set it up for highlights using the inspector; for some reason, when I do that, weird results happen.
    Where am I going wrong?
    ThanX a lot
    JM
    PS- I have to get these menus done by tomorrow morning!
    ThanX

    Any update?
    According to the product page, Adobe Reader is "the only PDF file viewer that can open and interact with all types of PDF content, including forms and multimedia".
    However Adobe Reader on the Android STILL does not support interactive PDFs.

  • Operating system Mac OS 10.6.8. Recently upgraded to CS6 Encore. There are no buttons and menus in Library at bottom right of screen, so cannot put a button on the menu in Flowchart

    How can I get buttons and menus in Library in the Encore 6 screen? There are none showing in my just upgraded Encore 6, when they were there in Encore CS5.

    Richard, the link you provided is correct, but it involves a two step process that first gives only a few templates, then requires another download that gives all the library.
    I think most users who ask the question just want the second step, which is all that is presented here:
    Encore Help | Download full library content/functional content
    When I first started recommended that option, I expected users to ask for the "other" templates, but in Encore, that includes "styles" (that do not appear to be used much) and flash export templates (that are also not used much). So I go straight for the full library that I know the users wants.
    The other oddity is for a user upgrading from CS5.5 (EN 5.1), and keeping 5.1 installed, the installer (your link) involves the bizarre step of DELETING the 5.1 library.
    For Premiere CC users looking to get PR templates/styles, they must use your link.

  • Fire fow will not let me use curtain buttons and drop down menus for web sites. i had version 7.01 and upgraded to verson 8.02b and it did it on both of them. and the web pages work find if i use chrome

    Firefox will not let me use curtain buttons and drop down menus for web sites. i had version 7.01 and upgraded to verson 8.02b and it did it on both of them. and the web pages work find if i use chrome

    Do a clean reinstall and delete the Firefox program folder before (re)installing a fresh copy of the current Firefox release.
    Download a fresh Firefox copy and save the file to the desktop.
    *Firefox 21.0.x: http://www.mozilla.org/en-US/firefox/all.html
    Uninstall your current Firefox version, if possible, to cleanup the Windows registry and settings in security software.
    *Do NOT remove personal data when you uninstall your current Firefox version, because all profile folders will be removed and you will lose all personal data like bookmarks and passwords from profiles of other Firefox versions.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    *(32 bit Windows) "C:\Program Files\Mozilla Firefox\"
    *(64 bit Windows) "C:\Program Files (x86)\Mozilla Firefox\"
    *It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    *http://kb.mozillazine.org/Uninstalling_Firefox
    Your bookmarks and other personal data are stored in the Firefox profile folder and won't be affected by an uninstall and (re)install, but make sure that "remove personal data" is NOT selected when you uninstall Firefox.
    If you keep having problems then also create a new profile.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Profile_backup
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • I can't load correctly buttons and menus in my wordpress admin page

    I can't load correctly buttons and menus in my wordpress admin page.
    For example, the buttons about upload images, videos and music are too close together and they don't work.
    In the right and left menues icons appear partially and out of place, sometimes one over the other.
    It works in IE.

    Stan -
    Thanks again for the simple but valuable tip.
    I'm just going to repeat the relevant sections from my previous post with the screenshots this time:
    Below you'll see a snip of how my current folder structure appears. It's identical to yours, except there are no button files in the General Folder. Since you were kind enough to include a file name, I did a search on that specific one and it's nowhere to be found on my hard drive. Hmmm....
    I've seen others remark on how... "challenging".... Adobe's instructions can be sometime. I'll admit to having the same feeling when I was trying to download and install all the content files and the 7-zip stuff. Is the answer somehow that I screwed up that?  Note the 7-zip folder right above the Adobe folder. Here's a screen shot of that expanded folder contents:
    Does that look like you think it should? Have I not installed or extracted something correctly?
    Finally, the only other thing I can think of to give you as much info as you might need is to include a screenshot of where the "Functional Content" stuff got saved. Adobe's instructions about this (if I recall correctly) were that it did NOT have to be installed anywhere specific, but you then had to go into Encore (& Premiere) and through preferences point to this stuff, which I believe I did. But I don't see any button type files in these anyway.
    Other thoughts or advice?
    Thanks!

  • Animanted Menus, Buttons

    Unless I'm missing something it would be great to have sub-menus that fade or slide in and out, as well as fading rollovers on buttons and links. I know there are some tricky workarounds to create similar effects but as far as I can see there's no easy way. Little subtle touches like this much such a difference to the look and feel of a site.

    Because my poor english I don't understand the appearence of your buttons. But you can change the appearance of the buttons by creating a new UI class. I've already done another ButtonUI class for our application. I copy hier, just to see an example without comments because of the language for the javadoc is not english. It follows the appearance of the Metal L&F, the flat style.
    public class CoreButtonUI
    extends BasicButtonUI
    public CoreButtonUI() { }
    private final static CoreButtonUI buttonUI = new CoreButtonUI();
    private boolean defaults_initialized = false;
    protected int dashedRectGapX;
    protected int dashedRectGapY;
    protected int dashedRectGapWidth;
    protected int dashedRectGapHeight;
    protected Color focusColor;
    public static ComponentUI createUI(JComponent jcomponent)
    return buttonUI;
    public void installDefaults(AbstractButton button)
    super.installDefaults(button);
    if (!defaults_initialized)
    String pp = getPropertyPrefix();
    focusColor = UIManager.getColor(pp + "focus");
    dashedRectGapX = UIManager.getInt(pp + "dashedRectGapX");
    dashedRectGapY = UIManager.getInt(pp + "dashedRectGapY");
    dashedRectGapWidth = UIManager.getInt(pp + "dashedRectGapWidth");
    dashedRectGapHeight = UIManager.getInt(pp + "dashedRectGapHeight");
    defaults_initialized = true;
    public void uninstallDefaults(AbstractButton button)
    super.uninstallDefaults(button);
    defaults_initialized = false;
    protected void paintButtonPressed(Graphics g, AbstractButton abstractbutton)
    setTextShiftOffset();
    protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
    JButton button = (JButton)b;
    int width = b.getWidth();
    int height = b.getHeight();
    if (!button.isRolloverEnabled())
    g.setColor(focusColor);
    BasicGraphicsUtils.drawDashedRect(g, dashedRectGapX, dashedRectGapY,
    width - dashedRectGapWidth, height - dashedRectGapHeight);

  • Where are the Buttons and Styles

    Greetings:
    I have installed Encore along with Premier from the downloaded file "ADBEPPROCS4_LS7.7z" I also downloaded "ADBEPPROCS4_Cont_LS7.7z" and the installer EXE. So, the installation completes but when I start Encore, the "Library" pane where, I assume, one should find all of the Styles, backgrounds, menus, buttons, etc., is completely empty. There is nothing there.
    Have I misunderstood something? My understanding was that "ADBEPPROCS4_Cont_LS7.7z" was supposed to contain additional content for Encore.
    Did I do something wrong during the installation or have a missed a step?
    Thank you,
    Mark Roberts,
    Toronto

    Mark,
    Welcome to the forum.
    Your understanding is correct. You should have that Functional Content. Please see Neil Wilke's FAQ Article on the method, just in case something was missed.
    You might also want to check your system, to see if the content is installed, but the Library Panel is just not picking it up.
    Now, this will differ for you, but my Functional Content is in C:\Adobe\Adobe Encore DVD 2.0\Library. Under this will be a series of sub-folders, with the actual Assets, mostly .PSD's, EM, WAV, WMV and some other format files. Later versions will probably have .MOV in lieu of the .WMV Motion Menu files. Also, please remember that your exact Path will differ, as your Encore will probably be in "Program Files\\\\."
    Good luck,
    Hunt

  • Menu Buttons and remote buttons in DVDSP 4.2.1

    Hi
    Sorry, this is the first real DVDSP project for me that involves menus and chapters. I used template from the program. I deleted the 3 bottom buttons and added text in a different place for play and scene menu. I then drew a button box around the text to make the text a button. Got all the navigation set. However there no highlight on the preview so you don't know which button your pushing. I burnt a DVD to test everything.
    I have COD's FCS tutorials but the DVDSP isn't giving me what I need.
    So what did I do wrong? My scene selection menu is all text buttons, no graphics at all.
    Also when playing the DVD on my TV, the menu on my remote didn't work. I had to push the title button on the remote. Am I supposed to map the remote buttons as well.
    Thanks for any help. Be nice to find a video tutorial with basics like scene selection and laying out an highlighting buttons. I"m totally lost here! ;-(
    Allen

    Thanks.. I know it use to be there but could not find it in the new version.. will test it out...
    I've put a snap shot of the project at :
    http://gallery.mac.com/herstik#100124
    Can DVSP4 also allow me no next jump to menus???
    I could only ever set it up to next jump through the movies... for a total of 99 tracks...
    After that I need to make menus into movie tracks.. but these are not navigable...
    Cheers
    Thanks for the help...

  • The firefox button and the panorama view button are both missing in FF4 RC1

    I updated to FF4 RC1 two days ago and noticed that the panorama view button was missing and the firefox button, which is supposed to replace the File, Edit, View etc. menus had not done so. So basically, I'm still stuck with the FF3 style menu buttons.

    The Firefox button is default on Windows Vista and 7, but not on XP. The best explanation I can find was on one of the bug reports.
    "In terms of external consistency, nearly every app on XP uses a traditional menu bar (windows explorer, etc.) While some users will prefer to switch to the Firefox button, I think we should stick to the native interactive style for each platform to reduce overall confusion and allow for an easy transition to the new version."
    There were a few reasons for not displaying the panorama button by default. It can be confusing to those who have never seen it before if they click on the button, and there are some issues concerning memory usage that have still to be sorted out.

  • How to use one pop up window for multiple buttons and input fields?

    Hi Experts,
    I have created a pop up window that will be opened from multiple buttons in the same view. There are input fields that the data will be populated from a pop up window.  How can I set up which button that a pop up window is opened from? I also would like to populate the data from a pop up window to the input field next to a clicked button. There are 6 buttons and 6 input fields that share the same pop up window. I would very appreciate your responses.
    Thank you,
    Don

    Hi,
    Try creating 2 context attributes, one in your component controller and the other in the pop-up view. Bind the attribute of pop-up view to the component controller attribute.
    In the main view, on click of every button set a unique code in the controller's context which helps you in identifying the button clicked. Since u have created a binding to the pop-up view attribute the value flows from the controller.
    In the init method of your pop-up view, check the value of the attribute and based on that display which ever UI elements are required.
    Eg:
    On Button 1 click set value "B1", Button 2  value "B2" etc. In the init() of pop-up view u can check the values and perform the required operation:
    if(("B1").wdContext().currentContextElement().getButtonIdentifier()){
    else...{
    Hope this helps you.
    Regards,
    Poojith MV

  • Adobe Photo Downloader has encountered a problem and needs to close. We are sorry for the inconvenience.  Error Code: c0000005  Address: 76f73ac3     I clicked on the OK button and the downloader closed.     I then tried to download from the organizer. I

    Photoshop Elements 12
    Adobe Photo Downloader has encountered a problem and needs to close. We are sorry for the inconvenience.
    Error Code: c0000005
    Address: 75e32f71
    I clicked on the OK button and the downloader closed.
    I did a search on this error code (c0000005) and there seems to be a workaround but no solutions, why is this? I ask that because this problem seems to be years and years old, going back to at least 2005 (do the math that is 10 years).
    I don't even have the Camera hooked up and I get this error on download.  I redownloaded everything and reinstalled.  I allso saw the AVI issues reported with this proble so i updated Quicktime though without the camera being hooked up when I get this error I didn't expect that to work.  I tried support and they wouldn't help because I bought it in March this year.  Pretty frustrating as I have re-purchased Elements about every 2 years.  I think I might need a new CODEC?   I had this problem on an Earlier version And I seem to remember that being the Fix but this may be something completely different

    I finally found that it was missing a picture so the Catalog was "corrupted".  I just deleted the picture and it started working.
    I hate Adobe and their total lack of support - thanks for nothing Adobe .  Also get this - they offered me to upgrade to 13.0 ( My 12.0 is only 6 months old  but they still don't support it on errors.  Only install errors!
    I have upgrade and repurchase this product 4 times now.  I will find something else next time!

  • We can not clear all recents(30 recents call).  When Tango show "No recents call". We touch other buttons and come back to Recents button again.  It still show 30 recents call.

    We can not clear all recents(30 recents call).  When Tango show "No recents call". We touch other buttons and come back to Recents button again.  It still show 30 recents call.

    No one here is going to do anything about it. Send feedback to Apple.
    http://www.apple.com/feedback/ipad.html
    Basic troubleshooting steps. 
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 

  • My ipad will not start.  It is 1 year old...I have tried holding the two buttons and nothing..I have it connected to my desktop and it will make a ding noise but nothing comes up on the screen.

    My ipad will not start.  It is 1 year old...I have tried holding the two buttons and nothing..I have it connected to my desktop and it will make a ding noise but nothing comes up on the screen.

    Frozen or unresponsive iPad
    Resolve these most common issues:
        •    Display remains black or blank
        •    Touch screen not responding
        •    Application unexpectedly closes or freezes
    http://www.apple.com/support/ipad/assistant/ipad/
    iPad Frozen, not responding, how to fix
    http://appletoolbox.com/2012/07/ipad-frozen-not-responding-how-to-fix/
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    Black or Blank Screen on iPad or iPhone
    http://appletoolbox.com/2012/10/black-or-blank-screen-on-ipad-or-iphone/
    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
     Cheers, Tom

  • I have tried loading 3 different cds that I just bought into Itunes and I click the import cd button and it goes through the motions of importing the cds, but when I go to my library none of these cds is there.  Help, please!

    I have tried loading 3 different cds that I recently purchased into Itunes.  I click the import cd button and Itunes goes through the motion of copying and importing the cds, but the songs are not in my music library.  I have searched everywhere to find where these cds might be, but to no avail.  Could really use some help here.  Never used to have this problem.

    Are they in the relevant artist & album folders when you look via Windows Explorer. If so something may have gone wrong with the index of the Music playlist. Download the current iTunes Free Single of the Week. I know it sounds odd, but it should fix the problem.
    If that doesn't work close iTunes and delete the hidden file sentinel from inside the main iTunes folder, then start iTunes again. It should run a consistency check when it starts up.
    tt2

Maybe you are looking for

  • System exception while deleting the file from app server in background job

    Hi All, I have a issue while the deleting the file from application server. I am using the statement DELETE DATASET in my program to delete the file from app server. I am able to delete the file from the app server when i run the program from app ser

  • Yet another Mac Book Pro (A1211/2.33 GHz) freeze problem

    Hi everyone, I have yet another freeze mystery, if people fancy having a crack at it. I had this notebook for about 4 and a half years and it served me well until 2 months ago. It is a 15' MBP from December 2008 (A1211) with a 2.33GHz Core 2 Duo and

  • SELECT,UPDATE, DELETE With JDBC Adaptor

    Dear All, I need to execute few Select, update and Delete statement by using JDBC Adaptor. Suppose While select statement no records selected. During Update no records exsist with specified key so no update possible. During delete if no record found

  • How can i stop ios 6 from downloading

    Hello i started downloading ios 6 and my friend says it makes your ipod slow how can i stop it and keep it at 5.1.1

  • The number range is not maintained for Object/Year: J_1ILIC/

    Hello, I am facing the problem as After Created the No range object j_1ilic for excise bond, for capturing the CT3 form in J1ILIC01 and maintain the required fields in J1ILIC01, following error is occuring "The number range is not maintained for Obje