Want to change button background using UIManager for WindowsLookAndFeel

Hi first i used ocean look and feel in my application. i used UIManager to change to color of the button. so all the buttons colors are change. fine
But if i change the look and feel to windows look and feel it shows the windows look only. i sant to change the color to white. how?

de to set the look and feel:
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");code to change button property
UIManager.get("Panel.background");
UIManager.put("Button.background", Color.WHITE);
UIManager.put("Button.border", javax.swing.BorderFactory.createLineBorder(Color.black));
UIManager.put("Button.opaque", true);change button properties are not affecting the jbutton. if i create.
But if i remove the setLookAndFeel line properties are applying. why? remedy? is changing the ButtonUI is only option?

Similar Messages

  • How to change the background color only for one HTML-Portlet?

    Hi all,
    I have created a HTML-Portlet in my root-page. The root page have a style: Main-Style.
    I want to change the background-color only for this one HTML-Portlet:
    <html>
    <header><title>Test</title></header>
    <body bgcolor="#999999">
    Test
    </body>
    </html>
    But this does not work...
    When I use the CSS, then it will change the background-color for the root-page too.
    Thans
    Leonid Pavlov

    could you try this
    <table bgcolor="#999999">
    <tr>
    <td>
    test
    </td>
    </tr>
    </table>
    I don't think you need <html><header><title>Test</title></header>
    <body></body></html> for your HTML-Portlet.

  • Want to change the Background Color of Selected Tab

    Hi All,
    I want to change the Background Color of Selected Tab of the tabstrip visible in Content Admin Role (Browse, Overview etc.).
    I have changed the Background Color of Selected Tab - Tabstrips-Complex Elements through Theme Editor, but that did not take effect.
    Only the other webdynpro components tabstrips took effect.
    Regards,
    Vishal

    Hi Andre,
    I don't know if you have already figured out how to change the background color of the tabstrip, but I will explain how we have done it.
    You might have tried to change the background color in "Tabstrip" (under the menu "Complex Elements") in Theme Editor. When you change the property "Background color of selected/unselected tabs", this will not change the color of the images on the tabstrip (ex. the triangle on the side of the tab). These images are on the server. We copied these images and then made changes to them, before we uploaded them again through the Theme Editor.
    The path to find the images is /usr/sap/~/JC01/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/portalapps/com.sap.design.urdesigndata/themes/portal/the name of your theme/common/tablist
    If this didn't work for you, you might have to change the properties in "Pattern Containers" (under Complex Elements") in Theme Editor. The tablist properties are under the header "Tab Container".
    I think it should work for you then. We also found that there was some problems when we tried to view the changes in Firefox, but haven't figured out how to solve this.
    /Ellen

  • Hi there, I want to change the background-color of the browser, when a popup-picture is shown. This picture pops up by clicking a hyperlink in the text...can anyone help me please...thanks a lot

    Hi there, I want to change the background-color of the browser, when a popup-picture is shown. This picture pops up by clicking a hyperlink in the text...can anyone help me please...thanks a lot

    Hi,
    CSS is interpreted by your browser, so server cache seems unlikely in htis case. There is however some hierarchy in CSS, so parts of the APEX CSS, theme CSS or page CSS might overwright or block yours.
    Does changing the CSS on runtime affect your page? Eg, run the following in your browser console and see if your page turns black: $('#uBodyContainer').css("background-color","black")
    Also try moving up your css in the hierarchy labeling it as important:
    div#uBodyContainer { 
      background-color:#000000 !important;  
    See:Assigning property values, Cascading, and Inheritance
    Regards,
    Vincent
    http://vincentdeelen.blogspot.com

  • How do I cut and paste?  I want to change the background around a Christmas tree

    How do I cut and paste in Elements 10.  I want to change the background around a Christmas tree.

    One way would be to open the background image, then go to File<Place and select your christmas tree image.
    Now you have two layers.
    Make a selection of the christmas tree with the Quick Selection Tool and then add a layer mask.
    Now you can see the background around the tree.
    Of course your selection may still need some tweaking, so you could paint on the layer mask to further refine the selection.
    What version of photoshop elements?
    example before: (didn't have a chritmas tree image handy)
    after:

  • I  want to change. Account payment. For buy application store.

    I  want to change. Account payment. For buy application store. I. Don't make to change
    <Email Edited by Host>

    Do you really know what you are doing?  How can this solve your own question?  I give up.

  • I want to change my HDD to SSD for macbook pro 15 2010 need some help

    i want to change my HDD to SSD what will work with my macbook pro 2.66GHz (15-inch Unibody w/Intel Core i7) - April 2010 and do it will make my macbook pro low timp and do my macbook pro will be more faster ?

    Personally I am not a fan of SSDs because they are not cost effective for my personal requirements.  However I do recognize that the days of the disk are numbered, but I suspect that day is still a few years off.
    Crucial is a fine company and is one of the two I personally recommend for RAM (OWC being the other) so I suspect that would be a good choice to make.  They are a consumer responsive company.  Indeed the Amazon price is attractive but before you commit yourself, see if you can find test information and reviews on this product.
    I personally cannot give you first hand information on SSDs because I have none of my own.  But perhaps some one will read this post and chime in.
    Ciao.

  • Want to change my existing Release strategy for - PR, PO & Service Entry

    Hallow Experts ,
    Here i have a requirement to change the existing Release strategy for Purchase Requisitions, Purchase Order and Service Entry sheet. Already There are unreleased Purchase Requisitions and Purchase Orders in Production system with the existing Release strategy.
    1. My Query is Before making change in Existing release strategy, should I need to release all PR and PO with unreleased status.
    2. In PO scenario is like this, we have 4 purchacing groups and 4 document types(ZLOC,ZIMP,ZSER,NB) in release strategy, we need to add one more purchasing group that is to be aplicable to my  service PO(ZSER) only . so should I need to creat another stretegy for the same, or I can add in the same strategy
    thanks in advance.
    regards
    vb

    Dear Vikrant,
    1. My Query is Before making change in Existing release strategy, should I need to release all PR and PO with unreleased status.
    Sol:  Not  Required but , doing it is recomandaed
    2. In PO scenario is like this, we have 4 purchacing groups and 4 document types(ZLOC,ZIMP,ZSER,NB) in release strategy, we need to add one more purchasing group that is to be aplicable to my service PO(ZSER) only . so should I need to creat another stretegy for the same, or I can add in the same strategy
    thanks in advance.
    Sol: No Only thing you have to  do is that   go to your class 32 and   chek what is the charaterstic define for the purchasing group  copy it
    2 Now go to  Tr.code: CT04, give that charaterstic and go to change mode and give the additional Purchasing group there, and save it
    3 Now go to Release strategy where you want to add that Purchasing group, go to classification tab and tik that new purchase group ,  that  group will now in fact of release Strategy

  • How do I changenmy apple account on my ipod touch. my daughter's email address is listed and I want to change it to mine. thanks for any help.

    How do I change my Apple account on  my ipod touch> My daughter's account is listed and I want to change it to my account. Thanks for any help.

    iPod touch User Guide (For iOS 4.3 Software)

  • Changing Button icon using CLAF Admin

    Hi All ,
    I have a requirement of changing the standard button icon to a client provided icon.
    I am using CLAF Admin to create a custom look and feel for this purpose. In the custom LAF , I have changed the button icon in the "Customize Styles and Icons" page ( 2nd step of 3 step process ) .
    I have followed the following steps :
    1. Create a custom LAF "mylaf-desktop". Ckick Next. Select "button" in the component drop down
    2. Select the "Icons" tab
    3. Set the URI to "XX_BUTTON.gif", which transformed into ""cabo/images/mylaf-desktop/XX_BUTTON.gif" after saving.
    4. Ported the custom icon into $OA_HTML/cabo/images/mylaf-desktop path.
    After doing the above when I navigate to the preview page and give a random page URL , the buttons in the page are being displayed with the same old icon.
    Any pointer or suggestion will be greatly helpful.
    Thanks,
    Srikanth

    Hi Srikanth,
    I've just posted a similar answer to you elsewhere but here it is again.
    Buttons:
    The button definition is probably the trickiest part of a CLAF as you can EITHER use dynamic Gifs (using icons) or define a HTML button in CSS.
    1) If you want to you dynamic icons you need to create an icon for each part of the button (e.g. adding start, end, top and bottom icons) and reference the url to each in buttonStart, buttonEnd, buttonTopBackground, and buttonBottomBackground icon properties.
    You can do this manually by extending your myclaf.xml file (OA_HTML/cabo/laf/myclaf.xml) with e.g:
    <icon name="buttonStart">
    <context-image uri="OA_HTML/cabo/images/myclaf-desktop/ButtonLeft.gif">
    </context-image>
    </icon>
    ...repeat for buttonEnd, buttonTopBackground, and buttonBottomBackground.
    Once done, you will need to bounce your apache, clear all caches before changes will appear. Even after doing this, I have found button rendering to be a bit dodgy in some environments.
    2) Instead of this technique I recommend simply adding the CSS button property to your xss file (OA_HTML/cabo/styles/myclaf.xss), e.g:
    <style selector="button">
    <property name="background-image">url(/OA_HTML/cabo/images/myclaf-desktop/buttongradient.gif)
    </property>
    <property name="background-color">#00CCCA
    </property>
    <property name="color">#ffffff
    </property>
    <property name="font-size">12px
    </property>
    <property name="font-weight">bold
    </property>
    <property name="border">solid #02A1A5 1px
    </property>
    <property name="white-space">nowrap
    </property>
    </style>
    <style selector="button:hover">
    <property name="background-image">url(/OA_HTML/cabo/images/myclaf-desktop/buttongradienthover.gif)
    </property>
    </style>
    Browsers will pick this up and apply the changes to all buttons on claf pages.
    The only problem with this is that you can only have 1 background image (e.g. see R12 swan buttons) and not a left, right, top, bottom image (see 11.5.10 buttons) - i.e. you can't have rounded corners.
    Mike
    Edited by: M West on 31-Mar-2009 05:53

  • Can I change the background color view for SPECIFIC web pages with Safari?

    I cannot read Netflix red background webpages without getting a headache/eyestrain. I know other browsers allow me to override the pages' colors but will safari allow me to specify all pages from for instance "www.netflix.com"; to have a white background while letting other pages display colors as they were created?
    Will any browser do this?
    It would be a cool feature.

    There may be a way of doing this using CSS. In Safari's preferences under 'Advanced' there is the option to choose a user defined style sheet. I have used this since Safari came out to not display ads in Safari, and it may be well possible to use it to change certain styles (depending on page code).
    ..k

  • Changing validity date using BAPI_PROFITCENTER_CHANGE for a profit center.

    Hi Friends
    I need your help to know if we can use BAPI_PROFITCENTER_CHANGE to change the validity period of a profit center.I am using this BAPI in a LSMW program.
    The changes I want to make are something like changing the validity dates from
    1) 01/01/2006 - 12/12/9999 to 01/01/2007 - 12/12/9999
    2) 01/01/2006 - 12/12/9999 to 01/01/2005 - 12/12/9999
    3) 01/01/2006 - 12/12/9999 to 01/01/2006 - 12/12/2010
    or should I use BAPI_PROFITCENTER_CREATE?
    -Thanks
         Mitesh

    change document in profit center change
    Bapi - BAPI_ASSET_ACQUISITION_POST
    need a function module for profit center
    Please give me reward points...

  • Change button name in a for-loop

    Hi all,
    I would like to implement a 'for loop' to add buttons to my panel depending on the value of max_number.
    The postion of these buttons will also change with each passing of the loop.
    The code below implements this. But when I click the buttons they only return the action listener of the last button drawn. This is because the JButton my_button is reused in each pass through the loop.
    What I need is to change the name of the button on each passing of the loop so that I create a new button each time with it's own unique action listener.
    Is there a way of adding/appending the value of 'i' to the button name each time the for loop is run?
    For example
    When i = 0 -> JButton my_button0 = ...
    When i = 1 -> JButton my_button1 = ...
    etc, etc,
    for (i = 0; i < max_number; i++)
    JButton my_button = new JButton(Integer.toString(i));
    my_button.addActionListener( new ActionListener()
    { public void actionPerformed(ActionEvent event)
    { do something depending on the value of 'i' }});
    addComponent(my_button, (2*i+1) , 4 , 1 , 1); //add newly created button to position x = (2*i+1), y = 4
    } //end for

    What?! Are you talking about the variable name? You can't, shouldn't, needn't use different variable names in a for loop, since the variables "expire" each time the loop is run. For instance:
    for(int i = 0; i < 10; i++) {
       //j doesn't exists even if this loop is on its 10'th lap!
       int j = i;
    }And you will have a problem with the ActionListener as well, since it depends on the "i" variable. "i" can't be accessed from an anonymous class unless it has been declared final, in which case it won't work for you.
    So: the my_button variable will contain a new JButton each time!
    Nille

  • Not enough space on my disk, want to change iphoto to use external drive

    I dont have enough space on my hard disk. I want to use an external drive to put all my pictures. Is there a way I can configure iphoto to use my new drive instead of the current location. How can we do this and what will be the best way to move my existing library to the new drive.

    1. First make sure iPhoto is not running. If it is, quit it. Use the Finder to copy your iPhoto Library file to your external drive. Unless you've changed it, its located inside your Pictures folder and is named "iPhoto Library".
    2. After the copy is complete, start iPhoto while simultaneously holding down the option key. iPhoto will bring up a dialog box. The file in the list is your existing Library on your internal disk. Click the "Other Library" button and navigate to your external drive. Select your freshly copied iPhoto Library file and click "Open". iPhoto will from now on open and work with this library on the external drive.
    3. After you've confirmed iPhoto is working properly with the newly copied library you may wish to delete the original library in your Pictures folder to recover the disk space.
    Don't forget to keep a backup copy of your library on a separate disk. It's not a matter of "if" your external drive will fail but "when". You need to make regular backups or you'll be sorry someday.

  • My iPod Nano 6th generation iLive speaker system quit on me and now I cannot find a compatible speaker system.  I don't want tiny personal speakers, I use this for music in the family room.

    I have 2 iPod Nano 6th generation.  I had them setup with different music from iTunes and I had an iLive Bluetooth docking and speaker system that charged and played them with speakers spaced in the family room.  Not a little personal setup but for reasonably loud music for the whole room.  My iLive system died on me.  It had the 20 pin place to plug in the iPod nano and a clock and the two speakers that were bluetooth.  It was the perfect setup for me.  Now that model has been discontinued and I cannot find anything like it.  Does anyone know what a good option is?  These iPods are only a couple of years old and now obsolete because they don't make anything to play them on.  I don't use earbuds, it's not what I bought them for.  One has our jazz music collection, the other has Christmas music.  I want to hear it throughout the house.

    Sorry typo it had a 30 pin place to plug in the iPod Nano

