StringBuffer and letter color

hi I use
StringBuffer Wsb = new StringBuffer();
if (Type1.contains("on"))
Wsb.append("C1");
if (Type2.contains("on")){
if(Wsb.capacity()!=0)
Wsb.append(",C2");
else
Wsb.append("C2");
} how can I set the color of letter C1, C2 to red, when I use Wsb.append(" <font color="red"> "); I get error

HJava wrote:
how can I set the color of letter C1, C2 to red, when I use Wsb.append(" <font color="red"> "); I get errorNot quite sure what you're trying to do.
If you append as you said, what the compiler sees is two strings with 'red' between them.
You need to escape the inner quotes in order that they don't terminate the string, viz:
Wsb.append(" <font color=\"red\"> ");However, even when you get it to work, Wsb will contain
C1, C2 <font color="red">
and, even assuming that your spitting it out to some HTML-aware component, that still won't make C1 and C2 come out red.
Winston

Similar Messages

  • Where can i find new colors for background and letter fonts??

    Where can i find new color background and letter fonts??

    These are only in US sizes, not metric, but offer exactly what you want and are high quality:
    http://www.stocklayout.com
    Peter

  • Can I change different background and font color on each records?

    Hi,
    I had a Data_Block which contains some records, I had a field name 'currency' which contains value such as (HKD, JPY, CNY, CND, USD etc..)
    Let there there are 5 Records contain in that Data_Block and I wanted to change the background and font color depend on the Currency value.
    I were using Set_Item_Property and change the Visual_Attributes that I had define. Well I guess that doesn't work since uisng the Set_Item_Property
    it will actually getting the last value and use that last value and changed to all the same color to that.
    I wonder is there a way to do that in Oracle you can change the field different color?
    Thanks
    David Willis

    Thanks You so much.
    Actually I were trying to look for that function at the User Manual but I couldn't find it because I remembered I had seem it some where.
    I guess I am looking at the Form4.5 user manual instead of the Oracle 9i Forms Developer.
    Thanks
    David

  • Need to change letter color in subject/to lines

    I have just began using this e-mail and for the first time changed the letter color to red in the body of an e-mail. I was replying between the lines of a received e-mail. Now the "to" "subject" lines are red and I can't change them back to black. It appears that I can change the letter color in the body of the text.

    Subject line in red? Really? That's rather unusual. May we see a screenshot?
    Addresses, yes. The design intention is that if an address you write to is shown in red, then Thunderbird hasn't been able to find a match for it in your Address Book, and is trying to alert you to this. You may have mistyped a known address, or you may appreciate a prompt to store this new address in the Address Book.
    Having said that, Thunderbird seems to have a bug whereby it paints addresses in red even if they are known.
    Be aware that your correspondents may not see decorations in your message such as changes in colours and fonts. There are well-established conventions for distinguishing replies in email which don't rely on optional features such as colour. Bear in mind also that hard copies of your messages may not always be printed in colour.

  • JPG and TIFF colors in Bridge CS5 way off, but fine in Photoshop

    Just started happening, but not sure if it was after updating to Bridge 4.0.3 or Camera RAW 6.2.  The colors for RAW and PSD files are fine in Bridge, but all JPGs and TIFFs colors are blown out and way off.  Opening the JPG or TIFF in Photoshop looks fine though.  Anyone else having this issue, or know how to fix it?
    Update:  If I set the "Develop Settings" in Bridge CS5 to "Camera Raw Defaults" for the JPGs/TIFFs that are displaying improperly, the colors and tones go back to normal, but if I "Clear Settings" everything turns to crap again.

    PLEASE  help save my sanity and my reputation!  --I have spent the last five days exhausting every possible solution to this debilitating issue. I have spent countless hours perusing the web for a solution, spent 4 hours yesterday with Adobe customer support and yet, there is no solution to be found. My issue is that the color (in every file format NEF, JPEG, PSD) completely changes color and desaturates in every one of the adobe products: Photoshop CS5, Camera RAW 6.2, Lightroom 3.2. -
    Everything was working fine, and then out of no where my productivity has come to a crashing halt. This is the steps I have taken to this point:
    -Uninstalling/re-installing all of the software
    -Purging anything that can be purged.
    -Changing color profiles
    -Resetting defaults
    -Resetting preferences
    -Installing updated drivers for monitor, video cards
    -rollling back drivers for monitor, video cards
    -monitor recalibration
    **and finally, today...I set the monitor up on another computer, OS windows xp, and to my complete surprise, the issue persists even on another pc with completely different hardware.
    -I am at my wits end with this. I have clients ringing my phone off the hook. This is crazy!
    -I have sent out for another monitor as a last ditch effort to see if something is wrong with the monitor.
    PLEASE, if anyone has a solution please let me know. Apparently, the folks at Adobe are just as perplexed by these issues as we are, as I have found numerous posts on forums throughout the Internet with this same issue---and yet none of the post every found a solution.
    Primary System
    Windows7 64-bit
    Nvidia fx 580 video card
    Dell U2410 Ultra Sharp Monitor
    Abobe CS5 Photoshop -64-bit
    Lightroom 3.2
    Camera Raw 6.2
    Secondary
    Windows XP
    Nvidia GeForce 8400gs
    Same software, just in a 32-bit

  • Setting fonts and Background color

    Hi,
    Is there anyway to set the font and background color on a jLabel? Thanks for your help!

    ...emmmm lets see... for the font and the background...
    maybe setFont and maybe setBackground!
    http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JComponent.html

  • On my screen the image is clear and the colors are right, However when I print to either my epson of HP the image color is off.

    On my Mac screen my photo image is clear and the color are right, however when I print to either my epson 2200 or my HP printer bother the colors are off and the image is not as clear as on the screen.

    Hi there,
    This article should cover the issue you are experiencing. Give the steps outlined a shot and let us know if it helps.
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • How to select matching RGB and CMYK colors

    Starting from scratch for a client, how do I select matching RGB and CMYK pairs?
    Say we find a nice red colour in RGB for screen use, how do I then find the correct CMYK for print? And what assumptions do I have to make when doing this, if any?
    Would it be the same for the other way around (choose CMYK first for print and then find the RGB equivalent)
    Is it more sensible to start with a Pantone colour and then find the RGB and CMYK equivalents for that?
    Many thanks
    RobbieG
    (I'm working with Ai, Ps and Id CS6)

    Yes.  Better to start with Pantone reference books where you are viewing the color in a reflective environment.  As already mentioned, color on the monitor can be deceptive.  And, I think the others are basiclt saying that you should have everything calibrated and use color management policies in your apps.  There is a way to find CMYK equivalents using Photoshop's color palette.  Let's say you have an RGB Red as the foreground color in Photoshop.  If you double click on the swatch you will get Photoshop's color palette which lists the RGB percentages, CMYK percentages, LAB percentages, and HEX web color for that Red.  You can go further and select "Custom" and the Pasntone Spot color palette opens and gives you the closest Spot color value for that Red.  This however, depends on your color settings.  That's why I recommend you start with the Pantone swatch book and get the perecentages of CMYK from their formula guide which is set to industry standard color.

  • Selective color partial de-saturation (both specific area AND specific color)

    Hi All,
    I searched a little both here and Google and am now convinced this is not possible in LR. Please let me know your thoughts.
    I want to select a specific area, say bottom half of the image, and then desaturate blue by 50% and aqua by 25%, without affecting any other colors at all.
    Is this possible in LR? Takes 5 seconds in Photoshop, but I don't want to have to export and edit there. I experimented with the color picker under adjustment brush in LR, in hope de-saturation would only apply to the color I selected, but it doesn't seem to work like that.
    There's the "HSL / Color / B&W" section, which is very useful, but it applies to the entire image. Basically I'm after HSL/Color type adjustment for a brush if such a thing exists.
    Any help would be appreciated.
    Thanks,
    Greg.

    Oggodei81,
    regarding color change with the adj brush:
    If I wish to change the color of, for example, hair, I first select that hair with the adjustment brush with all settings at default. then I fully desat the selected hair. I then END that adjustment and begin a NEW adjustment and, using color picker, paint on the unsaturated hair.
    There is always the problem with getting the desat step and the color change step precisely alligned, but..........
    Not always great but often works.
    vince
    Message was edited by: vinsolo

  • HP 1610v error message: Remove and check color cartridge

    In the middle of printing, my HP 1610v All-In-One PSC just stopped and displayed an error message reading "remove and check color cartridge". I did.... but couldn't really determine what I'm supposed to be looking for though. Ink cartridge is full, clean, and seems fine. Not only can I not figure out what I'm supposed to do to fix it....I can't do ANYTHING. no printer menu access, no printing with only the black cartridge, only an orange exclamation point that ceaselessly blinks at me.
    I've tried unplugging and waiting 20 seconds
    I've put 3 different color cartridges in and the error message only went away with the EMPTY cartridge...which, of course, I couldn't print with!
    Please Help ASAP!!
    Thanks!

    Hi there iceefrost,
    This article should cover the issue you are experiencing. Give the steps outlined a shot and let us know if it helps.
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • 3D Text - Gradients are rasterized and causes color banding

    Hi All
    I have applied a 3D>Extrude and Bevel on my text. Now problem is that when doing it, my border(part that is extruded) causes a color banding, since it rasterizes
    the gradients. See my image below.
    How do I take away those nasty lines?
    Thank you

    Gradients are always rasterized when using the 3D effect:
    But what you show in your image isn't really rasterization.
    Fill the shape with a flat color and let the 3D lighting alter the values. Or, apply the 3D effect with "no Shading" then Object > Expand Appearance and apply your gradients afterwards.
    Illustrator's 3D is not "top-of-the-line" and often requires exapanding and refining after using the effect.

  • IWeb - Can you make a blog? Can you make a title and let people respond?

    Can you make a title and let people respond?
    For Example:
    'Do you like my new Book?'
    Comment:-
    ???

    Yes. You can add forms to you page which send you emails with the information the visitor put in the form. There are two types, one that you create with Form Action Code that you create and put in an html snippet, Form Action comment form, and more sophisticated forms that are created at a 3rd party site and embedded into a page with an HTML snippet and iFrame code as in this demo page: Embedding Forms & Encoding Email Addresses. With the second method you can set the form to any color combination you'd like. Another example of the Wufoo type is at the bottom of this demo page: QT Movie w/o Quicktime.
    OT

  • Spotlight and Spinning Color Wheel

    Mouse over Spotlight gives me only a color spinning wheel.... I have tried deleting the index....nothing. I have tried deleting spotlight plist. If I start in Safe Mode problem goes away. loaded each of the disabled pref panes and still the problem did not come back. Reboot out of Safe Mode bammm!!! ....!??
    I also created a new user and the problem disappears..... so its not the external drives.
    Any ideas? The thought of another rebuild fills me with dread.
    Chris

    Well, here is exactly what Safe Mode disables. You might work through the list but the fact that SystemUIServer is not responding may just indicate a corrupt preference.
    Navigate to ~/yourHome/Library/Preferences/ByHost/com.apple.systemuiserver.xxxxxxxxxx.plist where "xxx" corresponds to numbers and letter sand any other apple.systemuiserver.plists there. Then log out and back in or restart.
    If that's not the problem, then be sure to back up of all your data. Then, run Disk Utility booted from your DVD install disk, or another drive. Did that sort it?
    If not, you may be able to repair this with 10.4.8 PPC Combo Update
    This is a fuller install, as opposed to an incremental "delta" update so it should overwrite any files that are damaged or missing. It does not matter if you have applied it before. It has worked well for many.
    Remember to Verify Disk before update and repair permissions after update from /Applications/Utilities/Disk Utility.
    -mj
    [email protected]
    Message was edited by: macjack

  • Re: "remove and check color cartridge" cartridge is brand new.

    Hello, I have the same issue, and this furstrates me.
    I tried everything; cleaning the connectors, cleaning the ink collector, switching on and off... and I still got the same message.
    The cartrige is new. I tried with an alernative one, and I have the same issue. 
    Can anybody tell me why this is not better quality? For the prices of the cartridges, should this not be easier to troubleshoot and get the printer working. 
    I was anyway going to upgrade the printer at some stage for a faster and better quality, but now, I am wondering which brand I should choose, as this is simply not acceptable: the printer should be working.
    Thank you for your help, and as you can see, I am frustrated: preparing myself for an interview in 2 days, and I cannot even print the basic information because of this problem. 
    Thanks

    Hi Bertrand057,
    Welcome to the HP forums!
    I'm sorry to hear you've been having issues with your printer not recognizing your cartridge but I will certainly do my best to assist you
    Are you also working with an Photosmart 2510, or do you have a different model HP printer?
    If you have the Photosmart 2510 I will recommend that you try the steps within this Error Message: Error, Remove and Check [Color/Black or Photo] Cartridge document and if those don't work, please try the cleaning steps under Step Three: Clean the Cartridge and Carriage Contacts in this 'Incorrect Print Cartridge' or 'Print Cartridge Problem' Message Displays on the Computer document. That document is for another printer but the cleaning instructions were very clear and are applicable to the cartridges in your printer.
    If the problem is still persisting after that, I would lean towards the issue being with the printer, not the cartridges as you've tried more than one cartridge. In that case, I will suggest that you try Performing a Partial Reset on the printer. If that still doesn't resolve the issue it may be time to look into that upgrade you had been thinking about.
    If you're working with a different printer than the PSC 2510 just let me know. I certainly understand your frustration at the printer and the situation, considering it's awful timing, but hopefully these steps will assist you in getting the information you need for your interview! Good luck with everything, and I hope to hear back from you with good news! Fingers crossed
    Please click “Accept as Solution ” if you feel my post resolved your issue, as it will help others find the solution faster
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    **MissTeriLynn**
    I work on behalf of HP

  • HELP. ............Hi folks hope some one can help me please.Having a problem in Bridge I open my images in ACR,  as I open files in a folder and lets say they are labeled in yellow  they are all going back to  the camera raw default , in other words no ma

    HELP. ............Hi folks hope some one can help me please.Having a problem in Bridge I open my images in ACR,  as I open files in a folder and lets say they are labeled in yellow  they are all going back to  the camera raw default , in other words no matter what work I have done, inc cropping they  all go back to ,as they came out of camera. What on earth is happening? I am on PS CS6. I might point out everything was working normally up to  yesterday, when this first started.
    I recently changed computer to 64bit from 32bit, not sure if this causing  the problem or not. Any help would be appreciated.

    Robert,
    Would you be so kind to rephrase your question with concise, precise information and without any "let's say that" hypotheticals?  Sorry, I can't quite follow you.
    Also please give exact versions of Photoshop CS6 (13.what.what), of Bridge and of your OS.
    Thanks.
    BOILERPLATE TEXT:
    If you give complete and detailed information about your setup and the issue at hand, such as your platform (Mac or Win), exact versions of your OS, of Photoshop and of Bridge, machine specs, what troubleshooting steps you have taken so far, what error message(s) you receive, if having issues opening raw files also the exact camera make and model that generated them, etc., someone may be able to help you.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

Maybe you are looking for

  • Issue with Goods Issue.....

    Hi gurus, I am working on an interface where I need to do goods Issue and for this I have written the following code, but my return statement is returning this error" Goods movement not possible with mvmt type 201" data: begin of it_input_file occurs

  • Another strange powerpill error - problem with new aria2? [SOLVED]

    Looks like I'm getting another odd powerpill error.  Is this a function of the new aria2 package that got deployed a day or two ago? # powerpill -Syu :: Synchronizing package databases... core is up to date extra is up to date community is up to date

  • Weird problem while Extracting File path from file Browser item

    Hi all I followed some tutorials on this forum to get the absolute filepath from the filebrowser item and storing it in the database. Heres what I did. I created a script in the header of the page which reads like this: <script language="JavaScript1.

  • Maximum  message size problem

    Hello, I'm trying to send a message of 30MB and the log reports: "552 5.2.3 sorry, that message size exceeds the maximum " After configuring sourceblocklimit and blocklimit in channels parameters the message still apears. I have compiled :/opt/SUNWms

  • Converting from LabView 4.0 to 9.0

    I also need to convert this llb from LabVIEW 4.0; to 9.0. Anyone willing to do this for me? see attached and thanks... Attachments: gj18i.llb ‏247 KB