Multiple colors in cfgridcolumn

I need to display two different colors in a cfgridcolumn if
the due date is less than the current date; for example, black
color in the due date and red color in the number of past due day.
I tried to use setStyle and setPropertiesAt function to change the
color; however, I do not have luck. Anyone has ideas to set two
colors in one grid column?
01/12/2003 (1354 days past due)
10/20/2006
Thanks,
Daniel

Have a close look at the BasicProgressBarUI class in the Swing source code.
(The source code can be found in your <java-home> directory in src.zip)
You can extend this class, and override the paintDeterminate(Graphics, JComponent) method to alter the drawing of the progress bar. This may do what you need. Eg.
public class MyProgressBarUI extends BasicProgressBarUI
  protected void paintDeterminate(Graphics g, JComponent c)
    // your painting code here
Also, then set this into your JProgressBar component like so:
JProgressBar pb = new JProgressBar( );
pb.setUI( new MyProgressBarUI( ) );
- Paul

Similar Messages

  • Is there a way to transform multiple colors?

    I have a project where I've been asked to allow a user to choose between multple color themes of a character.  This object  is complex in that it has multiple colors and that each color needs to change differently based on the theme's color scheme.
    Is there a way to take a movieclip with multiple colors and apply process to it that will detect different colors and transform them accordingly without taking each individual color, making a movie clip from it, then modifying the movieclip's colors?  Each character has a pretty limited color pallette, so this process would only have to find and then change maybe 3 or 4 colors.  But the character in question is hand animated and has a LOT of frames, so I'm hoping there's a chance that I can handle this programmatically rather than doing it all by hand with a few hundred extra movieclips to make color changes to.  Any help is greatly appreciated!

    Hi, and thanks for the help.
    This is the 1st time I've looked at the palletteMap method.  I see in the documentation:
    paletteMap(sourceBitmapData:BitmapData, sourceRect:Rectangle, destPoint:Point, redArray:Array = null, greenArray:Array = null, blueArray:Array = null, alphaArray:Array = null):void
    Parameters: 
    sourceBitmapData:BitmapData — The input bitmap image to use. The source image can be a different BitmapData object, or it can refer to the current BitmapData instance.
    sourceRect:Rectangle — A rectangle that defines the area of the source image to use as input.
    destPoint:Point — The point within the destination image (the current BitmapData object) that corresponds to the upper-left corner of the source rectangle.
    redArray:Array (default = null) — If redArray is not null, red = redArray[source red value] else red = source rect value.
    greenArray:Array (default = null) — If greenArray is not null, green = greenArray[source green value] else green = source green value.
    blueArray:Array (default = null) — If blueArray is not null, blue = blueArray[source blue value] else blue = source blue value.
    alphaArray:Array (default = null) — If alphaArray is not null, alpha = alphaArray[source alpha value] else alpha = source alpha value.
    I comprehend the 1st 4 parameters, but the color and alpha arrays have got me confused.  How would I use these to, for instance find all the pure blue pixels in a bitmap (0x000000FF) and then change those pixels' colors to some other color, then find all the pure red pixels (0x00FF0000) and change them to yet another color?  Fortunately I don't have to deal with alpha with this current delimma . . .
    One other question before I look into this method as a solution, is it possible to programmatically convert vector-based artwork into a bitmap to use this colorMatrix feature?  All the artwork I need to change colors on is hand drawn animation using the native Flash drawing tools.  Thanks again for any additional help!

  • Multiple colors in on calendar

    I am using a macbook pro with latest Yosemite update.
    I work 24-hour shifts so I would like to add multiple colors to one calendar. For example I have a calendar work and within this calendar I want to have different colors for lets say early shift/late shift/night shift. I can't find that option, this was possible within outlook and gmail calendar.
    All advice is welcome.

    On mine the ones that show on a coloured background are all-day events, the ones with dots and just timed events.

  • Leave Multiple Colors in AE CS5

    Hey everyone! I've been hired to shoot a web video for a yogurt shop and they want to do a similar "Leave Colors" effect that they used in their still photographs on their website. Obviously doing this in still form is easier than motion video, but I told them I knew there was a way to do this and I'd figure it out. However there doesn't seem to be many sufficient explanations of how to achieve this effect in CS5.
    Where do I begin? I know I can help myself a lot by directing my subjects not to wear similar colors to the yogurt, but that will be somewhat of a challenge with multiple-colored yogurt. Is After Effects CS5 even the best program to use to accomplish this? Thank you so much, everyone!

    duplicate your layer, desaturate the bottom one and roto the yogurt and parrot from the top layer, mask the yogurt container since it has pretty simple shape. From the look of the photos, this should be a breeze with roto brush.
    Anything like keying, leave color, change to color etc will get you unpredicable results and/or hard to handle.

  • Is there a way to have multiple color Guides so I can have different colors for different layers

    Is there a way to have multiple color Guides in Illustrator and Photoshop CC so I can have different colors for different layers?

    I think it's not possible "natively" to have this functionalty but I found these topics for Photoshop :
    http://www.ps-scripts.com/bb/viewtopic.php?f=10&t=4618
    http://www.ps-scripts.com/bb/viewtopic.php?f=10&t=4617
    On this one, you will see a workflow which are well described.
    http://graphicdesign.stackexchange.com/questions/6030/how-to-set-different-color-to-guides ai-ps-id-fw
    I've not tested them but you should give it a try!

  • Selecting multiple colors in color wheel?

    If i select an object with multiple colors then go into the color wheel/color guide the colors are connected so you can spin them and they stay relative and so on, but is there a way to select more than one color handle so you can move them at the same time, say if you wanted to take a few and make them lighter or darker? I know there are hue/sat plug ins that might work for this, but I thought i'd check with the adobe community first. Thanks!

    Not on the wheel, but you can change the sliders below in the Recolor Artwork dialog box.

  • I want to use multiple colors in the same box - Pantone plus process. I am trying to create a support plate of cyan under a PMS.

    I want to use multiple colors in the same box - Pantone plus process. I am trying to create a support plate of cyan under a PMS.

    How is the external drive formatted?
    Allan

  • Pre select datagrid with multiple colors

    how to pre select rows in a datagrid with multiple colors based on a condition?
    for eg: I have a status column.Based on the value of the status,the rows should be highlighted.
              if(status=='arrived'){
                   highlight in green;
              }else
               if(status=='delayed'){
                   highlight in red;

    try this, override drawRowBackground function
    public CustomDataGrid extends DataGrid
         override protected function drawRowBackground(s:Sprite,rowIndex:int,y:Number, height:Number, color:uint, dataIndex:int):void
              var item:Object = this.dataProvider.getItemAt(dataIndex);
              if (item.status == 'arrived')
                   color = 0x00FF00;
              else if (item.status == "delayed")
                   color = 0xFF0000;
              super.drawRowBackground(s, rowIndex, y, height, color, dataIndex);

  • Awt textarea which supports multiple colors!!!

    hi all,
    I am developing a Chat server and i need a textarea which supports multiple colors and im not interested in going for swing components.
    So does ne1 have any code on this or ne idea of doing it.
    thanX a lot in adv,
    kiran

    I have used a library called KFC, Kazuki YASUMATSU's Foundation Classes. The bad news: The homepage seems to be gone. The good news: I made a zip of what I have laying around and put it at http://www.uib.no/People/stud2376/div/kfc1.1.3.zip. The download is about 2.2 MB including source and javadoc, the jarfile with all classes are about 600K.
    I found the library not very intuitive to use, but once you get the hang of it it's not too bad. For your need you probably only need to concern yourself with the TextArea, Text, and TextStyle classes. (I have switched to swing jand java2 myself and don't remember too much of how I used KFC, so I can't help you more than that.)

  • Just downloaded 10.9.2. Now I have multiple color wheels. Computer slow. Can I switch back to previous software.

    I just downloaded 10.9.2. Now I have multiple color wheels. Computer slow. Can I switch back to previous software.

    It's easy to revert back if you have a backup of your system.
    If not, the doing is much more complicated and tedious.
    It would help us to help you if we could have some more technical info about your iMac.
    If you so choose, please download, install and run Etrecheck.
    Etrecheck was developed as a simple Mac diagnostic reporting tool by a regular Apple Support forum user and technical support contributor named Etresoft.
    Etrecheck is a small, unobstrusive app that compiles a static snapshot of your entire Mac hardware system and installed software.
    This is a free app that has been honestly created to provided help in diagnosing issues with Macs running the new OS X 10.9 Mavericks.
    It is not malware and can be safely downloaded and installed onto your Mac.
    http://www.etresoft.com/etrecheck
    Copy/paste and post its report here in another reply thread so that we have a complete profile of your Mac's hardware and installed software so we can all help with your Mac performance issues.
    Thank You.

  • How do i set a multiple colors for a panel

    hi all,
    how do i set a multiple colors for a panel .pl desperately need a solution.
    regards
    bhaskar

    Iam contradicting self !
    Hope this helps !
    java.lang.Object
    |
    --java.awt.Component
    has the paint method ! Take the Graphics Object and call Graphics.setColor( Color.red ) .. and u can draw regular shapes like fillRoundRect. blah blah.. u need t count on the pixels .. I guess..
    An easier choice could be adding labels or panels with a layout of ur choice ..
    venu

  • Multiple Color Labels

    Would be good to be able to have multiple Color Labels for each image, rather than be limited to a single Color Label.
    For example, at the moment I use Purple for flagging up Stacked Images, so this retricts my labelling of these images for other purposes.

    Hi Chris,
    I asked for this a few weeks ago, and was basically told to use a different method.
    Here is what I do:
    Color 1=Possible Portfolio
    Color 2=Possible Print
    Color 3=Possible Stock image
    Colors 1,2,3 are any of the 5 you want.... As I go through newly downloaded images from a commercial/magazine shoot I am culling them with my customers needs in mind, so I can't really think too much of my own needs at that point in time. But as I go through the images I may come across images that fit one of the above "Possibilities" . So my thought was to just tag the image with a color. Very simple and fast, my hands don't need to move much to tag with a color, and I don't need to scroll the mouse away from what I am doing and loose focus on the customers needs. This allows me to go back later, when I have more time and see what I thought might make a good example of one of the above "Possibilities"
    So what happens if an image could work for all 3??? Well that is what led me to request multiple color labels per image. I eve suggested easy ways to implement the feature....
    But I was told that I "Should" do this another way...like using collections or keywords.... Neither of those fits the bill for Fast and Easy image tagging like the colors do.
    I don't have too much faith that we will see this feature.......

  • Assigning multiple color labels to one image in Aperture?

    Is there a way to assign more than one color label to an image? I suppose I could use a third color to signify what "color 1" and "color 2" together mean, but that's a bit confusing...
    Thank you,
    David

    Yeah, I use keywords extensively, and absolutely understand their value, as you highlight, but find that colored labels are more convenient for certain things. For example, I can very quickly mark (with the labels keyboard shortcuts) images without opening the Inspector and typing in keywords, and subsequently find images without creating a smart album, simply through their color "halos". (It's a "dumbed-down" process, to be sure, but it works when you're feeling lazy!)
    Thank you for the response, and for submitting the request for multiple color labels.
    Best,
    David

  • Screen came up with multiple colored lines

    When I plugged my phone into the wall to charge it came up with multiple colored lines. It has never done this. I immediately unplugged it and plugged it into my computer. When it started to sync it made a noise like when you scrunch up a piece of paper. The screen looked fine at this point. I checked a few minutes later and a message came up saying that no calls could be sent or received. Contact an apple dealer. I have not downloaded any thing that would be a no, no. Oh and now it won't charge. But it gets really hot to the touch when plugged into charge. It just gives a low battery warning. What did I do wrong???????

    Sounds like your logic board went bad. Contact Apple and get it serviced.
    1-800-MY-IPHONE
    Dave M.
    MacOSG Founder/Ambassador  An Apple User Group  iTunes: MacOSG Podcast
    Creator of 'Mac611 - Mobile Mac Support' (designed exclusively for an iPhone/iPod touch)

  • Are multiple colors possible on a published calendar?

    Hi, on my desktop I easily see multiple colors, with each on for a different calendar. we have a published calendar for a group, that would be great if it were possible either to publish both with the same URL, or at least allow color changes for some of the items on the calendar again with just one url. Is this possible in iCal?
    Thanks.
    -wayne

    Wayne,
    Unfortunately, published calendars are not capable of displaying individual calendar colors.
    Consider providing iCal Feedback.
    ;~)

Maybe you are looking for

  • Ubuntu and Windows XP Faster than Arch Shock Horror! (In Virtualbox)

    Hello.  I'm just trying out Virtualbox in a Windows host with Ubuntu, XP and Arch, and the outright loser in terms of performance is Arch.  This is the absolute opposite to normal installation of these OS's on any machine I ever used.  Arch normally

  • Audio doesn't work on my pavilion m6-1045dx

    What can I do to fix it?

  • Contains clause using like

    Hi I need to get data using contains from a text the data will be like A,AA,AA1,AA2 if i give AA1 it should fetch all the data .I cant use like operator here pls suggest

  • Computer Shuts Down After Being Powered On

    Hi All, I have an iMac G5 right now that has a bit of a problem. I am able to turn on the computer, let it POST, and login. All is good through there. However, after using the computer for about 10-15 minutes, it all of a sudden shuts down. When I tu

  • Performance Monitoring and the Web Client

    I am a project manager managing a large infrastructure upgrade with a migration of existing VMs. I want to understand how my current VM are performing and the tool I have is the vSphere Web Client 5.1. I want to get more trending data on disk I/O and