How to setup background color in the options of JOptionPane

Hi
I need to highlight the background of options of JOptionPane in different colors. Ex. 1~5 options in green and 6~10 options in red color.
Does any one know how to do it?
Thanks in advanced.

Can you work out what the actual HTML is to do
"Whatever it was that you wanted to do" ? { I couldn't understand that }
I.e If you make up a Test table, with Your Text editor can you get a sample output that looks like you want?
But the problem is i am able to change the background of the full cell. But i don't need to change the background of the full cell always. For example if Nextti value is 15/1/2005 & Duration is 30 then the shade should start from the middle of January Cell (because of the date 15th)end in the middle of next cell (February). If the duration is 15 then it should end in the (January) same end of cell.
Is this something that can be done in HTML?
If your question is 'amenable' to HTML, figure out conditions for which you want to Set a certain color....
If the color in one cell for instance depends on the Next Cell, then you're going to have to buffer the whole Table ROW....
Set which ones should be RED for instance, then output that ROW in HTML...
If you are using Java for this, then also be aware that you might need to escape certain characters like use "\\" to get "\"
You'd also probaly have an easier time, however you are doing this if you used some sort of CSS .......

Similar Messages

  • How to change background color in code editor?

    Hi. Some of the pre-selectable Schemes under Tools->Preferences->Code Editor->PL/SQL Syntax Color (e. g. Ocean) have a "global" default background color that applies to all styles. How can I edit this color for my own color scheme?
    (SQL Developer version 3.1.07)

    Jeff,
    if you try to change all the plsql keywords to the same background color (that is not either white or black or blue) via the options panel in SQL Developer (Code Editor > PLSQL syntax colors), you will get the new background color in the worksheet only for the areas with plsql text, while the areas without any text will have the same background color as the base color scheme you started with. This means that there is no way to change the "general background" color via the options panel, but you have to use the same background color of one of the predefined color schemes.
    This seems to me a bug, but probably it's not considered high priority, so it will not be fixed for the time being.
    I would like to stress the fact that being able to change the color scheme of the development environment that you use every day about 8 hours a day can make quite a difference on your eyes at the end of the day.
    Thanks,
    Paolo

  • How to change background color in online editor

    How to change background color in online editor

    Jeff,
    if you try to change all the plsql keywords to the same background color (that is not either white or black or blue) via the options panel in SQL Developer (Code Editor > PLSQL syntax colors), you will get the new background color in the worksheet only for the areas with plsql text, while the areas without any text will have the same background color as the base color scheme you started with. This means that there is no way to change the "general background" color via the options panel, but you have to use the same background color of one of the predefined color schemes.
    This seems to me a bug, but probably it's not considered high priority, so it will not be fixed for the time being.
    I would like to stress the fact that being able to change the color scheme of the development environment that you use every day about 8 hours a day can make quite a difference on your eyes at the end of the day.
    Thanks,
    Paolo

  • How to change background color of multilevel textbox in oracle form 6i

    hi
    How To Change background Color of the Text.
    In One Multilevel Block 10 Record is Display At a Time in a Text Box (Name is AMTt)
    This Text Box display , Buffer and Record Length is 10
    In Case Of Amount is Less 500 then Text Color Is Red(Or Any) and In Case Amount Is More 500 Then Color is Green (Or Any).
    Me Use This Code in PRE_RECORD EVENT
    TCMTL is Block name
    TCMTL_AMT is Text Box Name
    if :TCMTL.TCMTL_AMT >5000 then
         g_fun.msgbox('Values is more');
         Set_Item_Property('TCMTL_AMT' , BACKGROUND_COLOR, 'r50g100b100');
    else
         g_fun.msgbox('Values is Less');
         Set_Item_Property('TCMTL_AMT' , BACKGROUND_COLOR, 'r50g100b10');
    end if;     
    but This Code Is Refer Only 10th Value and change color depend on value.
    so
    possible to Different color in One Block Text Box Then how?

    DECLARE
         cur_itm VARCHAR2(80);
         cur_block VARCHAR2(80) := Name_in('system.trigger_block') ;
         BEGIN
         cur_itm := Get_Block_Property( cur_block, FIRST_ITEM );
    WHILE ( cur_itm IS NOT NULL ) LOOP
              cur_itm := cur_block||'.'||cur_itm;
              --:global.VISUAL_ATTRIBUTE:= 'BACKGROUND_COLOR';
              --:global.VISUAL_ATTRIBUTE:= get_item_property(cur_block||'.'||cur_itm ,Background_Color);
              IF :TCMTL.TCMTL_AMT >= 500 THEN
                             Set_Item_Instance_Property( cur_itm, CURRENT_RECORD, VISUAL_ATTRIBUTE,'r50g100b100');
                   ELSE
                             Set_Item_Instance_Property( cur_itm, CURRENT_RECORD, VISUAL_ATTRIBUTE,'r5g100b10');
                   END IF;
                             cur_itm := Get_Item_Property( cur_itm, NEXTITEM );
                   END LOOP;
                   next_record;
    END;
    this is my in that how to set a VISUAL_ATTRIBUTE, and where to set so get a background color of text and change

  • How to download background color of ALV with button "Export to Excel"

    Dear Experts:
    I can download the data of ALV in webdynpro for ABAP, but the color is missing.
    Does anybody know how to download background color of the ALV cells also by "Export to Excel" button?
    Could anybody help on this?
    Thanks in advance!
    Best Regards
    Lingxing Meng

    never experienced that...
    [chk this link|Download colored ALV output in to EXCEL sheet;
    a couple of intersting posts, they talk abt general ALV...
    try one of the last post ...when downloading
    use local file->HTML only.. but while choosing the file location to save give extension as XLS.

  • How can I change the background color in the inbox?

    The background color in my inbox (well, all mailboxes) is white. A yellow background would make the existing black text a lot easier to read. How can I change the background color in the inbox?

    Themes work in Thunderbird - duggabe was not refering to Firefox.
    Another useful addon is theme and font changer:
    * https://addons.mozilla.org/fr/thunderbird/addon/theme-font-size-changer/
    However, Thunderbird allows you to modify all sorts of things.
    Make hidden files and folders visible:
    * http://kb.mozillazine.org/Show_hidden_files_and_folders
    Help > Troubleshooting Information
    Click on 'show Folder' button
    a window opens shwoing profile folder name
    Close Thunderbird now - this is important
    In the profile name folder, Create a new folder called '''chrome''' - note the spelling
    It should be in the same place as the 'Mail' folder.
    see first image below.
    Open Notepad
    Can be located : Start > Programs > accessories
    Copy everything shown between the lines below.
    Paste into Notepad.
    Save as '''userChrome.css''' - note the spelling (edit updated - this was a typo error)
    This should be saved in the '''chrome''' folder.
    see second image below.
    Restart Thunderbird.
    I have chosen a yellow for you
    <pre>
    #f6f58c = a yellow....it is a hex code for a colour.
    </pre>
    You can change it if required. Remember when updating anything in the profile folders, you must close Thunderbird first.
    More info on colours.
    * http://www.yourhtmlsource.com/stylesheets/namedcolours.html
    <pre>
    * Do not remove the @namespace line -- it's required for correct functioning
    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
    /*Background colour for message list*/
    #threadTree > treechildren::-moz-tree-row {
    background-color: #f6f58c !important;
    </pre>
    -------------------------------------------

  • The new operating system changed the background color of the photos app from black to white.  How do I change the color back to black?

    The new operating system (IOS 7) changed the background color of the Photos App (Camera Roll) from black to white.  How do I change the color back to black?

    You can't. Sorry.
    http://www.apple.com/feedback/
    You can tell apple that you'd like it and see if they respond....eventually. (you don't get responses from your feedback mails but they have been known to issue changes that users have asked for, such as the ability to mass delete apps)

  • How do I change the background color of the pages?

    I have been having trouble finding how to change the background color of the pages. I would prefer a black background.
    thanks

    Do you  know how to edit the template?   If not  simply  choose a rectangle shape, change colour to Black and using ARRANGE, send to back and  bring forward till it replaces whatever is there.
    The best way is to  pull down the book slide to reveal the Layout - which shows you the chapters and section etc  which make up a template.  You have to  use the same procedure on ever page from the template you intend to  use.
    In the Template Layout, select  your page. Click on whatever your background colour is...IF its unlocked you see the  square pull handles in corners - now simply select Black and it should change the colour - if not and its unlocked, it  may be a black image, in which case delete it, Insert a new rectangle, pull to  fit the  page and change colour to  black. It should now be hiding  the other content, ARRANGE > Send to Back and it should sit  behind all your content. Now go back to arrange and LOCK.
    You should see a red marker on  the left with whatever page you are editing "Save Changes" click it and its done... repeat on all other pages.

  • How do I change to background color in the open tabs; currently grey with black text, hard to read.

    In FF 4.0 can I change the background color of the open tabs. Currently it is grey with black type. A lighter background would be easier to read.
    Thanks, TJH

    Download this addon: https://addons.mozilla.org/en-us/firefox/addon/stratiform/ It allows you change the color of the tabs, plus many other options.

  • How do I customize the background color of the Bookmarks Drop Down Menu?

    The drop down bookmark menu is a very light grey and the highlighting is also very light and hard to see. Where in about:config can I change these colors.
    Also is there a way to bold certain bookmark items in the bookmark menu?
    I'm using ver. 19.02

    ''bmail wrote:''
    I appreciate the amount of time you put into typing up the example and I'm sure the example is great, but again...I have no idea how to use it or where to put it.
    You were supposed to install [https://addons.mozilla.org/firefox/addon/stylish/ the Stylish extension]. Once installed, there's a new category in the Add-ons Manager called User Styles. In that category, there's a button labeled Write New Style which opens a window where you can paste or write CSS code; click the Preview button to see what how your style affects the interface or a web page, or the Save button to keep it.
    Styles in the userChrome.css file cannot be previewed, and any changes only take effect after restarting Firefox. Since the ChromeEdit Plus extension simply allows you to edit that file, presumably it has the same limitations.
    Anyway...
    ''bmail wrote:''
    What code would I need to have all the sub menus be the same background color as the main bookmark menu?
    <pre><nowiki>/* Menu bar bookmarks menu background */
    #bookmarksMenuPopup hbox {
    background: silver !important;
    }</nowiki></pre>
    Note that you can replace '''silver''' with another named color, or an RGB color value.
    * https://developer.mozilla.org/en-US/docs/CSS/color_value
    ''bmail wrote:''
    What code would I use to change the highlight color that you see as your cursor hovers over the menu items?
    I wrestled with this one for a while, but I couldn't get it to work, and I gave up due to time constraints. Again, I suggest you head over to the userstyles.org forum and ask there.
    * http://forum.userstyles.org
    ''bmail wrote:''
    How do I designate what menu items I want in bold face?
    The relevant bit of information is the bookmark or folder name. Note the value of the label attribute in the above example (the stuff between quotation marks); that's how you show the Recently Bookmarked folder in bold text. You can combine several selectors (the stuff before the first { character) into one by separating them with a comma, like so:
    <pre><nowiki>#bookmarksMenuPopup menu[label="Some folder"],
    #bookmarksMenuPopup menu[label="A different folder"],
    #bookmarksMenuPopup menuitem[label="This one's a bookmark"],
    #bookmarksMenuPopup menuitem[label="Some other bookmark"],
    #bookmarksMenuPopup menu[label="Yet another folder"] {
    font-weight: bold !important;
    }</nowiki></pre>
    You're welcome.

  • How do I get a different background color in the dock in Mavericks?

    Has anyone figured out how to change the background color in the dock?  The default is really bad and hard to read.

    dont know how but looking at this video, this guy sems to have a solution
    => http://www.youtube.com/watch?v=TXwGP9hkHDQ&ytsession=1uKskJuFULWJ4S9dtlGhOuS2K1F egefIt4_t4UMOVdnn24KtXByipkEVNKRIm0un6jlloUu8at22J1pboQ56RPHKX0Sp1PkvfCtVKga_f9H NN9n104j5psKQFS4q8yBii2OiaZ8IXqXmGIkXmXs_DD2ypL-Er4kRe2YLnEBIpbv9kNbkFSsNsZu_BXu 8qGqQ7H4WCxq4m3yevxbUhY6G-f-5rWtrERD6o4oCB-OOGs1_BzgpsfxT9JYZBIhx53EgZpsNQEdVvPL USgXhw82EdXYwwpuJs0gLawJV1gWEE2Q
    if you look at his dock, it's not silver bright but blue and he add a line before the trash

  • How to change the selection background color of the selected item in the popup menu of the choice box ?

    How to change the selection background color of the selected item in the popup menu of the choice box ?
    By defaut, the selection background color likes "blue", but if I want it to be "yellow" for example, how should I do ?
    Thanks

    The id is applied by (I think) the skin class of the ChoiceBox. You don't need to define it.
    You have to apply the css in an external style sheet. You can apply the external style sheet to any parent of your choice box, or to the scene (the most usual way to do it).
    Example:
    import java.util.ArrayList;
    import java.util.List;
    import javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.scene.control.ChoiceBox;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    public class ChoiceBoxTest extends Application {
      @Override
      public void start(Stage primaryStage) throws Exception {
        primaryStage.setTitle("Example 2");
        final ChoiceBox<String> choiceBox = new ChoiceBox<>();
        List<String> tempResult = new ArrayList<String>();
        for (int i = 0; i < 10; i++) {
          tempResult.add("Item " + i);
        choiceBox.getItems().setAll(tempResult);
        VBox root = new VBox();
        root.getChildren().add(choiceBox);
        final Scene scene = new Scene(root, 300, 250);
        scene.getStylesheets().add("choiceBox.css");
        primaryStage.setScene(scene);
        primaryStage.show();   
      public static void main(String[] args) {
        launch(args);
    choiceBox.css:
    @CHARSET "UTF-8";
    #choice-box-menu-item:focused  {
    -fx-background-color: yellow ;
    #choice-box-menu-item .label {
    -fx-text-fill: black ;
    Message was edited by: James_D

  • How to control background color of table cell in an html report?

    I am using Labview 6.1 to generate a report.  In that report there is a table created using the Append Numeric Table to Report VI.  I want to be able to programmatically control the background color of each cell in the table.  Also, how can I programmatically control the background color of the row and header cells of the same table.  I am also generating a second table in the same report using the Append Text Table to Report VI and I would like to programmatically control the background colors of the cells in that table as well.  Thanks.

    Hi epsilon-d...,
    i´m not sure if there is an ready to use function to do what you want, but you can enlarge the available function. Open the "Append Numeric Table to Report.vi" and go to the HTML Case. There you can see another vi which creates the html table. In the VI "HTML Report Table Row" you can add the option: bgcolor="your color" inside of the "TR" tag.
    Hope it helps.
    Mike

  • Dynamically Set Subreport Background Color to the Same Value as Main Report Background Color

    I have a report that contains a subreport.  The main report has groupings in it.  I am dynamically setting the background color of the group rows based on an expression.  That part is working fine.  The problem that I am having is that
    I don't know how to get the subreport to "inherit" the background color of the grouping that holds it.
    Basically, I have different row shadings on my report differentiating the groupings except for the rows where the subreport shows.
    How do I go about setting the subreport background color to equal it's contaiing grouping's background color?  Thanks in advance for any and all assistance provided.

    The parameter method given by gpshukla will send the info to the subreport, but you don't need the color parameter in the main report, only the subreport. The trick is in setting the value of that parameter.
    Right-click the cell with the embedded subreport, you can select subreport properties.
    Select Parameters and add a parameter.
    The name column is the name of the parameter in the subreport (color) and value is the value to set it to.
    Set name to "color" (no quotes).
    Set Value to the same expression used to set the background color for the row.
    In the subreport, click the design surface to select the report (not header or footer).
    In the properties pane, select background color and choose expression from the dropdown.
    Type =Parameters!color.Value into the expression builder.
    This will work assuming that background color in the main report row will not change without also refreshing the subreport.
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • Is there a way to change the WHITE background color of the photo gallery/COLLECTIONS to BLACK.  IPad 4 ios 7

    As a Professional Photographer, I chose to buy an IPad 4 for only one reason and that was the amazing color and clarity of the Photo Gallery as a mobile Portfolio.
    Originally the background color of the IPad 4 Gallery was BLACK and this facilitated the photos greatly, photos look better and stand out better on a BLACK background. White backgrounds cause a glare eminating from the edges of the photo and cause iris in our eyes to close down, degrading the quality of the photo being viewed.
    I updated to ios 7 and now my IPad 4 has a WHITE background, which is unacceptable for viewing photos.
    HOW DO I CHANGE the WHITE background on the Photo/Gallery/COLLECTIONS to BLACK?
    Apple should ALWAYS give USERS/OWNERS of their products control of such details. IT'S JUST GOOD CUSTOMER SERVICE!

    Vancouver22  Thanks for your help... the SLIDESHOW turned black for me automatically when the slideshow began. That works most excellent!
    Now if I can just get the White Background to STAY BLACK, this might not be as painful as I feared.
    My IP4 does lag slightly, but not enough to set fire to it yet.
    The gallery/COLLECTIONS/ALBUMS are the most important thing to me.
    Thanks!
    Jon Dize aka DIZEMAN   (Not quite BATMAN, but whatchagonnado?}
    [email protected]
    http://dizeman.com/  (Bio)
    http://dizeman.com/rock&roll/   (Rock Stars Clients/Subjects)
    http://dizeman.com/glamour/    (Playboy Centerfold Shoots)
    http://dizeman.com/thisnthat/   (Just stuff I shot on the way to stuff to shoot.)

Maybe you are looking for

  • Why is the text on itunes squashed and compacted?

    For some reason, all of the text on itunes is very small and overlap each other. Not sure why this happens but it is very annoying and blocks some of the features. The picture is an example of what I mean.

  • Inspection lot status CRTD CHCR SPRQ

    Dear Expert I created inspection plan for a material and generated inspection lot after GR from PO. But it's status is coming as CRTD CHCR SPRQ, release status is not coming, pls suggest where i want to look for this?.

  • 3d graph color map help for cvi

    I've plotted my data to a 3d graph using CW3DGraphLib.  The data I am most interested in is the highest 10%.  I can change the Z axis to only show this 10%, but the colors are all red.  I would like to modify the color map so it maps only the data th

  • Form creation

    i am trying to use the form wizard to create a form that will insert data into one table and change/append data in another. is this possible using the form wizard?if so what options should i use? Edited by: KySarge1981 on Aug 19, 2010 1:14 PM

  • Error on EDI Sales Order Creation ?

    Hi Gurus, I have the following error when trying to create an order through EDI.  Function module 'IDOC_INPUT_ORDERS" Error is "Field RV45A-VBAP_SELKZ (2) is not an input field Message no. 00347" I have check the data on the Idoc (orders05) and every