JProgressBar background color does not work in XP with JRE 1.4.2

Hi,
I am setting the background color of JProgressBar. While it used to work in 1.4.1, the background color does not show in 1.4.2 on XP. It looks like it has something to do with the XP L&F in 1.4.2. I am setting the L&F to systemlookand feel. Is anyone aware of anyworkaround for this? Setting the opaque property does not help either. I don't want to say swing.xp=false. We need the xp look and feel.
Any help will be appreciated.
Thanks.
Sujatha.

Actually I draw a blank looking into it a bit deeper. The Windows UI paintXPBackground method is private and the XPStyle class can not be accessed outside the package. I guess the reason for this is to protect the XP LAF from having the backgrounds changed etc.
If it is important to you the source is available for you to replicate your own MyXPStyle class and then you would have to recreate the whole paintDeterminate methods in your MyProgressBarUI class. It would not be very future proof though.

Similar Messages

  • Header background color does not work

    Hi,
    I would like to change the background color of the header element, but it does not work as I imagined
    First of all, here is the HTML:
    <body>
    <div id="wraper">
      <header>
        <h1><span>Pacific</span> Coastal Highway</h1>
        <nav>
          <ul>
            <li>Home</li>
            <li>Big Sur</li>
            <li>Pfeiffer Beach</li>
            <li>Elephant Seals</li>
            <li>Morro Bay</li>
          </ul>
        </nav>
      </header>
      // ... some other HTML elements & content ...
    </body>
    So, within <header> element we have <h1> and <nav> elements, and within that <nav> element there is a list that is actually menu.
    Here it CSS code that refers to these elements:
    #wraper {
        width: 1200px;
        background-color: #FFFFFF;
        margin-left: auto;
        margin-right: auto;
        margin-top: 0px;
        border-right: 1px solid #000000;
        border-left: 1px solid #000000;
    body {
        margin: 0;
        background-color: #CBD2FB;
        font-family: "OpenSans Regular", "Gill Sans MT", Arial, "Times New Roman", sans-serif;
        color: #202020;
        background-image: -webkit-linear-gradient(270deg,rgba(135,167,207,1.00) 0%,rgba(204,217,234,1.00) 11.91%,rgba(232,238,245,1.00) 25.91%,rgba(202,212,220,1.00) 100%,rgba(0,0,0,1.00) 100%,rgba(135,167,207,1.00) 100%,rgba(138,169,207,1.00) 100%,rgba(135,167,207,1.00) 100%,rgba(202,212,220,1.00) 100%);
        background-image: -moz-linear-gradient(270deg,rgba(135,167,207,1.00) 0%,rgba(204,217,234,1.00) 11.91%,rgba(232,238,245,1.00) 25.91%,rgba(202,212,220,1.00) 100%,rgba(0,0,0,1.00) 100%,rgba(135,167,207,1.00) 100%,rgba(138,169,207,1.00) 100%,rgba(135,167,207,1.00) 100%,rgba(202,212,220,1.00) 100%);
        background-image: -o-linear-gradient(270deg,rgba(135,167,207,1.00) 0%,rgba(204,217,234,1.00) 11.91%,rgba(232,238,245,1.00) 25.91%,rgba(202,212,220,1.00) 100%,rgba(0,0,0,1.00) 100%,rgba(135,167,207,1.00) 100%,rgba(138,169,207,1.00) 100%,rgba(135,167,207,1.00) 100%,rgba(202,212,220,1.00) 100%);
        background-image: linear-gradient(180deg,rgba(135,167,207,1.00) 0%,rgba(204,217,234,1.00) 11.91%,rgba(232,238,245,1.00) 25.91%,rgba(202,212,220,1.00) 100%,rgba(0,0,0,1.00) 100%,rgba(135,167,207,1.00) 100%,rgba(138,169,207,1.00) 100%,rgba(135,167,207,1.00) 100%,rgba(202,212,220,1.00) 100%);
    h1 {
        margin-top: 0px;
        font-size: 48px;
        text-shadow: 1px 1px 2px #969696;
        padding-top: 32px;
    h1, h2, h3 {
        font-family: "Prociono Regular", "OpenSans Regular", "Gill Sans MT", "Times New Roman", Arial;
        color: #507AAD;
        text-align: center;
    h1 span {
        position: relative;
        top: -37px;
        left: 35px;
        font-family: GoodDog, Arial, "Times New Roman", "Gill Sans MT", sans-serif;
        font-size: 47px;
    header nav ul {
        margin-right: auto;
        margin-left: auto;
        list-style-type: none;
        padding-left: 0px;
        width: 705px;
        /* [disabled]margin-bottom: 10px; */
    nav ul li {
        float: left;
        padding: 10px;
        display: block;
        width: 110px;
        text-align: center;
        background-color: #A9A3FF;
        border-right: 1px solid #FFFFFF;
        border-radius: 23px;
        background-image: -webkit-linear-gradient(270deg,rgba(135,167,207,1.00) 0%,rgba(204,217,234,1.00) 60.11%);
        background-image: -moz-linear-gradient(270deg,rgba(135,167,207,1.00) 0%,rgba(204,217,234,1.00) 60.11%);
    background-image: -o-linear-gradient(270deg,rgba(135,167,207,1.00) 0%,rgba(204,217,234,1.00) 60.11%);
        background-image: linear-gradient(180deg,rgba(135,167,207,1.00) 0%,rgba(204,217,234,1.00) 60.11%);
        margin: 18px 5px;
    And, finally, here's how it looks:
    Now, I'd like to change the background color of the <header> element (to chage that white behind that <h1> and menu into some other color), so I just added the background color of the <header> element in CSS:
    header {
        background-color: #FF2D31;
    But, here is how it looks now:
    As you can see, although <nav> element with list (menu) is IN <header> element - the background color of <header> is just behind <h1> element.
    Do you know why it's happening, and what would be the best way to solve this problem?
    Thank you in advance.

    Ben Pleysier wrote:
    The problem is caused when floated children do not force the parent element to clear the floats.
    Nancy O. wrote:
    It may seem counter-intuitive but overflow:hidden prevents margin collapse on parent elements containing floats:
    The magic of “overflow: hidden” — Articles — Colin Aarts, freelance web developer
    I'm trying to figure out what happened (and why) in my example, where the problem occurred, but...
    I tried with inspecting elements with Firebug - to see what's what in case when there isn't overflow:hidden property that is related to <header> element in this example from the first post:
    As you can see in the picture - <header> element is only that blue area containing <h1> element, and although <nav> element (with the <ul> element inside) is IN <header> element - it is not shown within the blue area, as it is not within <header> element.
    As for the <h1> element which is inside of the <header> element, when I select it - it looks like this:
    Now, purple area indicates the padding-top of <h1> element, and I guess that yellow area which indicates the margin is actually browser's default margin of the <h1> element.
    Next, confusing is when I select <nav> element:
    Although <nav> element is selected - there is no that blue area indicating where is that element on the web-page... ?
    Next, when I select <ul> element, there is only yellow area indicating margin -  I guess that yellow area which indicates the margin is actually browser's default margin of the <ul> element.
    When I select <li> element - it's the same case as with <nav> element there is no that blue area indicating where is that element on the web-page... ?
    Finally, when I select <a> element - it looks like this:
    All in all - inspecting all <header> element and the elements within it didn't help me to see what and why this is happening (with the background color of the header element). I think the problem is in me, I'll wait a few days and maybe then things become clearer in my mind
    Sorry for my bad English.
    Again, thank you all!

  • Hi! I am having a problem with my dictation. It works fine with Greek but it does not work at all with English. Anyone knows why?

    hi! I am having a problem with my dictation. It works fine with Greek but it does not work at all with English. Anyone knows why?

    Have you changed the system voice to an English one in system preferences?

  • Auto backlight does not work on 4S with iOS 7! With iOS 6.1.3 I had the same problem.Why?

    Auto backlight does not work on 4S with iOS 7. I had the same problem with iOS 6.1.3! Why ?

    rlwebb71 wrote:
    ... I have the latest generation iPod touch, not the 5, but the latest. So why can't Siri come out and play? 
    Siri is not a feature of that iPod... 4th Gen...
    iOS 6  Which Software for Which iDevices...
    http://support.apple.com/kb/HT5457

  • -moz-transform:scale does not work in Firefox with select tag(DropDown)

    -moz-transform:scale does not work in Firefox with select tag(Dropdown). The Dropdown options are being displayed at incorrect location.

    'Hi, Please try the HTML attached in image. This works in IE, Safari, Crome but not in Firefox

  • Notification center does not work at all with mail

    notification center does not work at all with mail there is no sonud no banner . i try to chek and unchek thas box may it is something may effect but still not working where is the notifiication center they said to us about it but i want be fair it's working for imessege and it's not working also for app store update like they said there is abig kiind of joke. i use macbook air mid 2011.

    Have you changed the system voice to an English one in system preferences?

  • Final Cut 6 and Color does not work

    Hello,
    I bought FInal Cut Pro Studio 2 and i receive the suite today and instal only apps ( no contents and loops )without problem
    Tried to open FCP6 and Color but not working.
    i launch FCP 6 or Color,2 jumps on dock and then quit.
    can be memory problem.( i have 768RAM on my imac G5 64VRAM)
    any pacth to resolv this problem?
    ps* SountrackPro 2,DVDStudio Pro,Motion3,LiveType,CinemaTools and Compressor woks fine in the same computer
    Computer configuration
    IMac G5 1.6 with 64VRAM and 768RAM
    thx in advance

    Ok,forgot Color,but and about final cut 6 ? why does not work?
    max resolution 1440x900.
    i was looking the systen requirements on fcp page
    Minimum Requirements to Install All Final Cut Studio Applications
    Final Cut Pro 6
    Macintosh 1.25GHz or faster PowerPC G4, PowerPC G5 = OK
    1GB of RAM = NO,my iMac have 768RAM
    1024-by-768 resolution or higher OK
    Mac OS X v10.4.9 or later OK
    QuickTime 7.1.6 or later OK
    A DVD drive for installation OK
    Can i deduce that problem is because i don't have RAM enought?
    THX

  • Google talk video plugin does not work any more with Firefox 4. When clicking on the video chat icon, I am repeatedly asked to install the plugin, and it never works.

    Google talk audio/video plugin used to work fine on Firefox 3, but does not work anymore on Firefox 4. Every time I click on the video chat icon on google talk, I am asked to install the plugin, even if I have already installed it before. The plugin works properly on the latest version of IE on the same PC.
    Thanks for your help. I do not want to switch to Chrome or Opera, but if this bug is not fixed, I will have to.

    Not sure if installing IE 9 did it or not but I now see the camera in IE, FF and Chrome. Could be Facebook fixed the problem also.
    Thanks for the reply.
    George

  • Reminders App does not work on Yosemite with two iCloud accounts.

    The Reminders App does not work on Yosemite (10.10.1) with two iCloud accounts. It seems like when there are two iCloud accounts connected in Yosemite (10.10.1) the plist file for Reminders disappears.
    I have tried restarting Reminders; restarting the mac; starting the mac in recovery mode to repair the disk and disk permissions; and starting the mac in recovery mode and reinstalling OSX.

    Yes sharing Reminders list works. The problem is, I have one shared iCloud account with a colleague (shared calendar, Reminders and email). It makes it easier to run our business with a single shared iCloud account...I know it's not the typical usage.

  • Argentina-sim does not work in argentina with german iPhone 4

    Hi,
    I have a german iPhone 4 and went to argentina. I inserted an argentinian SIM-Card but it does not work.
    Any ideas out there?
    Rodie

    What is the exact complete wording of the error message you are receiving?
    Is the iPhone locked to a wireless provider other than the one you are attempting
    to use it with?

  • I keep upgrading and it still does not work - call me with a solution - now !!

    I just need to take a few pages to take out of a document and create a new doc.  I had the software and now it does not work.   So i keep buying what I am told, by Adobe, will work, twice.  Is this a continual scam to keep buying ??????????????????????????????????????
    I need a solution now.  If you can not help do not contact me, if you do not contact me I am going to discontinue the services I have.  You have 24 hours.  Today is 11/10/2014 6:34 EST.

    Hi Paul,
    I'm sorry for your frustration. You have an ExportPDF subscription, which you can use to convert PDF files to Word format. It does not allow you to remove pages from as PDF and create a new PDF. It looks like you may have placed an order for an Acrobat subscription today, but it has not processed. Once it does, you can download and install Acrobat, and then use it to extract pages from a PDF (choose Extract from the Pages pane on the Tools panel).
    Best,
    Sara

  • The CL20N does not work to me, with a Bath Input in version 6.0

    Transaction CL20N, does not work to me like Bath Input in version 6.0, gives an error me of (Dynpro Not Found), anybody knows a BAPI replaces that it?
    Thanksu2026

    Why don't oyu use LSMW to handle this.
    use the following object
    Object               0130   Classificatio
    Method               0002   Direct input
    Program Name         RCCLBI03           
    Program Type         D   Direct Input

  • Background color does not show in a design mode preview

    Hi,
    I installed Macromedia studio 8 a couple of days ago, and
    started using Dreamweaver 8 with a "Missing Manual" book. I'm on
    first chapter and following tutorial. It says to change a
    background color to blue, and I did that. But this change was not
    reflected in a design mode preview. I checked the code and it's
    there. I viewed in an IE6, and it was there. My coworker installed
    an evaluation version on his pc and it worked fine. I guess it's my
    pc that has problem. I had IE7 and VS2005 on the pc when I
    installed Macromedia 8. Due to help crash, I uninstalled IE7. It
    did not solve the problem, so I uninstalled VS2005 and related
    programs, and it did not solve the problem. I uninstalled and
    reinstalled Dreamweaver 8 a couple of times, and it did not help.
    Does anyone out there who have similar experiences, please share it
    with me? I post this here before redo my pc. Thanks.

    <shrug>
    Without seeing code, it would be impossible to guess....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "jaivora" <[email protected]> wrote in
    message
    news:[email protected]...
    > This is way too much - I too am reading the same book
    and am stuck at the
    > same
    > place - Not only does the background not appear in
    dreamweaver, but nor do
    > the
    > new colors set for the active links, rollover links, etc
    - After setting
    > in the
    > new colors, the "Page Property" section will not reflect
    the new colors -
    > While
    > all the time Safari will show the page correctly.
    >
    >
    >
    quote:
    Originally posted by:
    Newsgroup User
    > Do you also have the same exact code? That's where the
    answer always
    > lies....
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    > ==================
    >
    >
    > "LaValliere" <[email protected]> wrote
    in message
    > news:[email protected]...
    > >I am having the same exact problem as the other
    person, except I can not
    > >find
    > > the manual uninstall that seemed to fix their
    problem. The funny thing
    > > is
    > > I am
    > > reading the exact same book as they were and the
    problem happen at the
    > > same
    > > point in the very first chapter. The background was
    working fine
    > > before.
    > > Thinking back I realised the book said to go to the
    website for any
    > > updates,
    > > which I did. After that . . . . no background color
    is visible. I have
    > > also
    > > attempted to uninstall and reinstall. No luck. Can
    you help?
    > >
    >
    >
    >
    >
    >
    >

  • Background refresh does not work as expected

    Hello All,
    I am brand new to iphone after using Android for several years, one thing that is really bothering me is the way certain apps seem to behave and how the background app refresh seems to have no affect when on or off.
    The examples I will use is Whatsapp & Kik (Both messaging apps)
    If someone sends me a message on either of the above then I get an alert saying 1 new message, however that message doesn't download to my phone, what seems to happen is when I open the app it says "connecting" at the top of the screen for a while and it takes a few seconds (sometimes longer) for the message to appear. If I have poor signal it is very frustrating, I know I have several messages and my phone says that, but because I cant connect it just goes round in circles for ages saying connecting and failed and i cannot read my messages until i have full signal again.
    On the android, if I got a notification to say I had a whatsapp message then that message would download automatically, even if I had no signal at the point of opening the app then it would instantly show the new message, because it had downloaded it immediately in the background, of course I couldn't reply with no signal but at least I could read it which i cant with the iphone.
    so, my understanding of Background refresh would be that it would resolve my issues, if the app updates in the background and i get a message, surely that means when I open it 20 minutes later that the new message would be present? but it's not, even with app refresh on it makes no difference to what I'm saying.
    Am I reading app refresh all wrong and can anyone see my point and explain if I'm doing something wrong.
    sorry to bang on but another example could be facebook, if i dont go on it all day but have app refresh on and have the task open, surely when I eventually load it it should have all the latest feed on my timeline - but it doesnt, it will be exactly as I left it the day before and would spend the first 30 seconds updating.
    Please please feel free to comment and let me know if I'm doing something wrong or misunderstanding the backgound app refresh function
    My phone is the iPhone 5s and is on the latest IOS 8.1.1 but was the same on 8.1.0 and whatever was previous to that.
    I am on the three network pay monthly and all issues i mentioned about relate to being on 3G and on wifi so it's not a signal issue.
    I'm soooo confused :/
    Thank you

    I Have your same question, I don't understand the advantages of keeping the app refresh on....

  • Events Click Set Property Fill Color does not work.

    Setting Stroke Color does work.  Setting Fill Color is accepted by the user interface, but nothing happens.  I was applying this to a Basic Circle Shape.
    Until this is fixed, my alternative is to define a "custom event".  I have assigned a name to a "custom event" but can find no way to define it's action.  Can anyone help me with this or point me to the documentation on this?
    Thanks.

    You also need to register the fields which you want F4 event to become active for.
    DATA: it_f4 TYPE lvc_t_f4,
            wa_f4 TYPE lvc_s_f4.
      wa_f4-fieldname = 'CONNID'.
      wa_f4-register = 'X'.
    *     wa_f4-GETBEFORE = 'X'.   "if you want to trigger before F4
    *      wa_f4-CHNGEAFTER = 'X'. "or just after it
      APPEND wa_f4 TO it_f4.
      CALL METHOD g_alv_grid_ref->register_f4_for_fields
        EXPORTING
          it_f4 = it_f4.
    Regards
    Marcin

Maybe you are looking for