Getting back the default color....

Hi there!
When you change the color of a component is there an easy way to switch it back to the UI-default color that it had when you started the application (without having to save the original color)?
Regards

I set a lot of customs defaults when I start the application
(UIManager.put("TextField.background", new ColorUIResource(...)
But when the users work with the application some components get changed their color in case the user enters wrong values or whatever.
This is done directly with setBackground... /setForeground..., my customs values in the UI defaults table remain untouched.
I just need a way to tell all components to look what their default color is depending on the value in the defaults table and set that color accordingly.
This will clear all warnings in the GUI that have been set due to wrong inputs by the user and now he deserves a second chance to enter correct things.
Something like updateComponentTreeUI?

Similar Messages

  • Please can someone help me to get back the default colours on my mac book pro

    Help can anyone out there please help me get back the default colour settings on my mac book pro!

    Hi, thank you very much for your reply. I finally found out how to solve the problem. In System Preferences you go into Accesibilities and then you have to uncheck the box for Invert colour, somehow this got checked (no idea how!) anyway if checked all the colours go weird and photos & pics look like negatives. So I hope this will help other people too if they ever get this problem.
    Best wishes

  • How do I get back the default skyline Y450 7 wallpaper

    I just got a Y450 yesterday. I installed Win 7 Home Premium. It came up with this cool skyline wallpaper that changed as the day got later. It started out sort of orange with the sun up and during the day the sun went down, then a blimp came across the sk,y and by night the wallpaper turned blue and there was a moon in the sky.
    So my problem, I was playing with the slidenav and it changed the cool wallpaper to one of the installed pictures in the picture library. When I went to put the default paper back that was first installed I couldn't find it. I spent today loading additional software and looking for that wallpaper. I thought I had it last night when I was able to go to the guest account and save the theme, but the only thing it did was save the night picture and it never changed today.
    Anyone know how to get the originally installed wallpaper back? Where'd it go?
    Note from Moderator:  Please don't post the same message in multiple boards/threads as it splinters the discussion.  Duplicate(s) removed.
    Solved!
    Go to Solution.

    After you click Personalization, click on the Desktop Background icon on the botton (next to Window Color). In the new window, choose Alive Idea Desktop for Picture Location. It should be located there. It was where I found the theme again.

  • How can I get back the default system files icons to my fles?

    Hello,
    After installing an application like FontExplorer, all my fonts got it's icon.
    I went to a font, selected and did get info, I tried to delete the icon but could not.
    I know the default icons for OTF fonts and an italic O, half green, half black.
    How can I get those Icons back,
    Or in general,
    When files gets an application icons, how can I restore the default icons for files?
    Thank you
    Shlomit

    Icons in the Get Info pane can be changed back to the original icon by clicking on the icon once, to highlight it, and then pressing Control X (for cut).
    But in your case the font icon is probably more due to the association with the application selected to open it with, ie FontExplorer. So with the Get Info pane open for a selected font type you need to change which application you use to open it with. For example, if you select one of the OTF fonts and do a Get Info, in the Open With pane it will show FontExplorer. Change this to Font Book and it should change its default icon.

  • How do I get back the default "AllDeviceGroup"?

    Somehow I deleted the AllDeviceGroup in WAAS 4.1.1d through the Central Manager GUI. What is the best method for restoring that group? I've rebooted the CM, and the other WAAS devices and there is still no AllDeviceGroup.
    I didn't think one could delete a default group like that, but I did.

    Recreate the group (you can name it AllDeviceGroup or anything else) and make it a baseline group. That will have all the devices added to it automatically and all new devices will be added to it as well.
    Once it's created, then you can re-add the settings that you had configured in the old one.
    Thanks,
    Dan

  • How can I get back to default in System pref/ displays/ color. iMac 10.9.5

    How can I get back to default in System pref/ displays/ color?  iMac 10.9.5

    Select the iMac option.
    27" i7 iMac (Mid 2011) refurb, OS X Yo (10.10), Mavs, ML & SL, G4 450 MP w/10.5 & 9.2.2

  • Can I get back the color control bar?

    After a 5 hour download and install, the most noticeable change is that Apple changed the left-hand side control bar from colored to all gray. 
    Frankly, I've been very disappointed with Apple's design changes lately, and this one is another example, although, I love the new translucent trash can.  I've figured out work-arounds to many of the changes I find most offensive (e.g. my folders are no longer Yosemite-native neon blue.) 
    Is there a way to get back the colors on the left-hand side control bar in iPhoto? 
    I don't mind digging through hidden folders and re-building the icons so that my interface looks good again.  Any suggestions are appreciated.

    If you want to restore the color to the Finder's sidebar give the open source application cDock a try.  You can change the Dock's background scheme (I use transparent) and add color icons to the Finder's sidebar:

  • Embed ColorSync profile, how to get back to original color profile?

    I am a bit shocked , experienced today that iPhoto by default embed ColorSync profile (found under general- advanced settings for iPhoto) to every photo imported.
    I always believed (and trusted) iphoto did not change the original file from the memory card. I have compared today the file from the memory card and the one found under originals in iPhoto library and see now that iphoto darken the shadows area a bit, in my eyes not a good thing.
    So my question is , is the process done by iPhoto reversible? Can I get back the original profile (sRGB I believe) for my photos?

    iPhoto by default embed ColorSync profile (found under general- advanced settings for iPhoto) to every photo imported.
    Well let's get past the shock for you. It doesn't.
    If the photo has a pre-existing color profile then the file is not touched. iPhoto uses the one already embedded. It only adds a profile if 1: there is none present and 2. If you check the box.
    The profile attached is virtually indistinguishable from sRGB, just adapted slightly for Apple monitors.
    Search the Help for ColorSync. This explains it quite clearly.
    Regards
    TD

  • Is there a way to change the default colors for iPad apps?

    I noticed one of my friends iPad 2 had a different color scheme for apps and I would like to change my iPad 2's default ( which is currently grey). To elaborate, the default color for the borders and tabs in Safari are grey on my iPad, my friends are blue. Would like to change from the drab grey color to blue also but I cannot find a setting for this. All applications and Setup apps have this default color scheme on my ipad. Do I have to reset the iPad and start over with setup to achieve this? Hope not, perhaps someone can shed some light on an easy way to do this. Thank You!

    You can apply  system-wise "negative" color effect under Settings > General > Accessibility, by toggling the White and Black switch - and, in iCab Mobile (and some other, better browsers / PDF readers), its own "night mode" negative color scheme.
    Otherwise, no, you can't do anything else except for asking third party app authors to add selectable back/froeground (=text) colors to their apps.
    There is an article dedicated to this question: http://www.iphonelife.com/blog/87/do-you-find-your-idevices-screen-be-too-blueis h-or-just-too-harsh-bedtime-reading

  • I have Windows 7, Microsoft Outlook and PSE 13. I have used the "Share photos as embedded images" feature frequently, but today when I went to use it, it wasn't there, only the option to send email with files attached. How do I get back the ability to sen

    I have Windows 7, Microsoft Outlook and PSE 13. I have used the "Share photos as embedded images" feature frequently, but today when I went to use it, it wasn't there, only the option to send email with files attached. How do I get back the ability to send emails with photos embedded. I like adding the frames and backgrounds and I think it's easier for recipients to look at the photos. Thanks for any suggestions of things to try.
    Gail

    I had a similar problem in that my wife's iphone 5 could not send pics with imessage.  Had to set the settings to default to SMS or whatever.  After laboring many hours on the web I coincidentally was on the phone with the internet people to question my internet speed.  They changed the router channel, which is something that I am capable of doing myself.  After that, the pics go over imessage.  My own Iphone didn't have the problem.  We are both latest IOS 7.0.6.

  • How do I get back the 'open new tab' button (+ sign at right end of tabs) in Firefox 4 ?

    How do I get back the 'open new tab' button (+ sign at right end of tabs) in Firefox 4 ? I realize there is a 'new tab' button at the right end of the toolbar but I like the new tab function placed next the tabs ?

    See also:
    *Tools > Options > Privacy > History: "Remember search and form history"
    *https://support.mozilla.org/kb/Form+autocomplete
    The "Use custom settings for history" setting allows to see the current history and cookie settings, but selecting that setting doesn't make any changes to history and cookie settings.<br />
    Firefox shows the "Use custom settings for history" setting as an indication that at least one of the history and cookie settings is not the default to make you aware that changes were made.<br />
    If all History settings are default then the custom settings are hidden and you see "Firefox will: (Never) Remember History".<br />

  • How to I get back the work I had? I didn't save my work so i'm back to square one

    I was editing a video when Something happened. I don't know if  I saved my last edit but now i'm back to square 1 from when I began editing. How to I get back the work I had? I want to go back to the most recent edit I had but i'm not sure if I saved that edit. I'm not sure i'm being very clear on what i'm saying but I REALLY need help.

    by default (unless you moved it):
    root/user/documents/adobe/PremierePro/8.0/Adobe Premiere Pro Auto-Save
    the path is via 'My Documents' on win and of course the 8.0 would be 7.0 (or earlier) if that's the version you're on.

  • 10g Graphs - How to customize the default color of a Bar Graph

    Hi,
    I've posted this thread in Reports section, have received no reply yet. Maybe no one has ever tried this before!!
    I am porting a couple of 6i OGD's to 10g graphics.
    Basically I am invoking reports from a form. The reports contains embedded Graph.
    Here comes the tricky part.
    I have a couple of Graphs in 6i that display each bar of a bar graph in different color.
    Example:
    Value       Bar Color
    Critical     Red
    Major       Orange
    Minor       Yellow
    None       GrayQ) I want to know how to set the color of each bar of a bar graph based on the value it takes. i,e If it's critical the bar should be displayed in red. If it's major, the bar should be displayed in orange.
    I added conditional formatting in 10g Graph, and this is the trigger that was created.
    function CT_1FormatTrigger return boolean is
    begin
      -- Automatically Generated from Reports Builder.
      if (:f19 > -1)
      then
        srw.set_foreground_border_color('yellow');
        srw.set_border_pattern('solid');
        srw.set_foreground_fill_color('yellow');
        srw.set_fill_pattern('solid');
      end if;
      -- Automatically Generated from Reports Builder.
      if (:f20 > -1)
      then
        srw.set_foreground_border_color('red');
        srw.set_border_pattern('solid');
        srw.set_foreground_fill_color('red');
        srw.set_fill_pattern('solid');
      end if;
      return (TRUE);
    end;When I try to invoke the above report from the form, I get the error: FRM-41214: Unable to run report.
    If I remove conditional formatting, I am able to invoke the report from the form with the default color in the embedded graph.
    Hopefully someone has ideas on this!
    Thanks

    Why don't you use the build-in charting capability of reports 10g instead? There is FormsGraph.jar implementation for forms but that might not have the flexibility of what 6i graphs has/had and not "officially" supported - not like the reports 10g charting capability (which is built in and can be customized by editing the related xml files (if necessary). Note: FormsGraph.jar has it's own limitations

  • 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();

  • TS1544 Can I get back the wiped key chain Infomation?

    can I get back the set aside wiped original default keychain?Lost all passwords crest etc can no longer run many programmes help??

    Nope.

Maybe you are looking for