Maybe you are looking for

  • Shocked by lack of interest in buying my Power PC or Mac Pro

    This isn't really meant to be a question, but rather a statement . . . of astonishment. I guess I'm like, waaaaaay out of touch, but has it reached the point where desktop computers are pretty much obsolete? I guess I'm not talking about iMacs so muc

  • Changing group from calendar year to GL year

    I am currently using Crystal reports with a ERP system called IQMS. I am trying to grab data from our genral ledger year (1 of august to 31 of july) instead of the calendar year. The data can come from either the year or the week (52 weeks). I am cur

  • Need help in ALV grid editable cells

    Hi, I have created a ALV Grid program in which i made certain cells as editable cells.Now my question is if suppose i have 2 rows in my output then if i change the 2nd rows some cells, then some calculation has to perform till this it is fine but nw

  • [svn] 4940: In addressing SDK-17370 two things were apparent.

    Revision: 4940 Author: [email protected] Date: 2009-02-12 10:17:35 -0800 (Thu, 12 Feb 2009) Log Message: In addressing SDK-17370 two things were apparent. 1. Batik's parsing of @font-face unicode-ranges needed to be fixed (Batik bug 46055). 2. The sy

  • About my MacBook Pro's super drive....

    First, i like to apologize when i ask this question because in my country we are using alot of pirated software, here is my question my super drive cant read the pirated DVD properly, even those original software. it's mean my drive in trouble? or ju