JButton's properties don't change!!

Hi!!
Here's the sample code
TestLabel() {
     super("Go-Back-N Simulation");
     getContentPane().setLayout(new GridBagLayout());
     GridBagConstraints gbc = new GridBagConstraints();
     gbc.fill = GridBagConstraints.BOTH;
     gbc.weightx = 0;
     JPanel bottomPanel = new JPanel();
     pauseButton = new JButton("Pause");
     pauseButton.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
//ANIMATION STUFF HERE
     JButton sendButton = new JButton("Send");
     sendButton.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent e) {
                        pauseButton.setText("New Text");
     bottomPanel.add(sendButton);
     bottomPanel.add(pauseButton);
     addUsingGBL(bottomPanel, gbc, 0, 8, 3, 1, 0.0);
private void addUsingGBL(Component component, GridBagConstraints gbc,
                    int x, int y, int gridwidth, int gridheight, double weightty) {
}pauseButton's text does not change when I press the sendButton.....Why? I tried revalidating, repainting pauseButton and also the parent frame....still does not work....
Thank you
Priya

Then it should work for yourOtherButton.setText("new text"); // the method is fine
Work through your code - have you declared it twice for instance?

Similar Messages

  • Property Metadata don't change when deploying project

    Hi,
    1.) I used this help http://help.sap.com/saphelp_nw2004s/helpdata/en/44/2dff5a13363f0ae10000000a114a6b/content.htm
    to create my own commands, uicommands, etc.
    2.) I also created manually in: System Administration => System Configuration => Knowledge Management => Content Management => Global Services => Property Metadata my own properties to extend the userdetails like described in http://help.sap.com/bp_epv170/EP_US/Documentation/How-to/KM/Extending_User_Details.pdf
    This all works perfectly.
    Instead of creating and exporting all my Property Metadata manually I exported them (I have now a XML) and integrated them into my Project => see 1.)
    I also found this post: https://www.sdn.sap.com/irj/sdn/message?messageID=3533233
    So, when I deploy my project and the properties aren't existing the are created immediately. BUT when I change something in the property metadata XML in my project and I redeploy the project the existing property doesn't change.
    I don't want to delete everytime all my properties to make changes active.
    With uicommands I don't have this problems. When I change there something I can deploy the project, new uicommands will be added and existing ones will be updated. Unfortunately not by property metadata.
    Do you have any ideas why this happens?
    Regards,
    Stefan

    Hello Stefan,
    you might have a versioning problem when merging the new KM configuration from your project with the existing configuration in KM. That would explain why everything works fine if you delete the existing settings first but it won't if you try to overwrite the existing settings!
    KM merges the configuration when you deploy a PAR file with configuration. You need to tell the system that the settings in the PAR file should replace the existing settings. This can be done by including the file export_cm_mapping.xml into your project. (At least that is the name of the file in NW04). You can get this file by exporting some configuration from your KM system with the KM export functionality and unzip the resulting configarchive file. It should contain the correct export_cm_mapping.xml file. Just take this file and put it into the src.config directory in the same path. (For NW04 that is: src.config/install/data/system/command/export_cm_mapping.xml.)
    Hope this helps,
    Martin

  • Can anything be done to change the white on grey color scheme in Bookmarks?

    I just upgraded my Mac Book Pro to OS X Version 10.9.1. I was horrified when I got a look at what Apple has done to Safari!  I have macular degeneration - which means that my eyesight is slowly fading away.  Bookmarks was especially difficult because all of the bookmrks are shown with a white on grey color scheme.  And when the "new" Apple color schemes are not white on grey - they are grey on white.  I simply can NOT see anything which is white on grey.  OR white on ANY light color.  In order to be able to see anything, I need to have contrast.  For example, as I type on this page, the scroll bar is grey on white.  It has become almost impossible for me to find the scroll bar on most pages.  Previously, my scroll bars where usually bright blue.  I can see bright blue on white - but NOT grey on white.  I can read white letters on BRIGHT or DARK Blue -but NOT light blue. 
    Apple has made SO many strides in makes computers accessable to those of us who have no other choice except to deal with disabilities!  Can ANYTHING be done to change the white on grey color scheme which Apple has adopted throughout its system? 
    Now, in order to use my Bookmarks, I have to go to my Edit Bookmarks page.  Even that solutation is not all that helplful, because the lettering on the Edit Bookmarks page is so small. 
    Also - I discovered that the "new" Mail pages had the same problem.  For the most part, the "innovations" in mail make all of the pages too busy for me to be able to sort my mail or keep track of it in any way.  I had to choose to return to the "classic" mail option to be able to get a reasonable facsimile of being able to handle my E mail accounts! 
    And, of course, once again, the scroll bar on my mail accounts is also grey on white - so it takes a lot of searching for me to just find the scroll bar when I need to scroll down in an E mail!
    ALSO - I was equally horrified when I discovered that the Upgrade to Version 10.9.1 made it impossible for me to visit some of my favorite music pages - most of which use MIDI files!  I can no longer hear any of my favorite MIDI music pages!  I TUNES, of course, is in love with people like Lady Gaga - the type of performers - and performances - which have no relevance to older Americans. 
    I do volunteer work at a local Assisted Living facility and one of the greatest advances we have been able to make with Alzheimers patients is the way in which Senior Citizens respond to music from their time period.  Unfortunately, most of the music which senior citizens prefer to listen to is music which has been preserved in MIDI pages.  A few weeks before I "upgraded" my Mac Book Pro - I could take my computer over to the local Assisted Living Facility and play music from Hymn Time's Cyberhymnal or the Angelwinks tunes - but I can NO longer do that with the current Apple "upgrade" in version 10.9.1 - because the music from those MIDI pages can no longer be heard by anyone!  The page comes up and you can see the writing - but no one can hear any of the music.  We understand that a group in Switzerland has been working on an APP for I Phones which DOES make MIDI files accessable - so surely it should be possible to provide a way for Version 10.9.1 users to listen to MIDI files, such as those provided by Hymn Time's Cyber Hymnal or by Angelwinks! 
    You will notice that I changed the font for this to Arial Black - primarily because I could NOT see what I was writing when I first began - because, once again, the color scheme was grey on white. 

    Hi Grandma,
    18 point Helvetica Bold .
    There is an Apple Support Community called Vision:
    https://discussions.apple.com/community/accessibility/vision?view=discussions
    I shall ask the Moderators (Hosts) to move your discussion to that forum.
    Kind regards,
    Ian.

  • CUCM 8.6.2 - IP Phone 7940/7960 don´t change the time when finish DST

    Hi Guys,
    My Customer is having the problem about DST (date summer time) specifically about IP Phone 7940 and 7960. When finish the date summer time this model don´t change the time, only after restart logical or phisical. I simulated the problem in the CUCM with the same version 8.6.2.22900-9 and the problem too occur. I did the following procedure to try solve the problem:
    1) Put the lastest version firmware about IP Phone and didn´t worked;
    2) Put the lastest version dst and didn´t worked;
    I search about any bug related and didn´t found nothing.
    Any have idea about this?
    Thanks,
    Wilson                  

    Hi Wilson,
    Try installing TZ updates with steps in the document:
    http://software.cisco.com/download/release.html?mdfid=283782839&flowid=45898&softwareid=282074298&release=8.6%282-2013d%29&relind=AVAILABLE&rellifecycle=&reltype=latest
    Please find the link for EOS and SW Maintenance for 7960
    http://www.cisco.com/en/US/prod/collateral/voicesw/ps6788/phones/ps379/end_of_life_notice_c51-574072.html
    Hope this helps!!
    Regards.
    Tirtha

  • Speakerphone problem - lost voice from speakerphone while playing music or gaming youtube, while call or voice recording playing - all works fine, so speakerphone is working but not on all apps. hard reset done - no changes

    or gaming youtube, while call or voice recording playing - all works fine, so speakerphone is working but not on all apps. hard reset done - no changes.
    iphone 4
    SOLVED plugin to charger solved it - so problem was with contacts -- no idea why - phone is new - no water - no havy dust - usual using  
    hope will never return. Thanks

    We checked it with an iPhone 5 in house multiple times and could not reproduce this Problem. Must be something specific to your device. Maybe your speakerphone volume is turned down completely?
    Follow the latest Skype Community News
    ↓ Did my reply answer your question? Accept it as a solution to help others, Thanks. ↓

  • Some visited links don't change color

    on some of my hyperlinks (that go to other pages in the same
    file) don't change color after they've been visited... example:
    they start out regular "hyperlink" blue... then after visiting they
    should change (e.g., to purple) but they don't.
    I read in the knowledge base that for popups, the color WON'T
    change because of a javascript issue... however, the "non changing"
    links are not always for pop ups... as stated above.
    Any ideas?
    Thanks...
    kb

    Thanks, Dimaxum...I've already read this thread, and every other thread about the subject on the internet. I am totally convinced this is a Safari issue because the links have always changed color for me using FireFox...always.
    I'm sure there could be other situations where something else caused this problem and it was apparent on both browsers, but not in my case.
    On my wife's Mac this is not a problem on Safari...it's something in my User folder causing it. For now I've just made FireFox the default browser and I'll keep searching. Or the next time I wipe my hard drive and rebuild everything (I do this every six months or so...old Windows habit that isn't necessary) I'm sure it will work fine then.
    I was at the Apple store yesterday and tried several Macs there...they all worked fine. This is just somethiing on my machine.
    Thanks for your help.
    Larry

  • Visited iPad 3 search links don't change color in Safari

    The iPad 3 (iOS 5.1) Safari search links returned from a Yahoo or a Google search don't change color after visiting them like they do on the iMac. Is this a known behavior?

    Choose Settings > General > Reset, then tap Reset All Settings.

  • Can compression be done without changing YUV by using QuickTime SDK?

    Hi,
    I am using QuickTime 7.3 SDK on Mac OS 10.6.1.
    I was trying to compless in picture an aplication, using Quicktime SDK.
    Can compression be done without changing YUV of picture by using QuickTime SDK?
    Can compression be done without changing YUV of picture by using anoter soft?
    If it is possible to do , it teaches to me the soft.

    Hi,
    I am using QuickTime 7.3 SDK on Mac OS 10.6.1.
    I was trying to compless in picture an aplication, using Quicktime SDK.
    Can compression be done without changing YUV of picture by using QuickTime SDK?
    Can compression be done without changing YUV of picture by using anoter soft?
    If it is possible to do , it teaches to me the soft.

  • Photos recently changed from sequential numbering to date/timestamp.  When I import into apps for editing they are out of order.  What can be done to change back to sequential numbering instead of date/timestamp?

    Photos recently changed from sequential numbering to date/timestamp.  When I import into apps for editing they are out of order.  What can be done to change back to sequential numbering instead of date/timestamp?

    The date information is taken from the camera which writes it to the file. This needs to be set to the correct date and time in the camera itself.
    The order the images are shown in the Library mode is set by clicking on the sort button in the tool bar, which if not showing can be activated from view, tool bar. There are different sort orders that can be applied including sorting by file name. You can also sort by dragging the images to the order you wish them to appear in by selecting user order.

  • Hyperlinks don't change colour

    I'm a real newbie with iweb, don't really understand the tech stuff. However, I made a site based on a template with some custom made texts which I made hyperlinks to the other pages. Thing is, when the mouse goes over them they don't change colour. When I made a previous experiment, on a diff template, they worked fine. The hyperlinks on the template change colour fine but not my custom ones.
    Also, all the links work on the design page but when I preview in Safari, one doesn't!

    Tod ~ Yes, you would have to upgrade to iWeb 2 in iLife '08. Then in Inspector's Link tab, you'll have a Format tab via which you can specify the colors of your hyperlinks. This video tutorial shows that Format tab, although its use is not demonstrated:

  • Why don't changes made in camera raw with the adjustment brush carry into photoshop?

    Why don't changes made in camera raw with the adjustment brush carry into photoshop?

    Using the Open button in ACR to get to PS doesn’t create a PSD or a TIF, it just transfers the image in memory. 
    As has been asked, already, what are the precise steps of your workflow starting with your painting the adjustment brush strokes in ACR and seeing the image in PS without the strokes, and what exact versions of PS and ACR are you using? 
    Use Help / About Photoshop..., and Help / About Plug-ins... / Camera Raw...

  • Software Update don´t change of date

    The Software Update don´t change the date, later updating, the date is the same Friday October 2, 2009 are solution for it ?

    jramfel wrote:
    The Software Update don´t change the date, later updating, the date is the same Friday October 2, 2009 are solution for it ?
    Do you mean the Date & Time panel of System Preferences? Do you have the Time Zone set appropriately? Have you selected "Set data and time automatically"? Do you turn it off and disconnect it from power between these happenings?
    Mactracker doesn't list a "MacBook Pro 2.6". Is that the actual model of your MacBook? How old is it?

  • What modifications to be done after changing the Computer name..?

    Hi all...
    What are the modifications to be done after changing the Computer name..(Hostname) to connect the oracle. When i am restarting the TNS Listener manually, it is giving Error 1067.
    Please tell me, what are the modifications to be done, if i change the computer name.
    Thanks in advance,
    Pal

    You need to change your hostname/ip in listener.ora

  • One of these properties was illegally changed: AllowCreate, ExclusiveCreate

    hi
    i'm trying to add some sequence configuration to my entity store, while using DPL as API:
    public void startup() throws Exception
    File environmentHome = new File(homeDirectory);
    EnvironmentConfig environmentConfig = new EnvironmentConfig();
    StoreConfig storeConfig = new StoreConfig();
    environmentConfig.setAllowCreate(true);
    storeConfig.setAllowCreate(true);
    storeConfig.setReadOnly(false);
    // Open the environment and entity store
    environment = new Environment(environmentHome, environmentConfig);
    entityStore = new EntityStore(environment, "EntityStore", storeConfig);
    SequenceConfig uidSequenceConfig = new SequenceConfig();
    uidSequenceConfig.setInitialValue(initialUIDSequenceValue);
    uidSequenceConfig.setWrap(false);
    uidSequenceConfig.setAllowCreate(false);
    uidSequenceConfig.setExclusiveCreate(true);
    // entityStore.setSequenceConfig(UserLocation.UID_SEQUENCE_NAMESPACE, uidSequenceConfig);
    userLocationDA = new UserLocationDA(entityStore);
    the moment i try to set the sequence config on the entity store i get the following exception:
    java.lang.IllegalArgumentException: One of these properties was illegally changed: AllowCreate, ExclusiveCreate
         at com.sleepycat.persist.impl.Store.setSequenceConfig(Store.java:1137)
         at com.sleepycat.persist.EntityStore.setSequenceConfig(EntityStore.java:703)
    no matter which combination of AllowCreate and ExclusiveCreate i use on the SequenceConfig. what am i doing wrong?
    thanks
    peter

    I'm missing something. You shouldn't have to set any of these properties. Did you call getSequenceConfig before calling setSequenceConfig?
    --mark                                                                                                                                                                                                                                                                                                           

  • Keychain- "Don't Change" or "Change All" option

    Maybe I am narrowing down my publishing issue...
    I found a file that says"domain". When I opened it- it ask me if I want to change all or don't change my key chain--
    I am having issues publishing to my old website-- www.adventureiq.com
    Which option do I select? I think when I installed I selected "Don't change" and this may be why I am having publish issues

    You can open Keychain Access from the Finder/Go/Utilities menu.
    Run "Keychain first aid" from the "Keychain" drop down or create a new keychain from the "File" menu if first aid doesn't work.

Maybe you are looking for

  • Time machine back up to shared external drive

    We have 4 computers running leopard, all on an airport wireless network. If I have an external hard drive attached to the airport extreme base, non of the computers know that it exists. If I attach it only to one computer directly, via USB, then the

  • Connecting iPod to 5.0 GHz wi-fi

    I know the iPod 4G can attach itself to a wi-fi network running 2.4 GHz, but can it access a 5.0 GHz wi-fi.   I'm having a difficult time trying to find the answer to this question.  Anyone out there with this info handy?  Thanks!  (Runner404)

  • I had a problem to capture The Panasonic AJ-1400HD  to CS5 Premiere

    hi dear every one i had a problem to capture The Panasonic AJ-1400HD  to CS5 Premiere , the time code running but there are no video picture . some one help , please...............

  • Fetch Netvalue and Sales order No.

    Hi Friends Kindly help me to Fetch 'Sales Order Number' and 'Net Value of the Sales Order in Document Currency' before Saving the Sales Order since i need to store in custom table. Thanks in Advance

  • Function Modules to update Funds in TPM

    Hi All, Does anyone know what functional modules does SAP provide to update the Funds in Trade Promotion Mgt solution? Please suggest ! Thanks & Regards, Neeraj Sharma