Problem changing colors in PS CS5

I'm working in RGB 8-bit color, using Image>Adjustments>Replace Color to replace a tan with a bronze.  The RGB for the bronze is 77, 64, 15.  Using a converter (http://serennu.com/colour/hsltorgb.php), I found the corresponding HSL to be 47, 67, 18.  However, when I enter these values into the Replacement area of the Replace Color dialogue box, I get a fairly bright yellow instead of a dark bronze.  Can anyone suggest a fix?

The RGB for the bronze is 77, 64, 15.
Bronze is a metal, so how we are likely to perceive it is not determined by a color alone but by its surface’s reflective properties (and therefore also by the surroundings).
Replace Color is destructive and therefore, in my opinion, worth avoiding.
I would instead recommend using the Selection Tools to create a Layer Mask for a Group and populating that with a Solid Color Layer set to Blend Mode Color and a Curves Layer to edit the contrast and brightness.

Similar Messages

  • Changing Colors in Photoshop CS5

    I have a picture and the girl is wearing a red sweater. How can I change said red sweater to black using photoshop CS5? Thanks a lot!

    This is one of many dozens of Adobe forums. You've chosen one where we talk about Acrobat Forms.
    To reach the right experts you need to pick the forum carefully.
    Maybe someone will move this post, but there's no need to wait, you can post a new message in a Photoshop forum.

  • Problems Changing Colors

    I have an image that is in grayscale colors but the image itself is in RGB. I'm attempting the change the color but regardless what color I select for "Replace Color" the image will turn a shade of gray, not the color chosen. I've checked all the help and forums I can find with no success.

    Joe Hegyi III wrote:
    Thanks for all of your help.
    Can anyone tell me why what I initially tried wouldn't work?
    I tried the same thing in the software I had been using (Corel Photo-Paint) and it worked perfectly.
    I assumed the same command in Photoshop would produce similar results.
    As MTSTUNER said, Replace Color doesn't affect pure black and white, but you can have the same controls by using Hue/Saturation from the Image > Adjustments (Ctrl +U) or as Adjustment layer and it will work. Make sure to click the Colorize box. I got nice results playing with your logo image example by setting the Lightness above 20, high Saturation, and moving the Hue slider.
    Yet another completly different way to colorize with numerical precision which can also make your image a transparent layer.
    Select all (Ctrl+A) and Copy (Ctrl + C).
    Go to the Channels panel, click the second button at the bottom to create a new Alpha channel, click on the Alpha channel to select it, paste (Ctrl + V), and press (Ctrl + I ) to invert.
    Hold Ctrl and click on the icon of the Alpha channel to load the selection, and press Ctrl + 2 to get back to the RGB layers editing.
    Go to the Layers panel (F7), click on the button next to the trash button at the bottom to create a new layer, and press (Alt + Delete ) to fill with the foreground color.
    Create a new white layer under it or fill the background layer with white to see the final effect. You can also fill (Alt + Delete) with another foreground color at any time after locking the layer's transparency by checking the first button next to Lock at the top of the layers panel.
    Hope that helps

  • Changing color without modifying existing items.. problem!

    Hello,
    I'm reletively new to flash, and am trying to modify a template and am running into a problem and I don't seem to know why Flash is acting so strange.
    I am going into a movie clip to edit the color of an item, and when I do so with a tint, it overrides any additional effects such as light, and text. The color appears almost as if it were just slapped on top of everything.
    When I edit the color in advanced mode, it is really a hit-or-miss to get the correct color, and will only modify when changing the offset RGB.
    And also when doing this, the text gradually changes color, for example: there are 4 items in total that I want to edit the color of. Each item is a different colored box with text on the front (for a main Navigation of the website). --- The first item, the text will stay white. Gradually through the second and third items it starts to change, and by the fourth / last item, the text is completely blue.
    Is it possible for a portion of text to be connected somehow to an object within the animation in a movieclip? If so, is it possible to go inside and edit this? -the shape, animation, and text?
    Is there an easier way to change the color of an item inside a movie clip? I can supply additional information if needed.. files etc.
    Am I doing something wrong / completely missing something?
    Thank you very much in advance for any help and/or advice!
    New Flasher,
    Lisa

    go one level deeper than the movieclip so you're editing the shape.

  • Problem of variation of color between Firewoks CS5 and CS6 ?

    Hy everyone !
    I have problem of variation of color between Firewoks CS5 and CS6.
    An Hexa color defined in a CS5 file, dont have the same Hexa component when opened with Firewoks CS6 ?
    Example with au GREEN color :
    #80BB39 (Created with Firewoks CS5)
    is becoming
    #7FBC2E (When opened with Firewoks CS6)
    Thank's for your help.

    Nemo71 wrote:
    I have had a problem with opening some PSD template files.  It doesn't happen all the time and it doesn't happen with every template.  All of the templates were downloaded as zip files and opened and saved using Photoshop CS 5 on a Windows XP PC. 
    As far as I know Photoshop can not open Zip files.  If you unzip the zip archive and it contained PSD files.  How do you know they were all saved on a XP system with Photoshop CS5 with max compatibility.  The message you getting seem to be contradicting that.

  • I am having a problem changing a color in a selected area. Using the Quick Selection tool I am able to select the area I wish to change. Using the Brush tool, color, color mode and click drag in my selected area, nothing happens, no color changes.   I hav

    I am having a problem changing a color in a selected area. Using the Quick Selection tool I am able to select the area I wish to change. Using the Brush tool, color, color mode and click drag in my selected area, nothing happens, no color changes. I have viewed some videos and read numerous articles but haven't found the one to help me. Please point me in the best direction. Thank you Vincent TC

    For the sake of clarity and to save people time, Todd is asking about the behaviour of the Patch tool when using it to repair the area next to the young lad's head.  Todd gets a blurred dark tone pretty much regardless of the options he uses.
    IMO that's what I would expect to happen because of the close proximity of the other image elements i.e. the lad's neck and the strong lines of his shirt.  I would not choose to use the Patch tool in this situation.  Content Aware Fill makes a better stab at it. 

  • Confused about Color Management in CS5 (Photos appearing differently in all other programs)

    I recently noticed this and it's been driving me crazy; when I view photos in Photoshop CS5 they appear significantly lighter/more washed out than when viewed in other programs like Zoombrowser, Digital Photo Professional or just in a regular Windows folder using Filmstrip mode (Windows XP).  When opening the same photo in both CS5 and Zoombrowser and switching back and forth between the two windows the difference is very apparent...for example, one of the photos I compared was of a person in a black shirt -- in CS5 (lighter/washed out) the folds in the shirt were very obvious, but in Zoombrowser (darker, more contrast/saturation) the folds were nearly invisible and it looked like just solid black.  Now, after messing around with the settings in both Photoshop and in Zoombrowser I've found a few ways to get the photos to look the same in the two programs; one way gives them both the lighter/more washed out appearance and another way gives them both the darker appearance with more contrast and saturation.  My problem is that I'm not sure which view is accurate.
    I use a NEC MultiSync LCD1990SXi monitor with SpectraView II calibration software and calibrate it every 2 weeks using these calibration settings (screenshot): http://img52.imageshack.us/img52/8826/settingsx.jpg
    In the SpectraView II Software under Preferences there's an option that says "Set as Windows Color Management System Monitor Profile - Automatically selects and associates the generated ICC monitor profile with the Color Management System (CMS)."  This option is checked.  Also, when I open the Windows' Color Management window there's only one option displayed, which is "LCD1990SXi #######" (the ####### represents my monitor's serial number).
    I assume the above settings are all correct so far, but I'm not sure about the rest.
    Here are my current default Color Settings in CS5 (screenshot): http://img97.imageshack.us/img97/666/photoshopcolorsettings.jpg
    Changing these settings around doesn't seem to make the photo appear much different.  However, when I go to Edit -> Assign Profile, then click off of "Working RGB: sRGB IEC61966-2.1" and instead click Profile and select "LCD1990SXi ####### 2011-06-21 18-30 D65 2.20" from the drop-down menu, the picture becomes darker with more contrast and saturation and matches the picture in Zoombrowser.  Also, if I select "Adobe RGB (1998)" from the drop-down menu it's very similar in terms of increased darkness and contrast but the saturation is higher than with the LCD1990SXi setting.  Another way I've found to make the image equally dark with increased contrast and saturation is to go to View -> Proof Setup -> Custom and then click the drop-down menu next to "Device to Simulate" and select "LCD1990SXi ####### 2011-06-21 18-30 D65 2.20" again.
    Alternatively, to make both images equally light and washed out I can go to Zoombrowser -> Tools -> Preferences and check the box next to "Color Management: Adjust colors of images using monitor profile."  This makes the image in Zoombrowser appear just like it does in CS5 by default.
    Like I said, I'm confused as to which setting is the accurate one (I'm new to Color Management in general so I apologize for my ignorance on the subject).
    It would seem that assigning the LCD1990SXi profile in CS5 would be the correct choice in order to match the monitor calibration given the name of the profile but the "Adjust colors of images using monitor profile" option in Zoombrowser sounds like it would do the same thing as well.  Also, I've read that Photoshop is a color managed software whereas Zoombrowser and Windows Picture and Fax Viewer are not which makes me think that maybe the lighter/washed out version seen in Photoshop is correct.  So which version (light or dark) is the accurate one that I should use to view and edit my photos?  Thanks in advance for any help or info.

    Sorry for the late reply;
    But before we go there or make any assumptions, it's important for
    you to determine whether you're seeing consistent color in your
    color-managed applications and only inconsistent color in those that are
    not color-managed.  For that you'll need to do a little research to see
    if the applications in which you're seeing darker colors have
    color-management capability (and whether it is enabled).
    I opened the same picture in 7 different applications and found that the 6 of the 7 displayed the photo equally dark with equally high contrast when compared to the 7th application (CS5).  The other 6 applications were Zoombrowser EX, Digital Photo Professional, Windows Picture and Fax Viewer, Quicktime PictureViewer, Microsoft Office Picture Manager and Firefox.
    However, at least two of these programs offer color management preferences and, when used, display the photo (from what I can tell) exactly the same as Photoshop CS5's default settings.  The two programs are two Canon programs: Zoombrowser EX and Digital Photo Professional.  Here's the setting that needs to be selected in Zoombrowser in order to match up with CS5 (circled in red):
    And here's the setting in Digital Photo Professional that needs to be selected in order to match up with CS5 (again, circled in red):
    *Note: When the option above "Monitor Profile" is selected ("Use the OS settings") the image is displayed exactly the same as when the monitor profile is selected.  It's only when sRGB is selected that it goes back to the default darker, more contrasty version.
    So with the red-circled options selected, all three programs (CS5, ZB, DPP) display the images the same way; lighter and more washed out.  What I'm still having trouble understanding is if that ligher, more washed out display is the accurate one or not...I've read several tutorials for all three programs which only make things more confusing.  One of the tutorials says to always use sRGB if you want accurate results and *never* to use Monitor Profile and another says that, if you're using a calibrated monitor, you should always select Monitor Profile under the color management settings...so I'm still lost, unfortunately.
    What I also don't understand is why, when the monitor profile is selected in CS5, the image is displayed in the dark and contrasty way that the other programs display it as by default but when the monitor profile is selected in Digitial Photo Professional it displays it in the lighter, more washed out way that CS5 displays it using CS5's default settings (sRGB).  Why would selecting the monitor profile in DPP display the photo the same way as when sRGB is selected in Photoshop?  And vice versa...why would selecting the monitor profile in Photoshop display the photo the same way as when sRGB is selected in DPP?
    I feel like I'm missing something obvious here...which I probably am.  Again, I'm very new to this stuff so pardon my ignorance on the topic.
    By the way, I find that the way that the non-color managed programs (Windows Picture and Fax Viewer et al.) display the photos is more aesthetically pleasing to the eye than the duller, more washed out display that CS5 gives the photos, but ultimately what I want to see in these programs (especially PS5 where I'll be doing the editing) is the accurate representation of the actual photo itself...i.e. what it's supposed to look like and not a darker (or lighter) variant of it.
    So just to reiterate my questions:
    Why does selecting Monitor Profile under the color management settings in DPP give the same display results as the default sRGB profile in CS5 and vice versa?  (CS5 with monitor profile selected having the same display results as DPP with the sRGB profile selected)
    When using CS5 with it's default color management settings (sRGB), using DPP with the Monitor Profile selected, and using Zoombrowser EX with "Adjust color of images using monitor profile" selected this results in all three programs displaying the same lighter, washed-out images...is this lighter, more washed-out display of the images shown in these three programs the accurate one?
    I noticed when opening an image in Firefox it had the same darker, contrasty look as the other non-color managed applications had.  Assuming that the CS5 default settings are accurate, does this mean that if I edit a photo in CS5, save it, and upload it to the internet that other people who are viewing that image online will see it differently than how it's supposed to look (i.e. in a non-color-managed way?)  If so, this would seem to indicate that they'd see a less-than-flattering version of the photo since if their browser naturally displays images as darker and more contrasty and I added more darkness and contrast to the image in CS5, they'd be seeing a version of the photo that's far too dark and probably wouldn't look very good.  Is this something I have to worry about as well?
    I apologize for the lengthy post; I do tend to be a bit OCD about these things...it's a habit I picked up once I realized I'd been improperly editing photos on an  incorrectly calibrated monitor for years and all that time and effort had been spent editing photos in a certain way that looked good on my incorrectly calibrated monitor but looked like crap on everyone else's screen, so the length and detail of this post comes from a desire to not repeat similar mistakes by editing photos the wrong way all over again.  Again, thanks in advance for all the help, it's greatly appreciated!

  • How to create a radio button that changes colors

    I'm using Acrobat X and ID CS5 on Mac OS X.
    A couple of years ago someone on the forums explained to me how to create a button that changes color with each click. You can view a sample PDF at https://dl.dropboxusercontent.com/u/52882455/colorcycle.pdf. They gave me the document JS and showed me how to set the properties of the button. I've integrated the button into a particular series of PDF forms and it's worked out very well.
    Now I would like to do the same thing, but using a circle instead of a square. Can anyone tell me the best way to do this? Can I somehow set a radio button to cycle through colors in the same way? I design my forms initially in ID CS5 and then activate and format the fields in Acrobat X. I've tried using circles instead of squares in my ID document, but when I export to an interactive PDF, they're converted to squares.
    Any ideas?

    I understand how to make buttons cycle through colors-- the problem I'm having is that I'm trying to figure out how to make a circular button cycle through colors. When I export my ID document to PDF, my round button maintains it's original appearance, but when I click on it to cycle through the colors, it behaves like a square (see new PDF at https://dl.dropboxusercontent.com/u/52882455/colorcycle2.pdf).
    If I use a radio button, I can get it to cycle through colors, but I don't want it to have a black dot in the middle. Is there a way to format the radio button to not show the black dot when clicked?

  • My Illustrator does not allow me to change colors using swatches panel. Help pleas.

    Few days ago I started having strange problems with my Illustrator CS5 application. I am using MacBook Pro with Intel Processor.  After major update on the Mac OS  few days ago  I noticed I can not change colors in my drawings using swatches panel. The function on my Illustrator CS5 stopped working.  When I select object and try to change its fill or stroke color using fill and stroke from the options bar above work space,  none of the swatches would work.  The are there how ever nothing hapends when I select them, the color remains the same.The same thing happens if I try to use the swatch panel, I select the object then I try to select new color from swatch but the fill or stroke does not change. I can only change color on my drawings using the color panel but that is not useful for me since I need to get precise colors using approved color swatches ether from pantone library or approved by client.
    The other strange thing is my selection tool does not deselect when I click outside on or of the artboard, the object remains selected until I reselect another object or use the keyboard short cut to deselect it.
    I have tried various options to resolve the issue from deleting and reseting preference to completely uninstalling and  reinstalling Illustrator CS5. I even installed back my old CS4 version because I had to complete a project  and the same issue is happens there as well. I also reset the application using Time Machine from few months ago when it was working correctly. What happens when I reset or reinstall the app, it works for  about 10 min correctly as it should and and then it reverts to the same problem. I am out of options and do not know what else I could  do to fix this. Right now I am working on my old Mac tower G5 and CS4 where everything works as it is suppose to, but I really need to get this fixed. Can any one help or has solution for my problem? Please.

    hey i m working on my illustrator and i m having many problems with my swatches
    for example i use the green phosphorique i don't get this color i get another green
    and many colors too it's like illustrator chooses for you the only green color
    so please i kind of need help i can show you pictures of that i print screen viewed them.. so anybody who can help... pleaaaaaaaaaase contact me because i m having a project now..
    my e mail is [email protected] i would be thankful
    i even tried to download the illustrator on my friend's computer also i m having this problem ....

  • Having trouble with Color Swatches - InDesign CS5 to CS6

    This may be a repeat - I'm not sure I posted properly the first time.
    Having trouble with the Swatches in CS6. When I add our institution's colors, they look dull/gray in CS6. I know it's not just my screens because I created a quick EPS in CS5 for comparison. When I add the EPS file to my doc, the colors pop into the Swatches box but they are clearly different colors. The most remarkable is Pantone 484, which used to be a bright scarlet. Now it's a strange, dull mauve.
    I took a screen shot to show a colleague with more experience, but he's stumped. There are very few of us that use InDesign on our campus and we're all self taught. Our tech folks usually come to US for solutions.
    I did try the instructions under "Display or Output Spot Colors Using Lab Values" in the Help menu, but nothing changed. That seemed to be the only applicable FAQ that I could find on my own.
    Here is the relevant chunk of the screenshot I took - can anyone see what's gone wrong? Color blocks are "old" colors, next to Swatches which show the "new" hues.
    Thanks for any help!

    Answered in your other thread...
    Problems with Color Palette/Swatches in InDesign CS6

  • Problems changing colour using Graphics class in java.awt

    Hi,
    The problem only happens when more than two images are on a panel. In this case, I have to strings that are drawn. The first drawn string is called "A" the second drawn string is called "B". However, when i change the colour of "B" to let's say Red, the panel erases the letter "B" and insteads changes "A" to red. How can I fix this so that when the user chooses the colour red it changes the colour of the latest drawn string and not the first one. please help!!!!
    import java.awt.*;
    public class StringPanel extends GBPanel
         private String shape = "clear", str;
         private int x, y;
         private Color color = Color.black;
         public void paintComponent(Graphics g)
              super.paintComponent(g);
              g.setColor (color);
              if(shape.equalsIgnoreCase("draw string"))
                   g.setColor(color);
                   g.drawString(str, x, y);
              else if (shape.equalsIgnoreCase("exit"))
                   System.exit(0);
         public void drawCurve(Color color)
         this.color = color;
         repaint();
         public void drawString(String shape, String str, int x, int y)
              this.shape = shape;
              this.str = str;
              this.x = x;
              this.y = y;
              repaint();
         public void drawString1(String shape, String str, int x, int y)
              Graphics g = getGraphics();
              g.setColor(color);
              if (shape.equalsIgnoreCase("draw string"))
                   g.setColor(color);
                   g.drawString(str, x, y);
              else
                   repaint();
    }

    well, as I said, I can't remember what the update method thing was for... I think it was related to not clearing the screen first.
    Anyway, if you maintain a list of objects that should be drawn and then in the paintComponent method, loop thru the list of objects and redraw them, it will work. Then you change the state of an object and call repaint. When you are going to change color, you need to, in effect, redraw the entire affected area. Now this can be done partially with clipping, but it's complicated to deal with that. So the simplest way is just redraw everything on repaint.

  • Images Change Colors between monitors while the UI stays the same

    Hey! Im having an issue where photoshop changes the colors when I move the window between my monitors, seen here: http://sta.sh/04y5s60vf3j This isnt due to the monitors themselves being different, it actually changes after a few seconds of moving it inbetween the monitors. The left one has been callibrated with a spyder 3 elite which I no longer have access to. I applied the file with windows color management instead of the spyder utility. The second one is new, and it is not callibrated by anything, but instead was done by hand with the built in brightness/contrast/custom RGB settings. Both of them are very close to eachother, enough so for my tastes. but when photoshop changes what the image looks like, it's causing problems. Interestingly enough, when I disable callibration for the monitor on the left, the image does not change colors between monitors, but instead always appears as it does on the right. but then they don't match up and the whole screen looked washed out because it's uncallibrated, so that doesnt do me any good. Another interesting thing to point out, is when this image is saved as a .JPG, and viewed with firefox the image appears exactly like the monitor on the LEFT (which is my main monitor) despite the left monitor being the one that is force changed. does anyone have any suggestions? It also appears that windows photoviewer is behaving the same way, though firefox does not. Meaning when I open an image in all 3 on the left monitor, they look the same, but when opened on the right monitor, windows photo viewer and photoshop both display the image as brighter and redder than firefox does. This is frustrating, because it seems photoshop is changing the image with my callibration on my left monitor to match what it looks like on the web, which it does. but it doesn't do this for the right monitor, or when the left is uncallibrated. Another issue I can see with this is even if the UI is the same shade of gray, the images are different between the monitors because of this change. Does anyone have any suggestions?
    - BD

    Alright! So I reread through all this, poked at some things on the internet, and I'm going to attempt to summarize what would be a good solution for all this (And it seems, it still won't be perfect, but to get myself into the best environment I can for not messing with images for an hour trying to make them look nice before I post them to the web. I painted something yesterday on the cintiq, popped it over to my laptop screen and it just looked washed out and terrible.)
    1. Get a X-rite EODIS3 i1 Display Pro, Callibrate laptop and cintiq. I do have the money to drop on something like this, especially if it's a time saver.
         Things I'm not sure about:
              a. There was a ton of complaints about the software not working when I checked reviews, but also a ton that said everything was great. most of them were mac users though.
              b. I'm not sure if problems would still be posed, even while calibrated, by me having a wide gamut monitor.
              c. I'm a terrible excuse for a human being and I think the colors showing up brighter on the wide gamut screen is pretty (I should just make my images this bright on a normal screen and there won't be any issues. >.>)
    2. Set Firefox to color manage (easy enough)
    3. Change my photoshop working space to sRGB (since they'll have been calibrated at this point)
    3. Accept the fact that most of the people who look at my work will be doing so on a monitor that is almost certainly uncalibrated, and I can't control what they will see on my screen, but I CAN control if the colors are -actually- what I want them to be on any properly calibrated device. which is probably the best way to go anyways.
    4. Make paintings, have fun.
    Now, you two have been going on about all sorts of interesting things in here, and it seems that calibration issue run much much deeper than I ever thought. Do either of you have recommendations for how I should tweak this list of things to do or other things I can/ should do? I'm not currently a working professional, but if I have anything to say about it, I will be within a few years (I'm going to school for illustration and studying concept design on my own time) so it'd be useful for me to get into good habits now.
    - Brendavid

  • How to change color of selected label from list of labels?

    My Problem is that I have a list of labels. RowHeaderRenderer is a row header renderer for Jtable which is rendering list items and (labels).getListTableHeader() is a method to get the list. When we click on the label this code is executed:
    getListTableHeader().addMouseListener(new MouseAdapter()
    public void mouseReleased(MouseEvent e)
    if (e.getClickCount() >= 1)
    int index = getListTableHeader().locationToIndex(e.getPoint());
    try
    if (((ae_AlertEventInfo)theAlerts.values().toArray()[index]).ackRequiredFlag)
    AcknowledgeEvent ackEvent = new AcknowledgeEvent(
    this, (ae_AlertEventInfo)theAlerts.values().toArray()[index]);
    fireAcknowledgeEvent(ackEvent);
    ((HeaderListModel)listModel).setElementAt(ACK, index);
    catch(Exception ex) {;}
    Upon mouse click color of the label should be changed. For some period of time ie. Upto completion of fireAcknowledgeEvent(ackEvent);
    This statement is calling this method:
    public void handleAcknowledgeEvent(final AcknowledgeEvent event)
    boolean ackOk = false;
    int seqId = ((ae_AlertEventInfo)event.getAlertInfo()).sequenceId;
    if (((ae_AlertEventInfo)event.getAlertInfo()).ackRequiredFlag)
    try
    // perform call to inform server about acknowledgement.
    ackOk = serviceAdapter.acknowledge(seqId,
    theLogicalPosition, theUserName);
    catch(AdapterException aex)
    Log.error(getClass(), "handleAcknowledgeEvent()",
    "Error while calling serviceAdapter.acknowledge()", aex);
    ExceptionHandler.handleException(aex);
    else
    // Acknowledge not required...
    ackOk = true;
    //theQueue.buttonAcknowledge.setEnabled(false);
    final AlertEventQueue myQueue = theQueue;
    if (ackOk)
    Object popupObj = null;
    synchronized (mutex)
    if( hasBeenDismissed ) { return; }
    // mark alert event as acknowledged (simply reset ack req flag)
    ae_AlertEventInfo info;
    Iterator i = theAlerts.values().iterator();
    while (i.hasNext())
    info = (ae_AlertEventInfo) i.next();
    if (info.sequenceId == seqId)
    // even if ack wasn't required, doesn't hurt to set it
    // to false again. But it is important to prevent the
    // audible from playing again.
    info.ackRequiredFlag = false;
    info.alreadyPlayed = true;
    // internally uses the vector index so
    // process the queue acknowledge update within
    // the synchronize block.
    final ae_AlertEventInfo myAlertEventInfo = event.getAlertInfo();
    SwingUtilities.invokeLater(new Runnable()
    public void run()
    myQueue.acknowledge(myAlertEventInfo);
    myQueue.updateAcknowledgeButtonState();
    // here we should stop playing sound
    // if it is playing for this alert.
    int seqId1;
    if (theTonePlayer != null)
    seqId1 = theTonePlayer.getSequenceId();
    if (seqId1 == seqId)
    if (! theTonePlayer.isStopped())
    theTonePlayer.stopPlaying();
    theTonePlayer = null;
    // get reference to popup to be dismissed...
    // The dismiss must take place outside of
    // the mutex... otherwise threads potentially
    // hang (user hits "ok" and is waiting for the
    // mutex which is currently held by processing
    // for a "move to summary" transition message.
    // if the "dismiss" call in the transition
    // message were done within the mutex, it might
    // hang on the dispose method because the popup
    // is waiting for the mutex...
    // So call popup.dismiss() outside the mutex
    // in all cases.
    if(event.getSource() instanceof AlertEventPopup)
    popupObj = (AlertEventPopup)event.getSource();
    else
    popupObj = thePopups.get(event.getAlertInfo());
    thePopups.remove(event.getAlertInfo());
    SwingUtilities.invokeLater(new Runnable()
    public void run()
    // search vector elements to determine icon color in main frame
    String color = getColor();
    fireUpdateEvent(new UpdateEvent(this, blinking, color));
    // Call dismiss outside of the mutex.
    if (popupObj !=null)
    if(popupObj instanceof AlertEventPopup)
    ((AlertEventPopup)popupObj).setModal(false);
    ((AlertEventPopup)popupObj).setVisible(false); // xyzzy
    ((AlertEventPopup)popupObj).dismiss();
    else
    // update feedback... ack failed
    SwingUtilities.invokeLater(new Runnable()
    public void run()
    myQueue.setInformationMessage("Acknowledge failed to reach server... try again");
    return;
    Code for RowHeaderRenderer is:
    class RowHeaderRenderer extends JLabel implements ListCellRenderer
    JTable theTable = null;
    ImageIcon image = null;
    RowHeaderRenderer(JTable table)
    image = new ImageIcon(AlertEventQueue.class.getResource("images" + "/" + "alert.gif"));
    theTable = table;
    JTableHeader header = table.getTableHeader();
    setOpaque(true);
    setHorizontalAlignment(LEFT);
    setForeground(header.getForeground());
    setBackground(header.getBackground());
    setFont(header.getFont());
    public Component getListCellRendererComponent( JList list, Object value,
    int index, boolean isSelected, boolean cellHasFocus)
    int level = 0;
    try
    level = Integer.parseInt(value.toString());
    catch(Exception e)
    level = 0;
    if (((ae_AlertEventInfo)theAlerts.values().toArray()[index]).ackRequiredFlag)
    setBorder(UIManager.getBorder("TableHeader.cellBorder"));
    this.setHorizontalAlignment(JLabel.CENTER);
    this.setVerticalAlignment(JLabel.CENTER);
    setIcon(image);
    else
    setBorder(BorderFactory.createLineBorder(Color.gray));
    setText("");
    setIcon(null);
    return this;
    I tried but when i am clicking a particular label, the color of all labels in the List is being changed. So can you please assist me in changing color of only the label that is selected and the color must disappear after completion of Upto completion of fireAcknowledgeEvent(ackEvent);

    im a bit confused with the post so hopefully this will help you, if not then let me know.
    I think the problem is that in your renderer your saying
    setBackground(header.getBackground());which is setting the backgound of the renderer rather than the selected item, please see an example below, I created a very simple program where it adds JLabels to a list and the renderer changes the colour of the selected item, please note the isSelected boolean.
    Object "value" is the currentObject its rendering, obviously you may need to test if its a JLabel before casting it but for this example I kept it simple.
    populating the list
    public void populateList(){
            DefaultListModel model = new DefaultListModel();
            for (int i=0;i<10;i++){
                JLabel newLabel = new JLabel(String.valueOf(i));
                newLabel.setOpaque(true);
                model.addElement(newLabel);           
            this.jListExample.setModel(model);
            this.jListExample.setCellRenderer(new RowHeaderRenderer());
        }the renderer
    class RowHeaderRenderer extends JLabel implements ListCellRenderer
        JTable theTable = null;
        public Component getListCellRendererComponent(JList list, Object value,
                                                      int index, boolean isSelected, boolean cellHasFocus){
            JLabel aLabel = (JLabel)value;
            if (isSelected){
                aLabel.setBackground(Color.RED);
            }else{
                aLabel.setBackground(Color.GRAY);
            return aLabel;       
    }

  • Manually change color of Exchange calendar in iCal?

    Good evening. Got kind of an odd problem...and not really sure when it became an issue, although I think it happened after I upgraded to Lion. But for whatever reason I cannot get to the 'Get Info' part of one of my calendars that is an Exchange calendar. I can right-click on all of my iCloud calendars and get to the get info section in order to change colors, sharing, etc, but when I click the get info option on my Exchange calendar, nothing happens.
    Not sure when this became the case, because I know I used to be able to change the color.
    Was wondering if maybe there was a preference file that I could manually edit in order to change the color, or if someone else has run into this and found a solution.
    Thanks a bunch.

    Hi guys,
    "googling" I found this applescript:
    tell application "iCal"
              set color of calendar "Calendar" to choose color default color {0, 0, 0}
    end tell
    Waiting for an Apple fix, you can use this. It's wok like a charm!

  • How do I get a field to automatically select a value and change color based on another automatic field?

    Here is the situation:
    I have a row on a form called Finding Risk Rating. In this row are four fields: Probability, Severity, Risk Rating, Color.
    Probability is a drop down menu with the following values: 1, 2, 3, 4, 5
    Severity is a drop down menu with the following values: A, B, C, D, E
    Risk Rating is a field that I have a custom calculation script:
    var riskRating = this.getField("Probability").value+this.getField("Severity").value;
    event.value = riskRating;
    So, when I pick Probability = 1 and Severity = D, Risk Rating will automatically change to 1D, etc. This works fine on the surface as far as I can tell.
    The part where I am stuck, is the fourth field Color.
    Ideally, I want Color to be automatically populated depending on the value of Risk Rating. For example, for 1E I would want it to say "YELLOW" and the field to change color to yellow. For 1A it would be "GREEN" with the color green, etc.
    I tried doing an if else for all cases, but it never refreshes to the correct value. I then checked using app.alert to see what fields riskRating and colorRank are (see code below), and I noticed that riskRating never changes, even though the value in Risk Rating changes. Is there a way to order script(s) so that if I execute one, the other will follow? I'm new to scripting for forms and haven't done any programming in 10+ years, so feel free to rip my code in favor or something more efficient, or direct me to a good resource I can learn from.
    Here's the basis of what I have for scripting on Color. It's brief because I wanted to test it out before writing every 'if else' statement.
    var colorRank;
    var riskRating = this.getField("Risk Rating").value;
    if (riskRating = "1E") colorRank = "YELLOW";
    else if (riskRating = "1A") colorRank = "GREEN";
    else if (riskRating = "5A") colorRank = "RED";
    event.value = colorRank;
    app.alert("colorRank = " + colorRank + ", riskRating = " + riskRating);
    Any help is appreciated. Thanks!

    One problem is if more than one combo box item has the same number associated with it, you cannot simply set the export value to the corresponding number since they need to be unique (or the user interface behaves weird). One thing you can do is set up an object to associate a list item with a value, and look up the value in code when a list item is selected.
    For more information, see: http://acrobatusers.com/tutorials/2007/js_list_combo_livecycle

Maybe you are looking for