How to use colors in a progressbar

hi!
can you please telle me how to use colors in my application, i mean how should i use a color as a parameter such as :
progressBar.setBackground(Color);
in this examlpe, how shoul i pass the paremeter? in which codification, shall i pass it like this way :
progressBar.setBackground(white);
or shall i pass it in an other way !!
please try to help me !

Color.white, Color.red etc.
http://java.sun.com/j2se/1.4.1/docs/api/index.html

Similar Messages

  • How to use Color Splash Effect in Photoshop CS6?

    Hi everyone
    Can you guy help me out How to use Color Splash Effect in Photoshop CS6? I need to use in slide in my web
    Thanks

    You mean "leave part in color and make the rest black and white"?
    Just select or mask the part that should be B&W and desaturate, or use the B&W adjustment.
    Or you can add a B&W adjustment layer and mask out the parts that should stay in color.

  • How to use color chooser?

    hi, how to use the color chooser provided in the sun one studio?

    Still the wrong forum  - this forum is about writing plugins.

  • How to use color in alv

    HELLO,
    can u tell me that i want to color column in alv so how to use it ingrid layout.
    thanks.

    *& Report  ZDEMO_ALVGRID                                               *
    *& Example of a simple ALV Grid Report                                 *
    *& The basic ALV grid, Enhanced to display each row in a different     *
    *& colour                                                              *
    REPORT  zdemo_alvgrid                 .
    TABLES:     ekko.
    type-pools: slis.                                 "ALV Declarations
    *Data Declaration
    TYPES: BEGIN OF t_ekko,
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
      statu TYPE ekpo-statu,
      aedat TYPE ekpo-aedat,
      matnr TYPE ekpo-matnr,
      menge TYPE ekpo-menge,
      meins TYPE ekpo-meins,
      netpr TYPE ekpo-netpr,
      peinh TYPE ekpo-peinh,
      line_color(4) type c,     "Used to store row color attributes
    END OF t_ekko.
    DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_ekko TYPE t_ekko.
    *ALV data declarations
    data: fieldcatalog type slis_t_fieldcat_alv with header line,
          gd_tab_group type slis_t_sp_group_alv,
          gd_layout    type slis_layout_alv,
          gd_repid     like sy-repid.
    *Start-of-selection.
    START-OF-SELECTION.
    perform data_retrieval.
    perform build_fieldcatalog.
    perform build_layout.
    perform display_alv_report.
    *&      Form  BUILD_FIELDCATALOG
    *       Build Fieldcatalog for ALV Report
    form build_fieldcatalog.
    * There are a number of ways to create a fieldcat.
    * For the purpose of this example i will build the fieldcatalog manualy
    * by populating the internal table fields individually and then
    * appending the rows. This method can be the most time consuming but can
    * also allow you  more control of the final product.
    * Beware though, you need to ensure that all fields required are
    * populated. When using some of functionality available via ALV, such as
    * total. You may need to provide more information than if you were
    * simply displaying the result
    *               I.e. Field type may be required in-order for
    *                    the 'TOTAL' function to work.
      fieldcatalog-fieldname   = 'EBELN'.
      fieldcatalog-seltext_m   = 'Purchase Order'.
      fieldcatalog-col_pos     = 0.
      fieldcatalog-outputlen   = 10.
      fieldcatalog-emphasize   = 'X'.
      fieldcatalog-key         = 'X'.
    *  fieldcatalog-do_sum      = 'X'.
    *  fieldcatalog-no_zero     = 'X'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'EBELP'.
      fieldcatalog-seltext_m   = 'PO Item'.
      fieldcatalog-col_pos     = 1.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'STATU'.
      fieldcatalog-seltext_m   = 'Status'.
      fieldcatalog-col_pos     = 2.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'AEDAT'.
      fieldcatalog-seltext_m   = 'Item change date'.
      fieldcatalog-col_pos     = 3.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MATNR'.
      fieldcatalog-seltext_m   = 'Material Number'.
      fieldcatalog-col_pos     = 4.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MENGE'.
      fieldcatalog-seltext_m   = 'PO quantity'.
      fieldcatalog-col_pos     = 5.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MEINS'.
      fieldcatalog-seltext_m   = 'Order Unit'.
      fieldcatalog-col_pos     = 6.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'NETPR'.
      fieldcatalog-seltext_m   = 'Net Price'.
      fieldcatalog-col_pos     = 7.
      fieldcatalog-outputlen   = 15.
      fieldcatalog-datatype     = 'CURR'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'PEINH'.
      fieldcatalog-seltext_m   = 'Price Unit'.
      fieldcatalog-col_pos     = 8.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    endform.                    " BUILD_FIELDCATALOG
    *&      Form  BUILD_LAYOUT
    *       Build layout for ALV grid report
    form build_layout.
      gd_layout-no_input          = 'X'.
      gd_layout-colwidth_optimize = 'X'.
      gd_layout-totals_text       = 'Totals'(201).
    * Set layout field for row attributes(i.e. color)
      gd_layout-info_fieldname =      'LINE_COLOR'.
    *  gd_layout-totals_only        = 'X'.
    *  gd_layout-f2code            = 'DISP'.  "Sets fcode for when double
    *                                         "click(press f2)
    *  gd_layout-zebra             = 'X'.
    *  gd_layout-group_change_edit = 'X'.
    *  gd_layout-header_text       = 'helllllo'.
    endform.                    " BUILD_LAYOUT
    *&      Form  DISPLAY_ALV_REPORT
    *       Display report using ALV grid
    form display_alv_report.
      gd_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
    *            i_callback_top_of_page   = 'TOP-OF-PAGE'  "see FORM
    *            i_callback_user_command = 'USER_COMMAND'
    *            i_grid_title           = outtext
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
    *            it_special_groups       = gd_tabgroup
    *            IT_EVENTS                = GT_XEVENTS
                i_save                  = 'X'
    *            is_variant              = z_template
           tables
                t_outtab                = it_ekko
           exceptions
                program_error           = 1
                others                  = 2.
      if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                    " DISPLAY_ALV_REPORT
    *&      Form  DATA_RETRIEVAL
    *       Retrieve data form EKPO table and populate itab it_ekko
    form data_retrieval.
    data: ld_color(1) type c.
    select ebeln ebelp statu aedat matnr menge meins netpr peinh
    up to 10 rows
      from ekpo
      into table it_ekko.
    *Populate field with color attributes
    loop at it_ekko into wa_ekko.
    * Populate color variable with colour properties
    * Char 1 = C (This is a color property)
    * Char 2 = 3 (Color codes: 1 - 7)
    * Char 3 = Intensified on/off ( 1 or 0 )
    * Char 4 = Inverse display on/off ( 1 or 0 )
    *           i.e. wa_ekko-line_color = 'C410'
      ld_color = ld_color + 1.
    * Only 7 colours so need to reset color value
      if ld_color = 8.
        ld_color = 1.
      endif.
      concatenate 'C' ld_color '10' into wa_ekko-line_color.
    *  wa_ekko-line_color = 'C410'.
      modify it_ekko from wa_ekko.
    endloop.
    endform.                    " DATA_RETRIEVAL

  • How to use color chart in FCX

    How would I use a color chart in FCXP?  I used to color correct using RGB values but FCXP doesn't show RGB.  How do others do it?

    I'm a lazy hobbyist, no Macbeth in use, but I bought for cheap  a White Balance plug-in from fcpeffects.com
    (they constantly offer discounts, if I remember correctly, I paid 19$).
    Then, it adds a color-picker in FCPX:
    ... if this is what you're looking for.
    Plan B)
    Use a roundtrip to DaVici Resolve, which is perhaps better suited for professional color correction than a 19$plugin
    The nice automatisms to fetch&match a Macbeth-board like other color-correction tools offer, we still have to wait for… maybe Mr Riddles forthcoming Color Finale has that feature? Next week we know...

  • How to use color picker or RGB values in the hue-saturation colorize adjustment

    I have a monochromatic adornment that I want to match to the color of a logo.  I am attempting to use the colorize option of a hue saturation adjustment layer to match color.  But I cannot quite get the colors to match.  I know the RGB values of the color, but how do these translate into the Hue/Sat/Lightness numbers of the adjustment dialog?  I tried using the correlating H/S/B values fro9m the color picker but that did not work.
    Any suggestions?

    Thanks Zeno.  Creating a layer with the color and using the blend mode worked fine.  But as I stated in the original post, using the H/S/B (there is no HSL) values from the color picker does not work when you place them into the H/S/L values in the hue-adjustment layer with (or without) the colorize box checked.  But your first suggestion worked like a charm.  Thank you.

  • How to use color labels in Bridge to inform conditional treatment in PS?

    I'm trying to find a way of using the color labels in Bridge ('select', etc.) to allow conditional use in Photoshop javascript.
    So, for example, all the images tagged with red will be sized to 600px, while those tagged with green will be sized to 400px.
    Any ideas?
    Ian

    A search of the forum for ExternalObject should find you plenty of reference…?
    You just need to load library…
    Retrieve your value…
    Do your Photoshop process ( use switch or if/else )
    Unload the library
    Done…
    If you struggle post back I may be able to help…

  • How to use AppleScript to set "character fill color" in Pages 5.2?

    For Pages 5.2 on OSX 10.9.3, what is the correct applescript for changing the "character fill" of text in pages. 
    If you highlight text, you do this via your mouse in the inspector by clicking "style," "advanced option (the gear wheel to the right of bold, italics, and underline), "character fill color (clicking on the multi-color circle, not the dropdown menu), and then choosing a color that comes up in the "colors" dialogue box.
    I've looked all over and cannot find how to use applescript to set the character fill color in pages. 
    In some examples (not directly related) I see "character fill" used. 
    In others, I see "colorfill." 
    Basically, I want to use applescript, embedded in a keyboard maestro macro, to change the background color of the text (not the text color itself) to particular colors. 
    Given the changes and updates to Pages this year, and to applescript, what's the easy way to do this?
    Thanks!
    Chuck

    Pages v5.2 still does not include selection-object, or character background color entries in its AppleScript dictionary, as does Pages ’09. Indirectly, using System Events, you can get the text selection in Pages v5.2, but then you can do nothing to change the selection. No assurances as to if or when Apple will mature the AppleScript dictionary support for Pages v5 series.

  • Need a shortcut to "Allow pages to choose their own colors, instead of my selections above option preference" I know where it is and how to use it but I have to go through 7 mouse clicks to change it, then a few minutes later change it back. I also k

    Need a shortcut to "Allow pages to choose their own colors, instead of my selections above option preference" I know where it is and how to use it but I have to go through 7 mouse clicks to change it, then a few minutes later change it back. I also know the sequnce is alt t, alt o, alt c, alt a, then ok, ok. Got to be a way to make a one key short cut for this. I use a black background to reduce eye strain, but about 10% of the webpage I go to can't be send with black so I have to go into tools and hit 6 or 7 things to chnage it then after through with webpage have to do it all over at Not allow webpages to have own color. Very very cumbersome.
    == This happened ==
    A few times a week
    == made that way

    https://addons.mozilla.org/en-US/firefox/addon/toggledocumentcolors-198916/
    The above addon will solve your problem.
    Shortcut to toggle user color/page color :- Ctr+Shift+C

  • How to use downloaded Adobe color theme (.ase) in Photoshop cc?

    How to use downloaded Adobe color theme (.ase) in Photoshop cc?

    I can confirm this functions but there is no indication it's been successful and the swatches appear in the Swatches panel, *not* in the Libraries panel where I would expect them.  My issue is that IMO this should not even be an issue, because a palette created on color.adobe.com should just show up in PS CC unless I'm not understanding the intended behavior.
    Anyone?

  • [J2ME MIDP 2.0] Alert, how to use fonts and colors?

    good morning,
    does anyone know in which way I can use colors in an alert pop-up?
    I've done my on using the code below. I would like to have text and images centered in the screen display and I would also like to use the colors I'm using in the application I'm writing.
    thx in advice,
    Omar
    private void alertDisplay(String s){   
        Alert a = new Alert("Location set to " + s.toUpperCase());   
        if(s.startsWith("H"))
          a.setImage(hOn);
        else
          a.setImage(oOn); 
        a.setString("Actual Location: " + s.toUpperCase());
        a.setTimeout(2000);
        a.setType(AlertType.INFO);
        Display.getDisplay(this).setCurrent(a);
        Display.getDisplay(this).vibrate(1000);
        Display.getDisplay(this).flashBacklight(1000);
      }

    Hi,
    The way how an Alert looks like cannot be influenced. When setting an image, you cannot indicate where that image should be placed. When setting a certain message text, you cannot influence its colour, its font and its allignment...
    The colour and font properties are theme / skin dependent on your mobile. When switching your mobile to another theme, then you will notice that your Alerts (and Forms and Lists, etc etc...) are coloured (titlebar, command softkeys, textfields) according to that theme.
    Cheers,
    Jasper

  • How to print black using color ink

    I am low on black ink at the moment but have a full color cartridge. I realise what I wish to do is more expensive than usual but right now I need to print quite a few documents in black but dont think I've enough black ink to do the job. I have an HPDeskjet 2050 3 in 1 printer/scanner and I cant find an option to select to use color to make black. If anyone knows how to do that on this printer please let me know otherwise "I got me some 'splainin to do" tomorrow at work.
    Thanks

    Printer: HP 6330 All-In-One
    My color ink cartridge completely ran out of cyan (left only with yellow and magenta) and the black ink cartridge was completely emtpy.  In order to print an acceptable black and white doucument, I tried different settings until I found the right combination.  The output was a very dark purple.  The document took about four times as long to print due to the highest dpi setting, but the quality was very good in a pinch.
    Keep in mind that the doucument was printed from Adobe; the source document was from MS Word.  So, some settings may not appear in other applications.  However, a similar approach may be applied to obtain the best result.
    See the collection of screenshots for the printer settings.
    Hope this helps.
    -Seth 

  • I have just downlaoded the color burst app, can someone explain how to use it?

    I have just downlaoded the color burst app, can someone explain how to use it??
    There is no help in the app and i can't log onto the smart solutions..it is really frustrating me because it is propably a really simple app...can someone please help???

    I posted in this thread an example that illustrates how to use the 3d graph to do surfaces ac lines.
    The type of data that you present to the 3d graph depends on which mthod you are using. In general you want to present a set of points that need plotted. These points are defined by taking one value for each of the XYZ and sometimes W arrays.
    Explanation:
    You want to plot a surface that is defined by four point (X0,Y0,Z0,W0), (X1,Y1,Z1,W1), etc. You can present the values using (4) 2-d arrays each of which have four values at index (o,o), (0,1), (1,0) and (1,1).
    Thie first point plotted would be the point that is defined by taking (0,0) from each of the arrays.
    So as you can see from the above all of your arrays should be of the same size and dimensions for this to work.
    Look at the Example i posted in the other thread and try some small experiments with small data sets before you jump to anything complicated.
    I hope that helps,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to change all used colors to 100% black

    It's probably a dead simple answer, but I can't find it.
    Here's the thing:
    In a product brochure I had to change all product drawings to 100% black.
    What I did was select all unused colors from the palette, deleted them. Then changed all the used colors into 100% black (drag Global black swatch onto the other swatches while holding Alt).
    In the printing office it appeared that there were still elements in the drawings that weren't in 100% black. Those elements had colors that weren't in a swatch in the color palette.
    How can I change ALL the used colors, including the ones that haven't been turned into a swatch in color palette, into 100% black?
    Thanks for any help!
    (Illustrator CS3 is what I'm working with)

    James,
    I am using CS3.
    It's a bit of a complicated story.
    I get the drawings supplied from my customer. The drawings are made in an Autocad-like program (I forgot its name), then imported into Autocad (because that first piece of software doesn't have the right export-extensions) and then from Autocad it's exported to Illustrator.
    The customer wanted to do the conversion to black themselves, because it would ease my work-load, since I wouldn't have to open and adjust all those drawings again when they have it open already.
    Only they are using CS2.
    I guess they'll just have to upgrade...

  • How should CMYK colors be built? Is it OK to use all three of CMY?

    This is a general question I'm posing here because I think it is the forum that is frequented by the largest number of people with real world print project management experience.
    The question is: in an ideal world, how should CMYK color be built? Lets assume I know the LAB values for several colors I want to reproduce accurately on an offset printing press. I can install the correct ICC Profile in my color management settings, input the LAB values, and let InDesign do the conversion to CMYK for me.
    However, I have been told by print professionals that, if at all possible, don't define a color swatch using all three CMY inks. Instead, use a maximum of two of CMY plus a K percentage. In other words, the ideal for printing CMYK screen tint mixes is to use percentages that use high GCR formulas - i.e. replace CMY with K where possible. This, so the the theory goes, helps to increase color stability on press.
    I guess in reality I have two questions: is that rule of thumb valid/useful? And if so...do I have any control over it in InDesign?

    That was my personal opinion guys as a contributor to this forum thread - it should be taken as an opinion only of course :) Using either or is obviously perfectly OK, I'm just a fan of using MDT to build and capture source images over Configuration Manager
    for a variety of reasons.
    My main point was that a build and capture Task Sequence can be used regardless of the requirement for a thin or thick image and that you can pause and resume a build and capture process to suit your requirements (and in my opinion MDT would be perfect for
    your situation). You should of course use Config Manager to deploy your Windows 8.1 custom image if you have that option.
    I've used capture media in the past and wouldn't recommend it. There's no technical reason, just my opinion :)
    Cheers
    Damon

Maybe you are looking for

  • Crystal Report not taking parameter propery

    Hi, I am facing a unique issue in reports.The report is not taking the parameter entered by the user instead it is taking the value which was used for testing the report initially. Save data with report in uncheked. The report is shwing correct data

  • How can I change apostrophe & quote from curly to straight. I'm using Word.

    I'm using a brand new Mac book Pro with word loaded in it. The curly quote marks and apostrophes mess up my feeds and translate as question marks inside of dark diamonds. I know this can be fixed because my 2007 mac book pro did the same thing regard

  • Restore HELP!!!

    I backed up my iphone 4 onto itunes before I sent my phone off for repairs, I recieved a new iphone 4 and restored all my data fine. But now I connect my iphone to itunes it is not recognising that I have already restored it. It keeps coming up as "t

  • Variable Exit Not Working with Personalization After Upgrade

    We recently upgraded our BW production system from version 3.5 to 7.0. Currently, we have some web templates/reports that use date related user exit variables in the query. For instance, we have a date range variable that is populated with a 90 day r

  • How to create screen resolution in bdc table control

    hi gurus can anyone suggest me how to create screen resolution in bdc table control thanks&regards mark.