Panic! Possible to change Fontcolor in List in AWT?

I really need to know if it is possible to change the font color in AWT for different list entries in th awt.List object.
I managed to change the fonts with no problem, but the font color...
I�m using my list as an own object which extends the panel. Is this the right way to do it or?
If anyone has any hints or a piece of sample code (if it is possible) please let me know.
//Peter
//To call the Lists class from outside
private void setupTheList()
String[] str = {"2","4","","","","","","","","","","","","","","","","",""}; //Items to be added to the List.
int[] sel = {1,4,7,8,9,13}; //Which are to be selected in the List
li = new Lists(str,5,sel);
class Lists extends Panel{
List list;
public void paint(Graphics g)
Graphics g2;
g2 = list.getGraphics();
g2.setColor(Color.red);
public Lists(String[] listItems, int listLength, int[] listItemSelected){
list = new List(listLength,true);
for(int i = 0; i < listItems.length; i++){
list.add(new String(listItems));
for(int j = 0; j < listItemSelected.length; j++){
list.select(listItemSelected[j]);
GridBagLayout gbl = new GridBagLayout();
setLayout(gbl);
add(list);

Of course create your own list you need a scrollbar, canvas or panel, and implements Mouselistener, and ItemListener after that you draw what Color, image or text you want.

Similar Messages

  • How to change the price list in document?

    Dear All,
    Is it possible to change the price list in document (e.g. Sales Order) by program (UI)?
    If no, any other way to do so? Thanks!
    Regards,
    On

    Dear Gordon,
    It may be Purchase Order or Sales Order. But different target will have different solution?
    Regards,
    On

  • Is it possible to change values in pagination select list for a report?

    The values showing up in my pagination select list for a report are 10,15,20,30,50,100,200,500,1000,5000.
    Is it possible to not have this list show the 1000 and 5000 values? I've tried setting various row values in the layout and pagination section of the report, but nothing changes in the select list. Is there a way to change this, or is it set up in a template somewhere that I can change?
    APEX version 3.0
    Thanks

    Figured this one out. Using the P1_ROWS item, added a static LOV with the correct values to override the one APEX was providing. The P1_ROWS item goes in the Number of Rows (Item) field in the layout and pagination section of the report.

  • Is it possible to change Planning Plant in General Task list

    Hello Gurus,
    Is it possible to change Planning Plant in General Task list, ie. for eg.
    Earlier I have General Task list Group:22, Group Counter:1, with Planning Plant:0001 & now i want to change/update new planning plant 0002 instead of old 0001 in the same task list.
    could you plz suggest me, is it possible? & how to do changes?
    Thanks in Advance.
    Regards,
    Amol

    HI Amol,
    Its not possible to change the Planning plant , You can delete that task list or you can put deletion flag on it, and go for new creation
    Riyaj

  • Is it possible to display the entire list in Background ?

    Hi all,
    I have alv report(Oops) , it is grid display and having more than 300 columns , when i execute that report in background i am getting only 132 columns and 65 lines per page, Is it possible to display the entire list , If it is possible then how we can do that? if it is not what is the reason? .
    Thanks in Advance.

    Hi,
    If use Grid in BG u will get o/p In ALV List Itself, second thing is u will get Croped o/p bcos of Print Format 65255 , in this case u have to create/change a new Print Format only for BG jobs like 651000.
    for more info ask ur basis person to create a new print formats in such cases.
    Regards,
    shiva.

  • Possible to change appearance in iCal, particularly the To Do Items?

    Is it possible to change the appearance in iCal? I'm speaking about mostly the background? (I know you can change the "calendar" colors, but I'm looking for something else.)
    1. For example, it is extremely difficult, almost impossible for me to determine in week view or month view which day is "selected" unless I look at the mini calendar in the bottom left (which I don't necessarily have open all the time). The day which is selected, is nearly imperceptibly slightly darker, but I can't tell. Is there a way to change the background color to provide more contrast?
    2 And, is there a way to change the color, contrast, readability of the To Do Items in the list on the right? The dates are very clearly labeled with the colors, but the actual item of what I need to be doing (the whole point of it) is in gray font and my eyes are not drawn to such a pale layout for reading. Are there customizable options?
    3. Lastly, when I go to "Today" in day view or week view, it always starts the view of each day at 12/1AM and I can only see from 12AM to noon (I have preferences set at show 12 hours) and then have to scroll down to see my appointments in the afternoon. I never have anything scheduled from 12AM to say, 6AM, so its annoying to have to scroll down every time I go to the afternoon. Is there a way to set it to start the view at an hour other than 12 AM?
    Thanks for all and any suggestions/answers.

    Update on (3) - I have just noticed that John Maisey has a wee script for doing it.
    AK

  • Possible to change the room laout (Navigation)

    I just succesfully created a coll. room in which it is possible for peple to discuss and upload docs. Now is it possible to change:
    - The navigation: Edit names and place em in the second level navigation
    - Is it possible to customize the documents part to my needs, like add more folders, put in some opening text and color. This is all pretty standard and i want to use this to develop a customized one. So:Can i import this in NWDS or sommit?!
    Additionaly: when you would make a page for your customers that should be exactly like they wish, but has great similarity to existing collaboration tools. Would you then:
    - Use the existing collaboration and customize.
    - Create an own application
    Is it possible to download these kind of applications from others?
    Message was edited by:
            Hans Wassink

    Hi Hans,
              Yes. It is possible. You can change layout of room.
    Create custom layout for your need. And assign this layout to particular room.
    Follow the given steps to change layout of the room.
    System Adminstration -> KM Content
    You can see list of folders in content area.
    room extensions - > cm stores -> documents -> workspaces.
    There you can see one or more folders named as 'documents'. Find your folder and change the layout of that folder. It will help to you.
    Thanks and Regards,
    Venkat

  • Is it possible to change user in call transaction ??

    Hi experts,
    There is a custom RFC FM wich makes some call transacion (for example to ME21N) and is invoked from .NET. The user logged in that moment is 'USER1' but the client wants user 'USER2' to appear in standard tables (EKKO...) and in ME23N. It's not possible that the client loggs on with USER2 as he needs the password and we don't like to share it whith them.
    I found this:
    l_Fecha = sy-datum - 1.
      CALL FUNCTION 'BDC_OPEN_GROUP'
        EXPORTING
          client   = sy-mandt
          group    = 'maria'
          user     = 'USER2'
          keep     = space
          holddate = l_fecha.
    (code for the batch input)
      CALL TRANSACTION 'ME21N' USING i_bdcdata
                               MODE w_mode  UPDATE 'S'
                               MESSAGES INTO i_messtab.
      CALL FUNCTION 'BDC_CLOSE_GROUP'.
      SUBMIT rsbdcsub
      WITH bis = sy-datum
      WITH fehler = space
      WITH logall = space
      WITH mappe = 'maria'
      WITH von = sy-datum
      WITH z_verarb = 'X'
      EXPORTING LIST TO MEMORY
      AND RETURN.
    But when the PO is created, the user is still USER1.
    Is it possible to change the user at any moment ??
    Thanks in advance !!
    Regards,
    Marí

    Hi
    You are using ME21n which is and  ENJOY transaction.
    To update ENJOY Transactions use BAPIs instead of BDC.
    because ENJOY transactions are built on control framework which use ActiveX controls (like Grid).
    These new transactions should make life for the end user a bit easier, since SAP transactions not always accelerate in design, logic, etc. That's why SAP has introduced these new transactions which in the end, will have the same result. In these socalled 'Enjoy' transactions, SAP started using these 'new' enjoy sap controls like ALV grid, text editor, HTML viewer etc.
    For 'updating' Enjoy transaction (BTW: You are NOT updating the transactions, but rather the purchase order or whatever) you will have to use BAPI's (or FM for that matter) in stead of BDC since Enjoy Controls work with a different framework in which you can not call a certain screen and field. Like in an ALV grid, not every field has it's own screen field name. So you cannot use them in BDC.
    Hope this makes any sense for your question. As BDC is not reliable for your tcode.
    Thanks DP

  • Is it possible to change the read/write permissions on a time machine back-up of iTunes? I need to restore it, but old version is locked....

    Is it possible to change the read/write permissions on a time machine back-up of iTunes? I'm needing to restore it as my phone deleted half our playlists during sync  & am not seeing a way to unlock the permissions. I have the current version unlocked, but can't seem to get the backed-up version. When I click on restore I get a pop-up that says iTunes can't be deleted as it is part of the OS. I'm not even trying to delete, just restore the old version. Any suggestions?

    Hmmm, ok I'll give it a shot. I've always had the iTunes sync w/ my phone set up to only load selected playlists to the phone b/c there's a lot more in iTunes than I have room or desire for on my phone. A few months back I started having trouble w/ trying to sync everything & subsequently adding more to the phone than it could hold. The quickest thing at the time was to unclick the sync music option in iTunes so I could still backup the phone to the computer & not have a problem.
    When I asked about it during one-to-one session shortly after, they advised me to delete the music off my phone & then re-sync it to the computer, run a backup of the phone & redownload the music to the phone. When I tried this it ended up deleting all my playlists (but not my husband's) from iTunes. Irritating, but I've been rebuilding the playlists since. I had also unclicked sync music again & an Apple person told me the most likely best fix was to delete & reload iTunes completely.
    A few days ago I realized I hadn't backed up the phone to the computer in over a month so after deleting & reinstalling iTunes, & w/o changing anything (sync music was STILL unchecked) I ran a backup & my phone went from having 4 GB free space to being 2 GB over capacity due to iTunes trying to download the entire music library to the phone. I made a one-to-one appt again & it was suggested AGAIN that I delete all the music off my phone & then resync it to the computer & redownload the music. We did this (though a few random songs that had previously been purchased somehow remained on the phone), I got home, connected the phone & instead of the music that shows  as 'on my device' disappearing from iTunes it just sat there, so, as the guy had told me I MIGHT have to do, I threw all those songs showing in iTunes as being on my phone, in the trash so that it was completely clear.
    At this point I checked sync music, made sure the options were 'selected playlists only', checked the ones from my own list that I wanted (I usually have one playlist of comedians from my husband's folder that I also have on the phone, but didn't check it at this point). It uploaded all my stuff just fine, but for whatever reason when it saw that I wasn't uploading that comedy playlist any longer, it not only didn't upload it but proceeded to delete my husband's entire folder of playlists from iTunes. -_- I got on the phone w/ an Apple support person right away but he wasn't able to tell me anything .. basically said we'll have to rebuild everything. I asked about the possibility of using time machine, he said he's not qualified to answer that, so that's when I started looking around online & found, among others, the link I referenced a couple replies ago.
    I hope this all makes sense. It's been a long-term issue so I'm trying to go from memory as I figured to begin w/ that I had just made a mistake somewhere, so didn't try to document anything. Now w/ it having happened a 2nd time, I'm not sure if it was 'user error' or something else.......

  • I just download the Adobe Creative Cloud in my computer. As I live in Brazil, the software is in portuguese, but I'd like it in English. Is that possible to change the language? Thanks a lot.

    I just download the Adobe Creative Cloud in my computer. As I live in Brazil, the software is in portuguese, but I'd like it in English. Is that possible to change the language? Thanks a lot.

    CC desktop lists applications as "Up to Date" when they are not
    -http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.html

  • Related Topics: Is it possible to change the order of topics?

    Hi,
    Is it possible to change the order of Related Topics? I need
    to change the order of topics (that is, I don't want the topics
    alphabeticized.)
    Thanks,
    FMnRH

    Hi FMnRH
    Yes, you may change the order. If you have already inserted
    the control, double-click it to edit it. Then click the Topics tab.
    Click to select the topic you wish and below that, the area lists
    the topic name. The field is labeled "Title". So you click in the
    field and prefix the title with 1. or 2. to force the order you
    want.
    If you don't wish to prefix, you will have to manually edit
    the HTML code. But it is possible.
    Cheers... Rick

  • Is it possible to change the formatting of Excel in place

    Hi,
    is it possible to change the standard formatting of columns and texts when using Excel inplace (Excel on the web for the BPS )?
    Many thanks,
    Simon Cohen

    Simon,
    I am afraid you can't modify styles using excel in place.
    Note 632333 says the following :
    List of the features the Excel OWC can use from the template:
    Text format - font, size, colour
    Cell format - background colour, border, alignment
    Number format
    "Simple" formulas
    Panes Split and Freeze (only for Office versions 2002(XP) or higher)
    Nevertheless this applies only for cells which are not filled by BPS runtime. All texts and values written by BPS runtime into the template use standard styles. The styles cannot be changed, see below.
    List of features that are not available in the Excel OWC:
    Styles. Consequently no changes to the SAP standard styles are taken over to the OWC. Therefore the features mentioned above are available only for the cells not containing a transaction specific data
    VB Macros. When needed, the designer can use a script language (VBScript, JavaScript) to access the DOM of the OWC. You can include HTML into a text component in the Web Interface customizing (tn BPS_WB) and place your script code there.
    Cell and text formats not mentioned above (e.g. text orientation,...)
    Line brakes within a cell
    Panes Split and Freeze (only for Office version 2000)
    Embeded elements (like form objects, pictures, background picture,...)
    Having more than one worksheet in the Excel OWC
    In comparison to HTML based planning layouts the Excel layouts do not identify the position of the documents.
    Hope it helps,
    Alberto

  • SOAP RECEIVER: Possible to change the soap header request

    Hi
    Is it possible to change what is included in the soap header like namespaces (.. xmlns:ns="http://what.com"
    Specifically I need to have the "http://Strange.org/thisis.xsd" (see below) included in the header and the <ns:pi-create> included in SOAP-ENV
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:ns="http://Strange.org/thisis.xsd">
    <SOAP-ENV:Body>
    <ns:pi-create>
    <request>
    <request-data>...
    </request-data>
    </request>
    </ns:pi-create>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Hope somebody can help
    Cheers

    Hi Bowie,
    1.You can change the Namespace. condition is no obj's under the namesapce then only it's possible otherwise u can't.
    2.create a new namesapce what ever u want and copy all the obj's under that namesapce.finally delete the previous one.
    XMLAnonymizerBean
    Use
    You use this module to anonymize XML elements and attributes by removing namespaces or namespace prefixes from the XML document of the main payload.
    You can define a particular namespace prefix for each namespace. You can also change the encoding attribute of the XML declaration.
    Integration
    You can use the module in adapters that can be extended in the module processor.
    Activities
    Entries in the Processing Sequence
    ●      Insert the module before the adapter module.
    If the adapter comprises multiple modules, for information about the position of the module, see: Extending the Module Chain in the Module Processor
    ●      Enter the module name AF_Modules/XMLAnonymizerBean.
    ●      Select the Module Type Local Enterprise Bean.
    ●      The system proposes a module key.
    Entries in the Module Configuration
    ●      anonymizer.acceptNamespaces
    Enter a list of namespaces and their prefixes that are to be kept in the XML document as follows: namespace1 n1 namespace2 n2 u2026
    To enter a namespace without a prefix, enter '' (two single quotation marks).
    Any namespaces you do not specify are removed from the XML document.
    ●      anonymizer.quote
    Specify the character to be used to enclose the attribute values.
    The default value is '. The parameter is optional.
    ●      anonymizer.encoding
    To use a code page other than UTF-8, enter it.  The parameter is optional.
    For example, enter ISO-8859-1.
    Example
    The anonymizer.acceptNamespaces parameter has the following value:
    urn:sap-com:document:sap:rfc:functions rfc urn:sap-com:document:sap:soap:functions:mc-style rfc
    ●      Payload before using the XMLAnonymizerBean:
    <Z_PAYMITEM_GET_LIST
      xmlns="urn:sap-com:document:sap:rfc:functions"
      xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <I_ACCOUNTIDENT xmlns="">
        <ACCOUNT_NUMBER>0080000094</ACCOUNT_NUMBER>
        <BANK_COUNTRY>DE</BANK_COUNTRY>
        <BANK_COUNTRY_ISO>DE</BANK_COUNTRY_ISO>
      </I_ACCOUNTIDENT>
    </Z_PAYMITEM_GET_LIST>
    ●      Payload after using the XMLAnonymizerBean:
    <?xml version='1.0' encoding='utf-8'?>
    <rfc:Z_PAYMITEM_GET_LIST
      xmlns:rfc='urn:sap-com:document:sap:rfc:functions'>
      <I_ACCOUNTIDENT>
        <ACCOUNT_NUMBER>0080000094</ACCOUNT_NUMBER>
        <BANK_COUNTRY>DE</BANK_COUNTRY>
        <BANK_COUNTRY_ISO>DE</BANK_COUNTRY_ISO>
      </I_ACCOUNTIDENT>
    </rfc:Z_PAYMITEM_GET_LIST>
    with rgds,
    MFH

  • Is It Possible To Change The Name Of My Ipod

    Under the Summary tab when iTunes opens, it shows the name of my Ipod. Is it possible to change this name as it shows my name before I got married recently?

    Connect your iPod to your computer, when it appears in the iTunes source list click on it's name once to highlight it.
    Click on it's its name again.
    The text box will open for editing.
    Type a new name.
    Have a look here for more: How To Rename your iPod

  • Is possible to change the order of name and last n...

    After to have installed: "Nokia PC Suite 6.84.10.3 ita", I have noticed that the names in the Contacts folder, come lists to you with the following order: "name for first and last name for second". I have tried to change this order, opening Nokia Contacts Editor, selecting Options > Order names > Last name for first, rebboting Nokia Phone Browser and Nokia Contacts Editor in order to render effective the modifications, but nothing
    to make. Why in the previous versions of PC Suite, it was possible to change this order (Name for first or Last name for first), and instead in the version "Nokia PC Suite 6.84.10.3" it is not possible? Someone of You have the same problem? How I could resolve it? Thanks in
    advance!!

    vCard file is in plain text. you can edit it using text editor - find field like:
    N:han;abrash
    the first name and last name is seperated by ';' there. and you can reorder it to:
    N:abrash:han
    done
    What's the law of the jungle?

Maybe you are looking for

  • Upgrading reports from 6i to 10g r2 : page break issue

    Hi All we have 150 business critical reports that we are upgrading to 10g. When we run the reports to browser, page break in the browser does not coincide with the report page break. I am getting headings in the middle of pages, how do I fix it? This

  • Bridge CS4 and Nikon 7100 raw files

    Well, I use normally Bridge CS4 (that was included in Elements 8) to organize my pics and to edit or open in camera raw of Elements 11. I normaly shot in raw format with my Nikon d90. Now I shoted some pics with the new Nikon D7100 and I can't use Br

  • Hyperlink in ALV output and when downloaded to Excel, maintain that hyperli

    Hi SAP Friends, I want to know if this is possible. My requirement is, display a column with Invoice # and hyperlink (or you can call it as Hotspot in SAP language). When clicked on the hyperlink, it should open a webpage, giving details of Invoice.

  • PDFs don't transfer using "Open In.."

    I can't use "Open In..." to transfer PDFs to Dropbox or Evernote. The open in dialog goes away but nothing happens. Thanks

  • Error:  could not purchase...  there is not enough memory available

    Why do I keep getting the error:  "Could not purchase...  There is not enough memory available?"  When I attempt to update any apps I get this error.  I have uninstalled and reinstalled iTunes and just checked to see which version I have and it is 11