Trouble with properties file (setMnemonic())

I am trying to internationalize my code and I haven't had much trouble except with my JMenuBar. How do you use the setMnemonic(); method correctly so that it loads from the properties file? This is what I have:
        JMB = new JMenuBar();
        menuFile = new JMenu(props.getProperty("mystuff.file"));The following will not work.
        menuFile.setMnemonic(props.getProperty("mystuff.F"));

it expects a character,Did you read the API. It says:
This method is now obsolete, please use setMnemonic(int) to set the mnemonic for a button.
but I don't know how to do the syntax to make it a character from the properties file What Object do you get from the Properties file?

Similar Messages

  • Troubles with xmp files not loading...

    I'm having troubles with xmp files not loading with images but are present in the image folders. does anyone know why this is happening and if there is a way to fix this. Also when trying to load the xmp individually they are grayed out and unable to load. I have tried this on different machines (Macs) and still no luck. Any help would be greatly appreciated in this issue.

    > The information contained in the XMP file is stored in the DNG file so there is no need for a separate file.
    Aww, yuck!! That's a real drag...
    When editing lots of files (yesterday's shoot produced 8GB) I back everything up to off-line storage and then, after doing all my edits and crops in ACR, I only have to copy over the small XMP files which takes no time at all.
    So if I re-edit the DNG with ACR I have to re-copy ALL the files again to the off-line storage.
    I used to sometimes even save 2 versions of the xmp files when I needed 2 different crops of the same images, such as doing a wide screen 'cinema' crop for a corporate client's Intranet presentation of their event, as well as more standard crops to be used for their newsletters.
    Guess I won't be using DNG any more..
    Thanks for the help Kees :-)
    Russell

  • I am having alot of trouble with svg files is there some one well versed with adobe svg file

    I am having alot of trouble with svg files is there some one well versed with adobe svg file

    Clearing out cookies while in gmail helped me to get all functionality back. One of those sites must have messed with gmail. Thanks so much for the help.

  • Having trouble with wav files and sample rates

    Hi ,I am having trouble with wav files and sample rates .I have been sent multiple projects on wav as the main instrumental ; I wish to record in 48.000kHz .Now comes the problem.When I try to change the project to 48k It seems to pitch up the track.I can't have them send the logic/project file as most have outboard synths,different plug ins etc.This particular case the producer has recorded the synth task in 41.000 kHz .My successful outcome would be to be able t create a project file in 48 kHz .And NOT pitch up whne I add the instrumenta wav file .Any help would be gratefully recieved,this is my first post so any mistakes I may have made go easy 

    You'll have to convert the actual synth audio file file that the producer gave you to 48kHz. You can do this in the audio Bin in Logic.

  • Problems with properties files and war files in weblogic 5.1

              I work with WebLogic 5.1 and I'm trying to deploy a web application which gets
              a properties file. If I deploy it as an expanded directory hierarchy (with the
              properties files into WEB-INF/classes) I have no problems. While deploying it
              by a .war file I get this message: "en_GB java.util.MissingResourceException:
              Can't find resource for base name Agent, locale en " (the getBundle() method is
              trying to get an english property file). What could I do? Is it really a weblogic
              5.1 bug?
              Thanks,
              David
              

    This issue comes up repeatably. It's a real bug.
              I believe this problem was fixed in a 5.1 service pack, but I'm trying to
              find out the exact disposition of the issue. Noone seems to be complaining
              about this under 6.x, so a fix seems to have been made, the only question is
              whether or not it got back-ported to a 5.1 service pack.
              Gary
              david <[email protected]> wrote in message
              news:3ac4a39a$[email protected]..
              >
              > I work with WebLogic 5.1 and I'm trying to deploy a web application which
              gets
              > a properties file. If I deploy it as an expanded directory hierarchy (with
              the
              > properties files into WEB-INF/classes) I have no problems. While deploying
              it
              > by a .war file I get this message: "en_GB
              java.util.MissingResourceException:
              > Can't find resource for base name Agent, locale en " (the getBundle()
              method is
              > trying to get an english property file). What could I do? Is it really a
              weblogic
              > 5.1 bug?
              > Thanks,
              > David
              

  • Trouble with extracting file for Flash Professional cs5.5 because  of error occurring??

    Im having trouble extracting the file as it has fully downloaded but then it comes up with a warning box which says The following disk images could not be opened and then an image and reason with this below it FlashPro_11_5_LS1.dm error -4960 not to sure what to do about this??

    Which operating system are you using?  If you look in the Adobe Download Assistant is it still downloading the install files?

  • Troubles with .m1v Files

    Hi All
    I am having trouble working with .m1v files in Adobe Bridge CS3 2.1.1.9.
    I exported the .m1v (video only mpeg files) in Adobe Premiere Pro with the Adobe Media Encoder.
    But now, when I try to add metadata to these .m1v files by right clicking on one- the right click menu no longer has file info as an option. And further, under the file menu- file info is grayed out when a .m1v file is selected. I also tried selecting the .m1v file and clicking in the IPTC core dialogue box, but when I do this, Bridge gives me an error box that reads: "This property cannot be modified"
    Any Ideas???

    It's simpler to just reinstall the OS, followed by running Software Update. Reinstalling shouldn't take too long and only replaces the system components and the basic Apple apps, leaving all settings and other files alone.

  • Trouble with music file

    I'm trying to listen to a music program which they place in an archive. When I click on the "Window" icon it opens to the following window. I've chosen iTunes and Real Player without success.
    http://i36.tinypic.com/2ptwebn.png
    After choosing the above applications I get the following window.
    http://i38.tinypic.com/25zpao3.png
    Any suggestions, or is not capable of running on a mac
    The web site it comes from is below:
    http://www.kuow.org/swing_years.php

    Hello Frank,
    In Firefox, try right-clicking or Control-clicking on the Windows link -- the one below "Available 12:05 a.m. Sunday until the next show" is the one I used. When the contextual menu appears select "Save Link As..." A Save As window should popup with "swingyears.asx" already populated, along with your default Save-to location, which might be the Desktop. Go ahead and hit Save.
    You should now see a downloaded 4KB .asx file on your Desktop (or in your default download folder). This file points to the archived stream. Try double clicking on the file to open it using your default application for the .asx file type. If double-clicking on the .asx file fails, try right-clicking or Control-clicking on the file and select Open With > VLC. You can also try right-clicking on it and choose Open With > QuickTime Player and see what happens.
    I had no trouble opening the file using QuickTime Player, Windows Media Player, RealPlayer, or VLC. Good luck!
    Regards, Andrew99

  • Building EJB with properties file

    I have a EJB project with a properties file in BEA Weblogic Workshop. After building
    the project, the properties file is not included in the resulting JAR file. As
    a result, the resource bundle cannot get the property file and an exception is
    thrown. Is there any method to solve this problem? Thanks.

    I had similar problem. We were using ANT so all I did was to copy all the properties
    file to each
    ejbJar files and war files as well.
    copy the properties file into the top level dir of your ejb jar file. If you do
    jar tvf adsfEJB.jar you will see :
    weblogic-ejb-jar.xml in meta-inf
    wjb-jar.xml in meta-inf
    Mainifest.mf in meta-inf
    ad.java in com/.../.../....
    xxx.java in com/../...
    abc.properties in . (at the top level of the jar file)
    "Neville" <[email protected]> wrote:
    >
    I have a EJB project with a properties file in BEA Weblogic Workshop.
    After building
    the project, the properties file is not included in the resulting JAR
    file. As
    a result, the resource bundle cannot get the property file and an exception
    is
    thrown. Is there any method to solve this problem? Thanks.

  • Trouble with SWF files in Keynote 3

    I am working in Keynote for the first time and having trouble bringing in a .swf file. I am having to use a Windows XP box to build the flash file and then moving them over to a Mac to drop into Keynote. I have Keynote 3 and have QuickTime Version 7.0.4 installed. I'm running OS 10.3.9.
    When I drop the .swf file onto the slide I am getting a small filmstrip looking icon with a question mark on it. Any ideas on what I have done wrong and need to do?
    I have published out with Flash using Flash Player 8, 7, and 6 settings. Nothing works.
    second question after I resolve this one is can I make the flash background transparent?
    Thank you for any help or assistance.

    Actually, some of the newer formats work, but it's hit or miss. I know you have to make sure that you don't havea compress movie checked when you save out as a swf from Flash, that seems to make more of the newer versions work with QT and Keynote.

  • Classpath problem with properties file in jar

    Hi,
    I am seeing a classpath error for my setup, as follows...
    A defaultFieldIDs.properties exists with numerous entries:
    projectID=10630
    issueTypeID=80
    closedStatusID=6My Spring applicationContext.xml file contains the following:
    <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
              <property name="locations">
                   <list>
                         <value>classpath:sqlScripts.properties</value>
                         <value>classpath:defaultFieldIDs.properties</value>
                    </list>
              </property>
              <property name="ignoreUnresolvablePlaceholders" value="false"/>
         </bean>     
    <util:map id="defaultQueryParameters">
              <entry key="projectID" value="${projectID}"/>
              <entry key="issueTypeID" value="${issueTypeID}"/>
              <entry key="closedStatusID" value="${closedStatusID}"/>
              <entry key="statusFieldName" value="${statusFieldName}"/>
              <entry key="numberOfExpenseLinesFieldID" value="${numberOfExpenseLinesFieldID}"/>
         </util:map>My compiled jar contains the above properties directory in its root directory, and is placed in the lib directory of the application
    However, when I start my application I get the following error:
    Invalid bean definition with name 'defaultQueryParameters' defined in null: Could not resolve placeholder 'projectID'
    What is going wrong here?

    Then presumably that jar file isn't in the classpath for your application. Perhaps just dropping it into the lib directory isn't sufficient.
    You didn't say anything about what kind of application it is. For web applications, all jars in the WEB-INF/lib directory are in the classpath. But you didn't say this was a web application and you didn't say you put it in the WEB-INF/lib directory. So if you don't care to put sufficient information into your posts, I recommend you read up on the rules for whatever type of application you have, in particular the rules for how to set its classpath.

  • I am having trouble with attaching files in my gmail

    After downloading the most recent version of Firefox I began having trouble attaching files in my gmail. I am now unable to attach files and get getting the same attachment failed message.

    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    1. Clear Firefox's Cache
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Offline Storage : "Clear Now"
    2. If needed, delete the site's cookies here (this will log you out)
    While viewing a page on the site, right-click and choose View Page Info > Security > "View Cookies"
    Then try reloading the page. Does that help?
    Some sites use a Flash-based uploader. Have you noticed any other issues with Flash (audio/video issues)? There are some compatibility issues between the latest Flash player and some Firefox add-ons or settings. Could you see whether anything in this article helps: [[Flash 11.3 doesn't load video in Firefox]].

  • I am having trouble with pic files...

    My 2010 pictures are on an external hard drive and when I try to open them on my iMac...there is an icon of the iPhoto  preview and the file number but says it is empty when I try to open it...
    I have no idea what I have done! its like a years worth of pictures...
    the other weird thing is that there are thumbs (I thought I could delete them when I brought my files from my pc to my iMac).
    I don't use the iPhoto for my pictures...don't think that would matter...I use Lightroom for organizing.
    I am a bit freaked out so I may not be communicating well...I am going to take a screen shots..
    If anyone knows what I can do about this...I would appreciate it very much...
    Tammy

    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    1. Clear Firefox's Cache
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Offline Storage : "Clear Now"
    2. If needed, delete the site's cookies here (this will log you out)
    While viewing a page on the site, right-click and choose View Page Info > Security > "View Cookies"
    Then try reloading the page. Does that help?
    Some sites use a Flash-based uploader. Have you noticed any other issues with Flash (audio/video issues)? There are some compatibility issues between the latest Flash player and some Firefox add-ons or settings. Could you see whether anything in this article helps: [[Flash 11.3 doesn't load video in Firefox]].

  • Trouble with mp3 files on iWeb '08

    Hi, I'm new to iWeb, I'm trying to add several mp3 files (each no longer than 2 minutes) on several different pages using the drag and drop method from the media browser. I have no problem adding one or two to a page, but if I try to add more, I run into a problem. When I view the published page and try to press play on the iWeb quicktime player for the last mp3 added to the bottom of the page, nothing happens (the other mp3s on the page work fine). When I delete the file from the page and try to add it again, the published site now shows a little question mark with a circle around it. If I try and move it to a different part of the page and then view the published site, the question mark will still appear in the same place as it was before I moved the player. I've checked the mp3 files and they work just fine if they're on their own page. Am I having this problem because there's a limit to the amount you can add per page, or is it something else?
    Thanks for the help...
    -Damon

    See my tutorial Toad's TutorialsManaging an iWeb site from multiple Macs with Dropbox. It's all automatic once you have Dropbox installed on both computers. The only caveat is you can be working on the site from both computers at the same time.
    OT

  • Trouble with WMV files in Premiere

    Hello,
    I searched first but didn't find my issue or really old discussions came up.
    Basically I recorded some screen captured tutorials with Microsoft Expression.  Since I'm using the free version when I'm done my only option is to export a WMV file.  It won't let me pick MP4 for example.
    Anyway I exported fairly lightweight files from Expression, 10,000 kbps, 29,97 fps.  In total I'm only talking about 243 MB of footage.
    These files play perfect in Windows Media Player and completely aweful in Premiere Pro CC.  This is on a Dell 7600 Nvidia Maximus setup with Mercury CUDA playback enabled.  It should fly with only one video track playing.  On other projects I've used DSLR 1080p footage with AE linked comps in the timeline with heavy effects and I could still play back in realtime.
    I'm currently rendering a proxy file so that I can actually work and see footage play back.  Typically my render times are great but with the WMV files it's terrible.  It's going to take 4.5 hours to render 22 minutes of just video.  No crazy AE comp or anything like that.
    So anything I can do to fix this?  i see myself doing more of these in the future and this workflow is horrible and a huge waste of time.  There's gotta be a better option.
    Thanks!
    Rich

    Aweful as in 30fps playback in WMP and 0fps playback in Premiere.  The video will play choppy for the first 1 or 2 seconds then stop updating alltogether.  Only when I stop playback (and after a several second wait) will the video refresh.
    Again, plays 100% perfectly in WMP.  Files are small, 50-100 megs each.  Only in Premiere do they not play correctly.
    To even work I've had to create proxy videos in another format.  That wouldn't be that big of a deal but the slow playback affects Media Encoder too.  Encoding 250 megs, about 25 minutes of footage in a low bit rate, took about 6 hours.  Normally with another format that would only take a couple of minutes.
    Kinda funny / sad.  My video was full frame until I tried uninstalling that update described in the other thread.  Now it's half frame, ha ha.  Now to try and reinstall that update that broke their system in the hopes that it fixes mine.

Maybe you are looking for

  • Upgrading from Powerbook G4 to Macbook Pro. What to expect in HDV?

    I have Final Cut Pro 5.1 I do alot of editing in HDV. Although editing HDV on my Powerbook in FCP is possible, it's a little slow and rendering times are a little painful. What kinds of speed/rendering improvements should I see if I purchase one of t

  • Stop Depreciation of an Asset

    Hi Gurus, We have an asset that was capitalized last March 2011with useful life of 3years.  To be specific, the item is a television set. Goods receipt was transacted last March for this asset with ttype 120 with an entry of Dr. Asset and Cr. GR/IR C

  • Problem to accept call.........

    Frnds I have a problem with my 5800 xpressmusic plz suggest me to solve the prob...... I can't accept any call, can't stop alarm, can't stop reminder, can't stop to do note, can't unlock phone by tapping the unlock button when keypad is lock in versi

  • Vendor creation using fm 'Vendor_insert'

    Hi experts, I want to create vendor using the FM 'VENDOR_INSERT'. But the problem is I am unable to know what are the required fields to be given in the import structures (ie LFA1,LFB1,LFM1) . Could you please suggest the way to run this FM with mini

  • Upgrading rac database

    Hello i am using linux 4 os and oracle 10g(10.2.0.1) version now i am going to upgrade oracle 10g(10.2.0.4) and database is on san.I am using ASM for storage and 2 node rac.My ASM,CRS,RDBMS homes are different that asm and adbms home are different.No