JButton background color on XP difference with theme classic and XP

Hi all,
I got a problem on Windows XP JSE 1.5.0_01 when trying to set the
background of a JButton (or to be more precise of a subclass of
JButton, but no override of paint or paint Component).
The button background behaviour is correct with the theme Windows
classic but not with XP Windows one. In the later case, only the
background below the button is coloured, the rest is grey: impossible
to modify the colour of the button itself.
Any idea?
F.

It did.
Thanx a lot.
F.
Maybe this thread will help you:
http://forum.java.sun.com/thread.jspa?forumID=57&threa
dID=430926

Similar Messages

  • [svn:fx-gumbo_beta2] 10321: Fix SDK-23520 - Application background colors don' t work with the Wireframe theme

    Revision: 10321
    Author:   [email protected]
    Date:     2009-09-16 13:42:01 -0700 (Wed, 16 Sep 2009)
    Log Message:
    Fix SDK-23520 - Application background colors don't work with the Wireframe theme
    QE notes: Wireframe tests need new baselines. There are subtle rendering differences on the edges/corners that are not visible, but are causing test failures. Joann has excluded the wireframe tests for now.
    Doc notes: None
    Bugs: SDK-23520
    Reviewer: Chet
    Tests run: checktests, mustella gumbo/components/wireframe
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-23520
        http://bugs.adobe.com/jira/browse/SDK-23520
    Modified Paths:
        flex/sdk/branches/gumbo_beta2/frameworks/projects/wireframe/src/spark/skins/wireframe/App licationSkin.mxml

  • Have functional difference with GPU acceleration and software processing of Mercury Playback Engine?

    Used Decklink SDI and Premiere CS6 to testing.
    I have a question~Have functional difference with GPU acceleration and software processing of Mercury Playback Engine?
    (Can GPU acceleration export same used 59.94i external monitor export?).
    IN specification,Is it need“software processing”? whether other restrictions?
    If Anyone know please tell me.
    thank you.

    Thank you for your help, and sorry about didn't make it clear.
    Use Decklink SDI and Premiere CS6 to test.
    In GPU mode of Mercury Engine, the signal form SDI is 1080i, but  even fields will be missing.
    Take a simple test:
    Make quick slide for reproduce animationin in quadrangle(1080i 29.97),  but it can't paly smooth and same gone to 30P.
    If in Software mode, the action can be smooth.
    Although use Software mode can be ok,but if GPU does not realize,it will take long time to render.
    system info:
    macpro 10.8.1
    premiere cs6.0.2
    blackmagic driver 9.6.4
    GTX285
    sequence of premiere
    Presets/blackmagic/8bit YUV/interlace/59.94i
    Have any problems with my System or the  GPU mode can no  external monitor output in 59.94?
    IN specification,Is it need“software processing”? whether other restrictions?
    thank you!

  • Why does JButton background color change when  clicking ?

    Hello,
    I have defined :
    JButton mybutton = new JButton(Icon xxx) ;
    with no associated text and I set both foreground and background colors to black, and an empty border.
    This is because the background color of the container which contents this button is also black and I want to see only the button icon.
    When I click on the icon , the button background color becomes grey. How can I change this to make it remains black ?
    Thanks a lot.
    Gege

    Well, the color changes because that is how the look and feel is defined,
    presumably to give better feedback to the user that she has clicked the
    button.
    If you don't want this, you could try using a different L&F which doesn't do this.
    Alternatively, If you've only got the one button, you could just do
        UIManager.put( "Button.select", Color.BLACK );If you have multiple buttons, and you want the other buttons to behave
    normally, you can extend the one button and have it change the color
    while it is pressed, e.g.,
    import java.awt.*;
    import java.io.IOException;
    import java.net.URL;
    import javax.swing.*;
    public class ButtonSelect extends JFrame {
         public ButtonSelect() throws IOException {
              super();
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JPanel panel = new JPanel();
              panel.add( new JButton( "Normal" ) );
              Image img = Toolkit.getDefaultToolkit().getImage( new URL("http://www.google.com/intl/en/images/logo.gif" ) );
              ImageIcon ii = new ImageIcon( img );
              JButton b = new JButton( ii ) {
                   static final private String KEY = "Button.select";
                   public void paint( Graphics g ) {
                        Color save = null;
                        if ( getModel().isArmed() && getModel().isPressed() ) {
                             save = UIManager.getColor( KEY );
                             UIManager.put( KEY, Color.WHITE );
                        super.paint( g );
                        if ( save != null )
                             UIManager.put( KEY, save );
              b.setForeground( Color.WHITE );
              b.setBackground( Color.WHITE );
              b.setFocusPainted( false );
              panel.add( b );
              getContentPane().add( panel );
              pack();
              setVisible( true );
         public static void main( String[] a ) throws IOException {
              new ButtonSelect();
    }

  • JButton background color question

    Hi everybody,
    I have a feeling I'm going to get slammed for this, but I have to ask a very general question and hope for an answer.
    I have a JDialog on which buttons don't seem to hold their background color. That is, when I use setBackground, the only color change I get is a very thin outline of the color, and the rest of the button is white. The strange thing about the button is that the white center actually seems transparent--if I change the panel the button is on to another color besides white, the center of the button turns that color.
    I've tried to solve this problem with setOpaque( true ), setContentAreaFilled( true ), setBackground( color ), setForeground( color ), and I'm pretty sure every combination of those.
    Unfortunately, I haven't been able to reproduce this in a test case, so I can't give a SSCCE, although I've tried for a while now to make one.
    So...has anyone ever run into a problem like this and can give me some advice? I'm sorry I can't be more specific, if anyone has a question I'll do my best to answer.
    Thanks,
    Jezzica85

    I have a feeling I'm going to get slammed for this, but I have to ask a very general question and hope for an answer.Why would people be harsh on you? The only risk you take is: vague question => vague answer (or random).
    So...has anyone ever run into a problem like this and can give me some advice? I'm sorry I can't be more specific, if anyone has a question I'll do my best to answer.Never seen that myself, so I'll add a few random questions/thoughts:
    I have a JDialog on which buttons don't seem to hold their background color. That is, when I use setBackground, the only color change I get is a very thin outline of the color, and the rest of the button is white.- are you using a custom JButton subclass? If yes are you certain the subclass does not override paintComponent()?
    - If not, the button is painted by its ButtonUI. Can you tell which UI class is used (sysout(+theButton.getUI()+)?
    The UI is set according to the LookAndFeel.
    - Do you set any special LookAndFeel (+UIManager.setLookAndFeel(...)+, or look and feel's UIDefault properties in your app (generally that is done at startup)?
    - If not, can you tell the current look and feel when you bring up the dialog (+UIManager.getLookAndFeel(...)+, although that can be inferred from the ButtonUI subclass' name.
    I've tried to solve this problem with setOpaque( true ), setContentAreaFilled( true ), setBackground( color ), setForeground( color ), and I'm pretty sure every combination of those.FYI, the ButtonUI paints the button however it sees fit; in particular it doesn't have to respect the colors, opacity, filling... properties.
    Eventually:
    - are you using a custom JDialog subclass (probably, as that's generally how people write dialogs; not the best way IMHO, but there are cases where this is hard to avoid).
    I see you can't provide an SSCCE right ow, but maybe you can try to narrow the list of suspects in your side?
    - Do you reproduce the same problem at startup, if you bring the JDialog up as soon as possible?
    - Do you reproduce the problem with a mere JOPtionpane.showMessageDialog(..., theButton,...)?
    - Do you reproduce the problem outside of the JDialog context (I see you mention using a different JPanel, but is that in the dialog or somewhere else?
    Good luck with your investigations.
    Edited by: jduprez on Sep 30, 2009 8:20 AM

  • Change the background color on the textbox with setToolTipText method

    Hi there,
    Is there anyway to change the little help text background color
    with the setTipToolText() method ???
    Thanks a million
    Christian

    use the javax.swing.UIManager and set the appropriate properties:
    ToolTip.backgroundInactive
    ToolTip.borderInactive
    ToolTip.foregroundInactive
    ToolTip.border
    ToolTip.foreground
    ToolTip.font
    ToolTip.hideAccelerator
    ToolTip.background <- this is probably the one you want

  • CSS -- background color doesn't show with scroll bar

    I have a nav bar with a background-color that shows up fine if the image opens to the right size.  If, however, the window opens small and I have to use the scroll bar to move things over, the color for the nav bar isn't there.
    Any thoughts would be appreciated.
    Here's the code:
    HTML:
    <body>
        <div id="Global">
            <div id="navHeader">
                <div id="navBar">
                    <ul class="navStyle">
                        <li>Home</li>
                        <li>Chamber Info</li>
                        <li>Event Galleries</li>
                        <li>Contact Us</li>
                        <li>Join</li>
                    </ul>
                </div>
            </div>
        </div>
    </body>
    CSS:
    @charset "utf-8";
    /* CSS Document */
        padding:0 0;
        margin:0 0;
    body{
        background-color:#f1eee3;
    #Global{ margin:0 auto;}
    #navHeader{
        width:100%;
        height:40px;
        margin:0 auto;
        background-color:#bfbfbf;
    #navBar{
        margin: 0 auto;
        width:960px;
        text-align:center;}
    .navStyle{
        font-family:"Eras Medium ITC",Arial, Helvetica, sans-serif;
        font-size:18px;
        padding-top:10px;
    .navStyle li{
        display:inline;
        padding-left:20px;
        padding-right:20px;

    Does this help?
    #navHeader{
    width:100%;
    min-height:40px;
    _height:40px; /**for IE6 only**/
    margin:0 auto;
    background-color:#bfbfbf;
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Div background color not showing in Internet Explorer 8 and before

    My Footer div is not showing the background color (supposed to be black...)  in Internet Explorer 8 and earlier.  It's assuming the body color instead.  Also the border color on top of the 'bubbles' that run across the page is wrong (supposed to be blue)    Is this just because Internet Explorer 8 and earlier did not support div background and border colors yet, or is there a work-around??  Or maybe I did something wrong?
    The site is:    www.meridianwaterfiltration.com

    martcol wrote:
    I don't think that IE8 does rgba.
    It should be OK with rgb but not rgba.
    Martin
    No its doesnt
    I'd just use a hexidecimal color - black #000 and blue: #03f (see below)
    .footer {
    position: relative;
        width: 100%;
        padding-top: 0px;
        padding-right: 0;
        padding-bottom: 0px;
        padding-left: 0;
        background-image: none;
        background-repeat: repeat-x;
        margin-top: 0px;
        clear: both;
        height: 350px;
        background-color: #000;
    #bubble {
        background-image: url(Images/water drop 0banner.jpg);
        background-repeat: repeat-x;
        width: 100%;
        height: 43px;
        border-top-width: 3px;
        border-top-style: solid;
        border-top-color: #03F;
        margin: 0px;
        padding: 0px;
        background-color: #3FF;

  • PCU usage difference with FCP 6 and FCPX

    So can anyone help me understand this...
    I export a ten minute video in FCP 6.0.6 and it takes 3 minutes...using 3 % of PCU
    Then I export same 10 minute video from FCPX and it takes about 12 minutes and uses 63% of the CPU....
    this issue is driving me crazy...why do things take longer with FCPX...is there something in the software that using the computers hardware differently than final cut studio does????

    If you read back through some threads (not far) you will see that FCPX and Motion 5 don't work the same as FCP6 and Motion 3 - i.e. they do not round-trip.
    If round-tripping is essential in your workflow stick with FCP 6 and Motion 3.
    If you want to use Motion 5 they can be installed alongside each other, just follow the guidelines for better working - http://support.apple.com/kb/HT4722?viewlocale=en_US
    You can output movies from Motion 5 with transparency and just import into FCP.
    Alan

  • PowerMac G4 OSX10.4 with no classic and other problems.

    Hi,
    I know quite a bit about mac’s but am really awful with tech language so any ‘dumbed down’ responses would be greatly appreciated!!
    I bought a 2nd hand power mac sometime last year. It is a G4 400mhz (AGP) with 764mb ram (year 2000). I have recently installed OSX 10.4 on it and I have a couple of predicaments.
    I have bought a yamaha mw10 which comes with music software Cubase LE. The Yamaha MW10 only requires 300mhz processor, but the Cubase requires 450mhz. The weird thing is, the cubase works on my mac but not the mw10?!
    I am going to upgrade my processor and hope that this will fix it. I have seen the sonnet encore 1.6ghz and will probably go for that.
    However, As this was a 2nd hand mac, I have found there is no ‘classic’ on it. (I did a search with the term ‘classic’ and there were no folders. Should I search using os9 instead?) Reading the specs for the sonnet processor, you need to have os9.2 in order to run the correct firmware to make the processor compatible with the mac.
    I do have access to an install cd of Os9.1 (which I would then update through the apple site to 9.2), but it comes from my dad’s imac g3 computer. Does this matter and would it work? If not, where can I purchase an install disk for 0s 9? (I live in the uk).
    Thank you very much for your time and help with this matter!
    G4 400mhz AGP   Mac OS X (10.4.3)   764mb 20GB

    Whether or not this solves your problem, depends on your firmware version.
    To verify which revision of firmware your system is running, open the Apple System Profiler from under the Apple Menu. The last drop down tab is “Production Information”, and the second item listed is the Boot ROM Version. Your system must be $004.28f1 or later to install the CPU upgrade.
    http://docs.info.apple.com/article.html?artnum=60351
    For your Power Macintosh AGP Graphics to use the FastMac or OWC 7455 processor CPU upgrade (or most others), you must upgrade it’s firmware to version 4.2.8. This cannot be performed using Mac OS X, you must boot into Mac OS 9 to upgrade the firmware. For firmware updates, please refer to this Apple document:
    http://docs.info.apple.com/article.html?artnum=120068
    One note, the 7455 processors will give you better performance (generally speaking) than faster 7447 processors of a higher speed.
    http://eshop.macsales.com/item/Other%20World%20Computing/MEG42M1500/
    http://store.fastmac.com/productinfo.php?productsid=13
    G4 AGP(450)Sawtooth   Mac OS X (10.4.8)   2ghzPPC,1.62gbSDRAM, ATI9800, DVR-109,(IntHD)120&160,LaCie160,23"Cinema Display

  • Do you have trouble with iPod Classic and Ford's SYNC?

    Anyone have trouble with Ford SYNC recognizing iPod Classic? When I first bought my Lincoln my iPod Classic worked perfectly--just like it should with Ford SYNC. But a few months ago, when I plug in the iPod using a USB cable I get the message on Ford Sync that says, "incompatible device". At first I thought it was a ford problem so I began testing using a 2010 Buick and a 2010 Lincoln Navigator. My iPod classic doesn't work in either. However, a iPod nano works perfectly in either car. Also if I put some of my music on a flash drive it works fine in the Lincoln. So, I'm convinced that the problem is some type of update that occurred to my iPod or to iTunes.
    I have tried several iPod Classics and several USB cables so it is definitely aiPod Classic software problem. By the way, my iPod Classics work fine by themselves--just not through Ford's SYNC.
    I'm pretty lost as to possible solutions.
    Thanks,

    I have done some experimenting and testing with my old Classic iPod that uses operating system 3.1.1. I don't think this operating system has changed. However, later generation iPods such as nano, shuffle that use a different operating system seem to work absolutely perfectly in my 2010 Lincoln Navigator, especially the ones without a hard drive (i.e. flash drive). My conclusion is that the Ford SYNC updates have somehow not been backward compatible with the older operating system. I know this can be attributed to Apple for part of the problem but I suspect that Ford somehow did not do enough testing with the older iPod operating systems. Turns out there are probably 7 or more operating systems on iPods and while you would assume that "backward compatibility" is a no-brainer, that seems not to be the case with second party vendors such as Ford SYNC. Personally, I have given up trying to solve this problem and have gone to flash drive and a "line in" option. My old Classic iPod works exceptionally well, plus I have a spare so I can probably use these thing till "H freezes over". Being a older retired American these things may actually last a life time!

  • JButton Background Color difference Windows/Solaris

    I have a GUI application that has several JButtons, and the program sets them to different colors based on data received from a network. The program was developed on Solaris, and the GUI has several users. We used setBackground(Color.XXX) to set the Colors. We have users that use the GUI on windows. On Solaris, the entire JButton becomes the desired color. On Windows, the JButton is gray, and only the outline of the button is in the desired color. Is there anyway to configure the Runtime Environment on Windows so that the entire button is the desired color. If not, what other options are there?
    Thank You in Advance for Your Help!!!

    I followed these threads and none of these solutions created the LAF I am after. What I ended up doing is creating my own "button" by extending JPanel. This has a consistent look across all LAF's & OS's I've tried it on. I just override mouseClicked to get the button specific behaviour that I need.
    private class MyButton extends JPanel implements MouseListener
    public MyButton(Color color)
    setBorder(BorderFactory.createRaisedBevelBorder());
    setBackground(color);
    addMouseListener(this);
    public void mouseClicked(MouseEvent e)
    public void mousePressed(MouseEvent e)
    setBorder(BorderFactory.createLoweredBevelBorder());
    public void mouseReleased(MouseEvent e)
    setBorder(BorderFactory.createRaisedBevelBorder());
    public void mouseEntered(MouseEvent e)
    public void mouseExited(MouseEvent e)
    }

  • Any mac pc differences with PSE 11 and premier 11

    There were a lot of differences between mac and pc versions of 9 and 10. Are there still the same limitations for mac users. Also has the time stamp problem that existed for mac users been corrected? Thanks

    What are the organizer problems? The only one I had with PSE9 was the time stamp change when I brought images into the organizer and then each time I edited an image another time stamp change. I assume you can do the slide show in premier but I have been using apple programs for that. Thanks again

  • JSF Datatable - Any difference with JSF1.1 and JSF 1.2

    In my project there are lot of Datatables, which retrieve data from the database and display it to the user. For each datatable, the columns are not fixed. I want to create some kind of component that can be reusable.
    It is basically a JSF portlet. Now i have to use RAD 6. RAD 6 supports only JSF1.1. I have to migrate this to RAD7 in the near future. Are there any differences between the Datatable in JSF 1.1 and JSF 1.2?
    I had this approach in mind.
    a) Create the datatable programmatically and put the contents to panelgrid. This way the jsp code will be minimized. Is it a good option.? Are the APIs same in both the versions?
    b) Is it possible to create a custom datatable which can take some key as input. Then based on the key the datatable can be populated with as many columns as desired.
    Please let me know if there are any other good options.
    ~Anitha.

    Doublepost. Please don't use the back button to edit a topic, you're going to repost it. Use the edit button. Continue here: [http://forums.sun.com/thread.jspa?threadID=5336694].

  • Difference with AS10g R3 and 10gR2

    What is the major architectural diference in 10gR3 ? Is it not using Infrastructure an other components like OID, SSO etc? When we install R3 installs only OC4J only? How to get other components like OID, SSO, Discoverer etc?
    Thanks

    10gR3 (10.1.4.0.1) is the release that contains IM components such as OID, SSO etc. You can use that with 10.1.3 OC4J based applications. Discoverer latest release is 10.1.2.0.2 and is based on 10.1.2 OC4J.
    Thanks
    Pavna

Maybe you are looking for

  • Filter in alv report

    hello! i have a weird problem in alv report with the filter function. for example the field serial like viqmel-serial, if it contains the value for example 1234 the filter want work. if it contains the value N16 the filter will work. i cant understan

  • Function modules calling Application server

    I am working on a SAP Migration for windows to unix. Right now I am patching up all custom programs which call the Application server using physical filenames and paths (platform specific) and replacing them with logical paths and names (platform ind

  • Super Clean re-install Question

    I have a Mac Pro 8 core tower with several internal hard drives. The one called Macintosh HD that came with it has been upgraded all the way since prior computers, migrations, etc. A newer 1TB drive was installed and a fresh OSX made it a bootable dr

  • Open the source code Adobe

    Come on, you know it's the right thing to do.

  • Row limitation for list of User Defined Values

    Dear all, I need to make list of User Defined Values at the field in SO. Is there any limitation of row quantity for that ? because the list will grow until thousand.. Regards Wibisana