Default Color  Problem

I Have a small problem, that I need some help on ...
I need to find the rgb value for the default background colors
of Panels. I used
new Color color = JPanel().getBackground();
int red = color.getRed();
int green = color.getGreen();
int blue = color.getBlue();
int alpha = color.getAlpha();
Result is (r=204,g=204,b=204,a=255) ........
Then When i try to set a Color of panel's background using these values
I get slightly a different color. (same color but the its darker)
new JPanel().setBackground(new Color(204,204,204,255));
Please tell me Why is this ?
I Really need to know the exact values of the default color .......
Thanks
Shirantha.

I have the same problem when using Forte for Java IDE. When I
create a swing component, its color is initially set to 204,204,204.
At least, that is what it shows in the properties table. If you change it to another
color and then later decide that you want it back to default and set RGB
values back to 204,204,204 the slightly darker color that you mentioned comes up!
I tried to trick Forte by editing the source code with an editor. I Compiled
the program and it worked fine. The problem came back as soon as I loaded
the class in the IDE again since the source file was re-built.
Is there anyone who experienced this problem before??

Similar Messages

  • How change system default color of highlighting typographic problems in InDesign?

    InDesign highlighting bad spaces with a yellow color makes it difficult to examine text in (for instance) wihite. Is there a way to change this default color to something else?

    Peter,
    Totally! But that doesn't show bad spaces!! That's why I have this question. Doesn't fix for me immediately. 

  • Glitches in address fill-ins with nicknames; default font problem; plus other glitches in Thunderbird 31.3.0 and 31.4.0; can I roll back to an earlier version?

    I am unhappy with the recent upgrade to Thunderbird 31.3.0 and now 31.4.0. My bottom line question is whether I can roll back to the previous version, which was working well for me.
    The problems I have encountered include:
    1. I used to be able to enter a single letter in many cases in the address field, and the autocomplete would fill in the entry that I always use with that single letter. That function has been lost, as has auto fill-in based on the nicknames I have entered in my Address Book. I see there is another thread on this problem (https://support.mozilla.org/en-US/questions/1036962), but no satisfactory answer so far. Entering a single letter now pulls up completely unrelated address entries that may not even have that letter as part of the name, address or nickname for that unrelated address. I have created new nicknames to try to adapt to this problem, but even these new nicknames no longer work with the 31.4.0 upgrade yesterday, forcing me to create yet more complex and hard-to-remember nicknames to pull up my frequent addressees. This is all very frustrating to me, as I depend on speed and ease when creating messages.
    2. Also, I used to be able to enter a single letter in the address field and then use the mouse to click on the "To:" symbol to the left of the next address line to change the next entry to "Cc:"; doing so would then cause the complete address to fill in in the "To:" address field, and make the next field ready for an entry. That no longer works. If I use that technique, the shortcut that I entered in the first field gets included along with the address (if I'm lucky enough to have the address itself selected now, given the problems I've mentioned above). I now have to press "Enter" in order to get the address in the first field to "take" correctly, and then have to click on the "To:" symbol for the next line as a separate action. Just another inconvenience with the new version.
    3. While still on the subject of addresses, personally I see no reason why the address and subject fields should now be colored blue by default rather than appearing as blank, white fields. I far prefer the old look. And I suspect that changing from the blue color to a nice, clean, white field takes time and computer resources that slow things down.
    4. The default font (Times in my case) no longer "takes" when replying to or forwarding messages. I've checked Tools/Options/Composition, and Times is still shown as my default font. However, when I start to type (in a reply with the original message quoted or in a forwarded message), the result is "Variable Width". In order to get Times, I need to highlight the block of text after typing, including the lead-in to the quoted message or the header of the forwarded message, and select "Times" when "(mixed)" shows up. This is a big pain; I often forget to do so and end up having to edit the Unsent Message (which I check before sending) as New and correct the font.
    5. A minor problem: I rely on the reminder to attach a message which shows up when an "attachment-related" word is entered in the body of the message. It has been a wonderful feature of Thunderbird that has prevented me on many occasions from sending off messages without the attachments. However, in the new versions, even if I have indeed added the attachment, a pop-up comes up on sending the message saying there has been no attachment and asking if I want to add one. It's easy enough to just click "No", but it's yet one more unnecessary and distracting step that this new version is requiring of the user.
    I'm really sad to see these various changes/glitches. I love Thunderbird and it bothers me deeply to find myself mired in so many new problems that slow down my work. I would be grateful for any suggestions and advice, and, particularly, for any information as whether I can roll back to the version prior to 31.3.0 that was working well for me.

    Thank you, Zenos. I tried rolling back to v31.2.0, since I had not encountered problems prior to December. However, that didn't help. So I followed your valuable suggestion to revert to v24.6; that seems to have done the trick.
    I would like to mark this problem as "Solved" -- the rollback seems to have worked. However, since my original post was a complex mix of things, before I do that, should I post the individual problem sets that I had noted (address fields/nicknames problems -- numbers 1-3; default font problem -- number 4; attachment reminder problem -- number 5) as separate issues which have not been solved?
    Do you know if these various issues are being worked on? I'm glad to have the temporary fix of rolling back to an earlier version, but I'd like to get back on the current update schedule at some point if and when these problems have been corrected.
    Thank you again!

  • Can I change the default color of a calendar event?

    I have a couple calendars that will be using the overlay functionality in 2010, and chosing colors for the overlays is no problem.  However the main calendar defaults to green, and then when you open any of the overlay calendars their default color
    is green on their calendar but different on the main version.  Is there a way I can change the default so that either the main calendar doesn't show green (then each overlay owner wouldn't be confused), or to change the seperate overlay calendars to have
    their default match the selected overlay color?Denzel

    Hi Denzel,
    SharePoint 2010 calendar makes use of CALENDARV4.CSS file.  The default location of this file is [C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\1033\STYLES\Themable\]
    Search for .ms-acal-item element in this CSS file and make changes to
    background-color property to suit your requirement.  A trial and error method could allow you to achieve your functionality.
    CAUTION: Kindly make backup of your original CALENDARV4.CSS file, before making any changes.
    There is a good reference/sample of Calendar Styles by Heather Solomon for earlier SharePoint version 2007 here:
    http://www.heathersolomon.com/blog/archive/2007/11/20/SharePoint-Calendar-CSS--Clean-and-Condensed.aspx
    Additionally, please make use of Internet Explorer 8 Developer Tools (F12) to further explore the overlay calendar CSS.  Hope this helps.
    Thanks & Regards,
    Kamlesh | Blog |
    Twitter | Posting is provided "AS IS" with no warranties, and confers no rights.
    If you get your Question answered, please come back and mark the reply as an Answer, so others can find it.
    If you get helped by an Answer to someone else's question, please vote the Post as Helpful.

  • Default Colors Limit for Graph in OBIEE 11g

    Hi, I'm using OBIEE 11g (11.1.1.6.6)
    When I use a graph (either bar or pie), I notice that OBIEE only has 12 default colors to use in the graph. So it starts from blue, red, and so forth, until the 12th color, then for the 13th color it will use the same blue again, and so forth.
    The problem is that my column values are more than 12 (it could be 20, it could be 30, etc). So, the repeating colors doesn't make any sense for the graphs.
    Could somebody please advise me on how to increase the default number of default colors used by OBIEE (so that it will be like 50 default colors set automatically by OBIEE, just in case)?
    Thanks so much!

    Hi,
    type HexaDecimal colors in google you will find n number of colors with the code number, just use this color codes by adding# before every code in the column format properties.
    for ex: #ccc99
    Follow this follwoing link
    http://www.google.co.in/imgres?imgurl=http://howto.websitespot.com/images/hexadecimal-color-chart.gif&imgrefurl=http://howto.websitespot.com/hexadecimal-colors/&h=706&w=498&sz=63&tbnid=9_3i-3tIMDNffM:&tbnh=91&tbnw=64&prev=/search%3Fq%3Dhexadecimal%2Bcolors%26tbm%3Disch%26tbo%3Du&zoom=1&q=hexadecimal+colors&usg=__nWfHEFVvPfjMfZyq2MxXkhJ-288=&docid=FXj6mM0pc4RQTM&hl=en&sa=X&ei=FDxJUc2cDqS8iwKetICACQ&sqi=2&ved=0CEAQ9QEwBA&dur=280
    Mark if Helpful/correct.
    revert me for any queries
    Thanks
    Edited by: 934322 on Mar 19, 2013 9:38 PM

  • How do I change the default color in pages.

    How do I change the default color in pages.  Everytime I try to copy and paste a passage, I am unable to do so because it seems that the ink is always white on white.  Sometimes I am lucky and can change it using the color box in the format bar, but it's a rarity when I'm able to do it.

    What version of Pages & what version of OS X are you using?
    A problem with an early Software Update for Snow Leopard caused a lot of problems. The problem is not whether or not your system is the current version but how it got there. You must use the combo updater, not the one from Software Update unless it specifically states it is the combo. Software Update will only offer the combo if your system is two or more versions behind.
    If you're not running the latest versions of the iWork apps & Software Update says your software is up to date, make sure the applications are where the installer initially put them. The updaters are very picky. If the location is not where the updater is programmed to look or if the folder doesn't have the name the updater looks for, it will not work. The applications cannot be renamed or moved. If you installed from the downloaded trial or the retail box, they must be in the iWork '09 (or '08 if that's what you're using) folder in Applications. That iWork folder must be named iWork '09. If it doesn't have the '09 Software Update won't find them & the updaters won't work.

  • Line chart with more than 15 data series - color problem

    Hi all,
    I've built a line chart with 32 data series (user can control, which of them are displayed at a time). For series 16 to 32 I did manipulate the URL in the browser directly, because Application Express does only display parametrs for up to 15 series. This works fine so far except of displaying the colors. For each sieries I defined a different color. 29 of my 32 series are displayed in the desired color. But series 29, 31 and 32 are displayed in a default-color (#0099CC). It seems that this is a SVG-problem. In the SVG-source I find the wrong color. When I export my application, I see the right color.
    Thanks for help,
    Chris

    Hello,
    Which version of APEX are you using?
    Go to your Flash Chart attributes - get into your series (click the icon) in the section of Series Query you'll find the maximum rows.
    Regards,
    Dimitri
    -- http://dgielis.blogspot.com/
    -- http://apex-evangelists.com/
    -- http://apexblogs.info/

  • ScriptUI: Change element back to default color

    I have a script in which I am changing the color of StaticText, but later want to change it back to the default color. Is there a way to set it back to "default", or do I need to hard code in a color that is the same as the default? The problem is that hard coding in a number will no longer dynamically react to changes in the UI color.
    var myWindGfx = myWind.grp.bottom.eight.update.graphics;
    myWindGfx.foregroundColor = myWindGfx.newPen (myWindGfx.PenType.SOLID_COLOR, [1, 0, 0], 1);

    Yep you're right.
    I had the && for some purpose but made changes to the script so they became redundant.
    In fact the script should remove the "if"s and be as follows.  This will make sure the values are reset to undefined when they should.
    // Theme Color Snippet by Trevor creative-scripts.com (Coming soonish!)
    // https://forums.adobe.com/message/7139857#7139857
    // Credits to Loic Aigon http://www.ozalto.com for the Basic Idea
    function addBiState (_parent, UIType, themeStateDetails, modifiedStateDetails, groupDetails) {
        var bounds, _string, setupProperties, newGroup;
        // Set theme group setup properties
        bounds = groupDetails && groupDetails[0];
        _string = groupDetails && groupDetails[1];
        setupProperties = groupDetails && groupDetails[2];
        newGroup = _parent.add('group', bounds, _string, setupProperties);
        newGroup.margins = [0,0,0,0];
        newGroup.orientation='stack';
        // Set theme state setup properties
        bounds = themeStateDetails && themeStateDetails[0];
        _string = themeStateDetails && themeStateDetails[1];
        setupProperties = themeStateDetails && themeStateDetails[2];
        newGroup[0] = newGroup.add(UIType, bounds, _string, setupProperties);
        // Set modified state setup properties
        bounds = modifiedStateDetails && modifiedStateDetails[0];
        _string = modifiedStateDetails && modifiedStateDetails[1];
        setupProperties = modifiedStateDetails && modifiedStateDetails[2];
        newGroup[1] = newGroup.add(UIType, bounds, _string, setupProperties);
        newGroup[1].visible = false;
        return newGroup;
    Group.prototype.biStateChange = function (state) {
        if (state) {
            this[+state].visible = true;
            this[+!state].visible = false;
        else {
            this[0].visible = !this[0].visible;
            this[1].visible = !this[1].visible;
    /********** Example Usage *************/
    var w = new Window('dialog'),
        greenPen = w.graphics.newPen(w.graphics.PenType.SOLID_COLOR,[0, .6, .2],1),
        yellowBrush =w.graphics.newBrush(w.graphics.BrushType.SOLID_COLOR,[1, 1, 0],1),
        myBiStateButton = addBiState (w, 'button', [undefined, "Theme"], [undefined, "Green"]),
        myBiStateStaticText = addBiState (w, 'staticText', [undefined, "Theme"], [undefined, "Green"]),
        stGroup = w.add('group'),
        st = stGroup.add('statictext', undefined, "Toggle"),
        highlightGroup = addBiState(stGroup, 'group');
    st = highlightGroup[0].add('statictext', undefined, "highlight")
    st = highlightGroup[1].add('statictext', undefined, "highlight")
    myBiStateButton[1].graphics.foregroundColor = greenPen;
    myBiStateStaticText[1].graphics.foregroundColor = greenPen;
    highlightGroup[1].graphics.backgroundColor = yellowBrush;
    highlightGroup[0].margins = highlightGroup[1].margins = [3, 3, 3, 3];
    stGroup.spacing = 4;
    myBiStateButton.addEventListener ('mousedown', function () {
        myBiStateButton.biStateChange();
        myBiStateStaticText.biStateChange();
        highlightGroup.biStateChange();
    w.show();

  • Change (default) color 'blue'

    Hello experts,
    my problem: i want to change the default color 'blue'. In 'green'. I meen for example ui-element captions is with the attribute rowBackgroundDesign blue, or by tables with CellDesign standard are the readOnly columns blue. I want it in green.
    Can anybody help me? What must i do?
    Thanks for help
    greetings
    Raier

    Hi Rainer,
    there is no direct property like semanticcolor for label , you have to change through kind off design..
    which release you are working on.. i have an idea u go to application configuration in admin mode and go to UI element property and as ulltimately HTML is rendered so there is a trick to handle this..
    For the “Width” parameter, you enter
    6ex; color: white; font-weight:bold; background-color: yellow
    this is a trick and it works for releases prior to NW 7.1
    Let me know if it needs more explanation..
    Regards
    Anuj Goyal

  • Hyperlink Default Color

    I don't know if it's just me but the default color for my iWeb hyperlinks is brown. Is there any way I can change the default color to blue or another? Of course, I can change links individually but I'd rather not have brown as the default.
    Thanks.

    Hi mrsfarley, welcome to the discussions.
    It may be that with the template you are using, the visited links are a different colour from unvisited links. This is to tell the visitor that they've already been to those pages previously. Since you've been browsing your own site to test it, it may be that is what you are seeing.
    Try a browser you've not used, eg Firefox, Opera etc to see if that is what the problem is - all your links should be the same colour until you start clicking on them.
    Michael
    iMac 20" Intel Core Duo 2GHz

  • Cursor and annotation default color

    Hi,
    I am looking for a way to change default color for graph annotations and cursors. The default color is a bright yellow. I am using white background graphs and they are almost invisible. Since I did dot find a way to change the default color, I looked for a way to detect that a cursor or annotation was placed on the graph but there is no such events. Right now, the only way I found to solve the problem is to read periodically the annotation and cursor lists, and change the colors of the found cursors to black. However, this solution consumes precious CPU tile on my 500 MHz Geode.
    If there was a way to simply  change the default color, that would be the best solution.
    Anybody has an idea about how to do it?
    Al Capote
    Al Capote
    Certified LabVIEW Architect
    Solved!
    Go to Solution.

    Hi Al,
    I do something similar in one of my
    applications, where a user can add cursors. I hijack the add cursor
    event and set the cursor parameters before I add the cursor to the
    cursor list.
    This isn't the same as
    setting the default colour and I'm not sure how much CPU time it would
    save but it may be worth a go.  Make the cursor definition cluster a
    typedef.
    I know the build array may be a problem, but this is just a quick fix 
     Dave
    Message Edited by DavidU on 10-06-2008 12:29 PM
    Attachments:
    CursorColour_BD.png ‏7 KB

  • Lightroom color problem...

    I have calibrated my Dell monitor with EyeOne Display 2. The profile created by the EyeOne Display 2 is in the standard location "C:\WINDOWS\system32\spool\drivers\color". This profile has been set as the default profile for the monitor.
    I edit from RAW pictures in LR. Once I am satisfied with the colors, then exported pictures to JPEG using SRGB profile and the "EyeOneXXX.icc" profile calibrated using EyeOne Display 2.
    The pictures that got exported using "EyeOneXXX.icc" when viewed in a color management enabled FireFox browser look identical to what I see in the Lightroom. The pictures that got exported using "SRGB" has little less saturation when viewed in color management enabled Firefox browser than that looks in the LightRoom. What is the reason for this difference.
    Usually how should I export i.e. should I export to SRGB or monitor calibrated profile when I need to send them to print at Costco.
    Also, Costco has their printer profiles online. Should we use it soft proof it or should we use it when exporting to JPEGs in LR.
    Thanks
    Chandra
    Software: LightRoom 2.3
    OS: Windows Vista Home Premium
    Monitor: Dell (Connects HP laptop to this monitor during editing)
    Calibration: EyeOne Display 2
    Camera : Nikon D90
    Lens: Nikon 18-105mm that comes with Nikon D90

    What do you mean by "I should use standard color profile SRGB"? Do you mean that I should use SRGB as color profile in LR when exporting to JPEG.
    I calibrated my 19 inces Dell monitor connected to my latop using Eyeon display 2. The options I have used while calibrating are "Native WHite, Gama 2.2" My monitor color temperature is set 5000K. The profile created by calibration is used as the default color managment profile for the monitor.
    Also why is the following problem happening.
    I usually edit RAW photos in LR in a calibrated monitor as per info. given in the signature. After editing, I exported photos using SRGB and "EyeOneXXX.icc" i.e. Calibrated Monitor profile.
    I printed the pictures in Costco. The photos with SRGB have redish cast. The photos exported using Monitor profile are under saturated than the photos I see in the Lightroom.
    If I load the photo exported using monitor profile in CS3 and select "View -> Proof Setup -> Windows RGB", the picture show in CS3 under these conditions are similar to the prints at Costco i.e. lot under saturated. If I select "View -> Proof Setup -> Monitor RGB", the picture looks like in LR.
    If I load the photo exported using SRGB profile in CS3 and select "View -> Proof Setup -> Windows RGB", the photo looks like in LR. If I select "View -> Proof Setup -> Monitor RGB", the picture looks like the prints at Costco i.e. lot over saturated.
    In CS3 on the monitor the photos under the following two conditions are identical:-
    1. Photo exported using monitor profile and the proof setup option in CS3 is "View -> Proof Setup -> Monitor RGB"
    2. Photo exported using SRGB profile and the proof setup option in CS3 is "View -> Proof Setup -> Windows RGB"
    I even soft proofed the Costco Printer profiles. The corresponding photos viewed under costco print profile is almost identical to the photos seen in the 1 and 2 options described above.
    I basically want the photos to look like what I see in LR. From the above information what could be the problem I am having i.e. why are my printed photos does not look like in LR.
    Thanks
    Chandra

  • The Swatches palette default color names

    Hi,
    I'm using Illustrator CS3 and I have a problem with the default colors in the Swatches palette.
    Basically, every time I brush my cursor over the colors, I get names like C=85 M=10 Y=100 K=10 instead of sunshine, or C=75 M=0 Y=75 K=0 instead of peridot, proper color names that I should see.
    Please help me out to display the right name settings since it will be easier for me to do my work. My Illustrator level is basic as I only took an introductory course, but will get better as I intend to put many hours of practice.
    Thanks in advance.

    PeeWee:
    I am using CS3 and I'm pretty sure the colors in the standard palettes have only been called C=stuff M=stuff Y=stuff K=stuff all along. I don't think they have other names. Adobe decided against sunshine... ;). You could start a new document, change the color swatch names and save that altered file as a template, then use that from now on.
    If you were an advanced user, you could also locate the cmyk and rgb default files and change those.
    To change a swatch name, double click the swatch and change the name in the dialog that comes up, then close the dialog and voila!
    HTH
    Bert

  • Exporting Tifs:Default Color Space is sRGB

    I'm flabbergasted.
    Again, without warning, Aperture is altering my files. This seems to be part of the design philosophy.
    Go to Output>Export Version.
    From the drop down you can choose a variety of formats. Go to the bottom to Edit...
    And you will see that the default color space for all formats except PSD is sRGB.
    As if that weren't bad enough, there is an option for Black Point Compensation (off by default) and a Gamma slider......with no preview.
    Even with Source Profile selected (shouldn't THAT be the default for heaven's sake?) the black point compensation button and the gamma slider are available to be invoked.
    fp

    It's even WORSE than that:
    I exported a tif from Apeture:
    8bit
    Source profile
    I sent the same master to Photoshop, converted it to 8bit and saved as a Tif with LZW compression.
    First off, since you cannot specify compression when exporting from Aperture the Aperture file was twice as large, 35.1mb vs. 17.3mb for Photoshop.
    But that's not the bad part.
    The Bad part is that the Aperture file had suffered visible damage in the conversion with a visible loss of shadow detail. The Photoshop version had not.
    I tried this a number of times. Interestingly each time I specified Source Profile the dialog box had returned to sRGB when I checked it again. But that wasn't the problem.
    When I changed the export to 16bit tif instead of 8 bit two things happend:
    First, Aperture created not one, but two exports of the same file on my hard drive. I trashed them and tried it again with the same results.
    Second, the 16bit Aperture tif looked very much like the 8bit Photoshop tif. UNTIL I converted the 16bit Aperture tif to 8bit at which point the shadows fell apart just like they had in the 8bit Aperture conversions.
    Very, very bad.
    fp

  • Help, Does anyone know why my default color change when running a action?

    I have just bought and installed cs3 extended and when I run a action after a few steps it changes my default colors back to black and white and then at the end of the action it changes back to the colors I picked for the element I am making but the results are a black element. I have downloaded and ran the update to 10.0.1 and am not aware if there are others or if this is just a setting I can make inside the program. Please help! Thanks Jana

    well, I am talking about the default color buttons on the left hand side toward the botton but, the action says at the first to pick the color of your flower so I pick red and the action takes off... then a few steps in it would change to black and white and then back to red and white at the end but the flower came out all black. Okay I am tell you this because so if anyone else has this problem they will know.
    This morning I got up and uninstalled my later version of Photoshop PSE6 that was still on my computer( after moving all shared files needed for new PS to my external HD) and deleted the action (drag to trash can ) then loaded the action again and it worked fine pretty little red flower! Now I hope it will remember my styles! I have had to reload them twice.
    Thank you, Jana

Maybe you are looking for

  • Notification sounds/vibrate not working iOS 5

    Updated to ios 5....I have several notifications other then just email and SMS...CNN, breaking news...the like. The apps themselves have sound preferences...and I have their sounds set in notification as well. Yet the pop up shies up at top...no soun

  • HT1414 I have forgotten my password, how can I access my backup?

    Can anyone help?

  • Pfadtext mit Unterstreichungen als Schlatfläche in InDesign CS5.5

    Hallo, ich bin auf der Suche nach einer Lösung für mein Problem. Leider hat mir die Suche noch kein Ergebnis gebracht, weshalb ich die Frage hier stelle: Wie  bekomme ich es hin dass ich in einem Fießtext Textelemente mit Unterstreichungen zu Pfaden

  • Can't open any videos from the web

    Hi! I can't open youtube, IMDB or dailymoyion in my MacBook Air, all of a sudden.  I am using MAC OSX v. 10.6.8.  Can anyone help me? I tried every answer available on the internet...

  • Printing in Web Dynpro

    Hi all, I need to print a content of a TextEdit UI Element in Web Dynpro. What will be a simple way to send this text content (context attribute of type STRING) to a printer which is set in the profile for  the current user? Kind regards, Oleksandr