Problem in setting a color(back & Fore) to a list in a panel

I have a probem in setting the foreground and Background color of a list which is in a panel.Can anyone rectify the error in my program.I have given the appropriate syntax but the output color of the list is default color(Background is cyan and foregroung is black).
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class listcolor extends Applet
     CombaPanel cp;
     public void init()
          setLayout(null);
          setBackground(Color.black);
          cp = new CombaPanel();
          add(cp);
class CombaPanel extends Panel implements ItemListener
     List l;
     String name[]={"C","C++","Java",".Net","VB","Perl"};
     public CombaPanel()
          setLayout(null);
          setBackground(Color.gray);
          setBounds(40,40,250,250);
          l=new List();
          l.setBounds(20,10,150,100);
          l.setBackground(Color.black);
          l.setForeground(Color.red);
          for(int i=0;i<=5;i++)
          l.add(name);
          add(l);
          l.addItemListener(this);
     public void itemStateChanged(ItemEvent ie){}
/* <APPLET CODE = listcolor width=400 height = 300>
</APPLET>*/

Hi Lakshman,
Go to XCM setting of your ICSS application go to
Comonents --> Customer --> ui.
Create new ui element. Over here you can select default language for your ICSS web application.  Save it by giving some name like "lan1"
Now go to Application Configuration --> Customer --> <your Configuration>
Here click on "Display" Button of "Advance Setting" go to "ui Data" selection  box and select "lan1" from drop down box save it and restart your application.
I hope this will open with your default language which you have set in "uidata " component "lan1"
Regards.
eCommerce Developer

Similar Messages

  • Why has apple waited so long to make the colored back for ipod touch

    I wonder why apple has waited so long to make colored backs for the ipod touch. the last models attracted scratches and you couldn't do anything about it and even if you had a case you would get some kind of chip or whatever. Haven't they heard the comments on youtube and stuff and now they anwer the call this should have ended at the second or third generation.

    Apple has not said why. The terms of use of this forum include:
    do not add Submissions about nontechnical topics, including:
    Speculations or rumors about unannounced products.
    Discussions of Apple policies or procedures or speculation on Apple decisions.

  • Problem to set background color for configTable cell

    Hi All,
    I've a configTable displays some status fields, and I need to set yellow color when the status is in processing and green when finished and red when cancelled. I've searched the forum and decided to use iterator with method RENDER_CELL_START. Here are the steps that I've done.
    Step 1: wrote a new class ZCL_ACTSTAT_ITERATOR implements interface IF_HTMLB_TABLEVIEW_ITERATOR.
        this class has a private attribute ORDERS containing the search result internal table data, in the CONSTRUCTOR method I pass the search result to the attribute using the statement ME->ORDERS = ORDERS. Then in the method IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START I check the p_column_key for the status fields and then get the status value and set p_style accordingly using the following statement:
    CASE p_column_key.
        WHEN 'PREPAY_STATUS' OR 'DELVPLN_STATUS' OR 'DESIGN_STATUS'.
          READ TABLE me->orders INTO ls_order INDEX p_row_index.
          IF sy-subrc NE 0.
            EXIT.
          ENDIF.
          ASSIGN COMPONENT p_column_key OF STRUCTURE ls_order TO <col>.
          IF sy-subrc = 0.
            wf_text = <col>.
          ENDIF.
          IF wf_text = '00' OR wf_text = 'Initial'.
    *        concatenate '<font color=""red"">'
    *         WF_TEXT '</font>' into html_str.
    *        create object html_bee.
    *        html_bee->add( html = html_str ).
    *        p_replacement_bee = html_bee.        "not work either
            p_style = 'celldesign:STANDARD'.
          ELSEIF wf_text = '10' OR wf_text = 'InProcessing'.
            p_style = 'celldesign:GOODVALUE_MEDIUM'.
          ELSEIF wf_text = '20' OR wf_text = 'Finished'.
            p_style = 'celldesign:GOODVALUE_LIGHT'.
    *        p_style = 'background-color:#92D050'.
          ENDIF.
      ENDCASE.
    Step 2: In the component controller ZL_ZACT_MYO_ORDERS_IMPL, create a public attribute GV_ITERATOR type ref to the class created in step 1 (ZCL_ACTSTAT_ITERATOR), then in the controller's DO_PREPARE_OUTPUT method, get the combined context data and convert them into internal table LT_ORDERS, then create the iterator GV_ITERATOR passing LT_ORDERS, after this step, the result data can be transfered into iterator class and then be used in the RENDER_CELL_START method.
    The DO_PREPARE_OUTPUT method is like bellow:
    lr_pro ?= me->typed_context->order->collection_wrapper->get_first( ).
        WHILE lr_pro is BOUND.
          lr_pro->get_properties( IMPORTING es_attributes = ls_order ).
          if ls_order is not initial.
            append ls_order to lt_order.
          endif.
          lr_pro ?= me->typed_context->order->collection_wrapper->GET_next( ).
        ENDWHILE.
        CREATE OBJECT lc_iterator
          EXPORTING
            orders = lt_order.
        me->GV_iterator = lc_iterator.
    Step 3: in the .htm page, point iterator to controller's iterator
    <chtmlb:configTable  id                    = "Table1"
                        table                 = "//ORDER/Table"
                        iterator              = "<%= controller->GV_ITERATOR %>"
                         />
    Step 4: in the GET method of status attributes in context node ORDER, do the translation to change the status code into status description
    METHOD GET_PREPAY_STATUS
        DATA: OLD_VALUE TYPE ZACT_STATU,
              LS_STATUS TYPE ZACT_STATUS_S.
        OLD_VALUE = VALUE.
        READ TABLE GT_STATUS INTO LS_STATUS WITH KEY STATUS = OLD_VALUE.  
        "Get status description from field domain definition
        IF SY-SUBRC = 0.
          VALUE = LS_STATUS-NAME.           "Show status description
        ENDIF.
    ENDMETHOD.
    I thought I could see the status fields change their styles for different status code. But it still refuse to work, although I can debug to see that p_style really set as I expect, so I think there must have something wrong after RENDER_CELL_START, but what is it?
    Could anyone please help me sort it out or point out what's missing there or guide me the correct steps? Any post is greatly appreciated.
    Thank you!
    Jeff
    Edited by: liu jinghui on Feb 9, 2012 6:37 PM

    Hi, Jeff.
    Just don't want to cross post the same answer all over the forum. So I gave some inputs on the topic in this message: http://forums.sdn.sap.com/thread.jspa?messageID=11127647&#11127647
    Hope this will help you.

  • Set fill color of all words in list

    I want to change the fill color of all words in a document from a provided list of terms.
    For example, the following script works perfectly in Quark:
    set theIndexList to {"3rd Class", "4th class", "4th Class", "5th class", "5th Class", "7 lines of management/defense", "7 lines of management/defense", "7 Lines Of Management/Defense", "abalakov anchor", "Abalakov anchor", "Abalakov Anchor", "adze", "Adze", "Adze", "alpine rock", "Alpine rock", "Alpine Rock", "anchor", "Anchor", "Anchor"}
    tell application "QuarkXPress™ 4.11"
         tell document 1
             tell story 1
                 repeat with currentWord in theIndexList
                     try
                         set (the color of every text where it is currentWord) to "Green"
                     end try
                 end repeat
             end tell
         end tell
    end tell
    The purpose of this script is to highlight words for later indexing. I need to read through the document, see words someone else has chosen for indexing, then add them selectively to the index.
    InDesign CS, Mac OSX 10.3.9

    >It's not a question of which program has more complex object model
    Actually, it is largely. Search and replace in Quark relied on a combination of AppleScript whose clauses and a slightly odd definition of its text class. This made searches very simple, but it also meant they were restricted in what they could do. InDesign uses a more complex model, and exposes the full find/change engine; it's not as straight-forward, but it lets you do things that wouldn't be possible if they stuck to the whose clause approach.
    In fact you can use whose clauses similarly in InDesign, with one catch: InDesign has a different definition of what constitutes text (there is only 1 text per story), so it will only work if you're looking for one of the classes like words, lines, text style ranges, etc.
    I hesitate to rewrite the the js version in AS for CS because I don't have CS installed here. And there's an oddity involving color searches that makes it a bit more complicated than it should be. But it's very similar to the javascript.
    > Because this is an AppleScript forum
    I'm not sure what gave that impression, but it's far from so.

  • Setting up records management for a custom list in SharePoint 2013

    In a workflow 2013, I am planing to 'declare a record' on a custom list. I am doing this since I do not want users to be able to change the custom list once the record is submitted to workflow 2013.
    There are options in record declarations settings that I am not certain what to set like what values are appropriate in 'declaration of records can be performed by'.
    Since I am my own administrator on my test SharePoint 2013 website, would you tell me what I can do at the administrator's site level to enable the 'mark a record and/or declare a record feature? Basically I would like to know what options to set for a custom
    list so the records can not be modified once the custom list has been submitted to the workflow.

    Hi Wendy,
    There are 2 ways either in place records or records archive it will depend on your requirments.
    check this article it will guide you about how to configure each way
    https://support.office.com/en-nz/article/Implement-Records-Management-0bfe419e-eb1d-421a-becd-5be9fed1e479?ui=en-US&rs=en-NZ&ad=NZ
    To decide which one you will choose check the comparison in this link
    https://technet.microsoft.com/en-us/library/ee424394.aspx
    Kind Regards,
    John Naguib
    Senior Consultant
    John Naguib Blog
    John Naguib Twitter
    Please remember to mark this as answered if it helped you

  • Change the default country code for new contacts in Outlook 2013 for countries not listed in Control Panel Region Format

    Dear all,
    I would like to change the default country code for new Outlook 2013 contacts. My country is Mozambique (+258) and is not listed under Control Panel> Region> Formats> Format:
    Is there any place (registry maybe, anywhere) where I can manipulate the existing formats or manually add a new format to the List ??? - for example Portuguese (Mozambique).
    I am using Windows 8.1
    I have tried changing the country on the phone and modem options and nothing changes. Also changing the Home Location on Region> Location to Mozambique didn't change a thing. The only place where I change something and produces results is the
    Format List.
    Any ideias???? If not, is there a place where I can ask Microsoft to include Portuguese (Mozambique) on future windows updates???
    Kind regards,
    Osvaldo

    Hi,
    Windows uses the information set under
    'Phone and Modem'  in the Control Panel to determine the default area code.
    You can change the country/region to
    Mozambique
    and set your area code here:
    Regards,
    Steve Fan
    TechNet Community Support

  • Problem in Setting Background Color for JButton

    Hi,
    I am using Background color for JButton (color is selected from the customized JColorChooser created by us) where it contains the option of transparency. If we choose light color, then the background is set to JButton, but when we mouse-over the JButton, other components inside the container (JPanel) is getting displayed inside the button.
    Can anyone help to sort out this problem.
    Thanks in advance.

    Hi,
    Here is the code.
    DialogWrapper is JDialog and ColorEditorPane is JPanel.
    DialogWrapper     dlg         = new DialogWrapper();
    ColorEditorPane colorPanel = new ColorEditorPane();
    colorPanel.setValue( _data.getTransparentColor());
    dlg.showWrappedDialog( colorPanel, "color_help", "color_dialog" );
    if( dlg.isOK())
    Color chosenColor = (Color) colorPanel.getValue().getContent();
    _data.setTransparentColor( chosenColor );
    _transparentColorDisplay.setBackground( chosenColor );
    _transparentColorDisplay.setOpaque( true );
    this.repaint();
    this.doLayout();
    this.validate();
    }I've several components like JCheckBox, JRadioButton, JTextField in "this".

  • Problem while setting background color for jsplit pane

    Hi ALL,
    i am using jsplit frame inside jframe.
    i placed jtree inside left jsplit frame.
    I am not able to set background clolr to jsplit frame.
    when i hide(jtree.setvisible(false)) jtree is shows default background color.it is not showing backgroun color which i set.

    In the below code,i am adding jtree inside jscrollpane and i am adding jscrollpane inside jsplitpane.
    whenever i am setting jtree.setvisible(false),it must show background color which is i am setting for jscrollpane .but its showing default background color.
    Please help me.
    * Demo.java
    * Created on August 19, 2008, 1:44 PM
    public class Demo extends javax.swing.JFrame {
    /** Creates new form Demo */
    public Demo() {
    initComponents();
    jTree1.setVisible(false);
    jScrollPane1.setBackground(new java.awt.Color(136, 194, 252));
    jSplitPane1.setBackground(new java.awt.Color(136, 194, 252));    }
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc="Generated Code">
        private void initComponents() {
            jPanel1 = new javax.swing.JPanel();
            jSplitPane1 = new javax.swing.JSplitPane();
            jScrollPane1 = new javax.swing.JScrollPane();
            jTree1 = new javax.swing.JTree();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jScrollPane1.setViewportView(jTree1);
            jSplitPane1.setLeftComponent(jScrollPane1);
            org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
            jPanel1.setLayout(jPanel1Layout);
            jPanel1Layout.setHorizontalGroup(
                jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(jSplitPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 440, Short.MAX_VALUE)
            jPanel1Layout.setVerticalGroup(
                jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(org.jdesktop.layout.GroupLayout.TRAILING, jSplitPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 362, Short.MAX_VALUE)
            org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            layout.setVerticalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            pack();
        }// </editor-fold>
         * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new Demo().setVisible(true);
        // Variables declaration - do not modify
        private javax.swing.JPanel jPanel1;
        private javax.swing.JScrollPane jScrollPane1;
        private javax.swing.JSplitPane jSplitPane1;
        private javax.swing.JTree jTree1;
        // End of variables declaration

  • Nokia 6085 Problem with Setting AM or PM for Calen...

    Hi!
    Just got a new (factory refurb) phone from eBay and I noticed today when i went to try to set a reminder to call someone next Tuesday that I can't seem to set PM. It will let me set the 00:00 but it only allows for AM. Is this a glitch or am I doing something wrong. When I try to scroll over to the PM/AM side, it sends me back to the first 00:
    Any ideas?
    Thanks so much!
    Solved!
    Go to Solution.

    it normally lets you put time in scroll to right to the am or pm or manually input time
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • Problem in setting up XCM Configuration for Local Server

    Hi
    I have installed Local J2ee engine on my computer and have deployed E Commerce B2B B2C sca packages.
    I am trying to complete the XCM configuration for my Local Engine. For below 4 links, I have done the configuration, creation of JCO, Shop, etc is done and have tested the JCO, the test is successful.   JCOs are pointing to ECC 6.0 which is development server and on development server the XCM configuration is working fine.
    http://<host>:<port>/b2b/admin/xcm/init.do
    http://<host>:<port>/b2c/admin/xcm/init.do
    http://<host>:<port>/isauseradm/admin/xcm/init.do
    http://<host>:<port>/shopadmin/admin/xcm/init.do
    But below 2 links are not working and I am getting "Page can not be displayed" error.
    http://<host>:<port>/isauseradm/init.do
    http://<host>:<port>/shopadmin/init.do
    I need to created 2 shops in http://<host>:<port>/shopadmin/init.do but since the page is not displaying I am not able to proceed and hence when I try to login to b2b b2c application
    http://<host>:<port>/b2b/init.do and http://<host>:<port>/b2c/ init.do , I am getting an error
    "The shoplist read from buffer is empty",
    I think this error can be resolved by creating 2 shops in http://<host>:<port>/shopadmin/init.do, but
    http://<host>:<port>/shopadmin/init.do itself in not displaying.
    Please can you help.
    Thanks
    Edited by: Neha Bhatia on Jun 4, 2009 10:31 PM

    Hi
    I checked the mentioned Patch Levels, everything seems to be fine.
    After I did few changes in JCOs and checked the XCM configuration throughly shopadmin URL (http://<host>:<port>/shopadmin/shopadmin/init.do) has started working.
    Now I have maintained 2 shops and can see the B2B and B2C web portals fine.
    But as soon as I select any material, it is giving error saying error in XCM configuration related to IPC.
    could you pleaase help me out with this?
    Also, as soon as I click on the B2B Login link, it dumps.
    And useradmin URL  http://<host>:<port>/isauseradm/useradmin/init.do   is still giving "Page can not be displayed",
    These problems are related to XCM configuration, but not sure where exactly and which configuration is missing. please can you suggest ? Any XCM configuration related document will also be helpful.
    Regards,
    Neha

  • Problem in setting path and classpath for java in RedHat linux 9

    Hi ,
    i am not able to set the PATH and CLASSPATH for j2sdk1.4.2_06
    I have tried with export PATH=$PATH:/usr/j2sdk1.4.2_06/bin
    and export CLASSPATH=$CLASSPATH:/usr/j2sdk1.4.2_06/lib
    in terminal
    but i want to configure it as permenant way for the jre and jdk
    and we should only type java or javac according to the requirement
    regards mihir...

    type those in .bashrc ... save and exit
    then at prompt, type 'source .bashrc'
    this is the permanent solution ...
    bhalo thakun

  • Problem when setting Reason of Rejection for a sales order using IDOC

    Hi All,
          I am working on a requirement where i need to put a reason for rejection as 'Item Cancelled' for a sales order via IDOC 'IDOC_INPUT_ORDCHG' in a third party scenerio where the PR is created automatically from the sales order . When the IDOC is run in the foreground I get the information message Subsequent function  " 'Purchase requisition from sales document' not possible Item & was rejected "(Message V1579) and the IDOC results in a error when run  in the background mode because of the same information message. The message should not appear when a sales order is being processed in the background but still the message is being displayed . Is there any way the message can be suppressed ? Thanks in Advance.
    Regards,
    Sowmya.

    can you send the program how you create a so or po using IDOC, as i've a assignment creating PO using IDOC & then creating a sales order of the PO. and i dont know how to create a IDOC. SO IF you have sample program it would be help full
    Thanxs

  • How to set different color for items in selectManyCheckbox

    hi,
    I would like to change item text background color for each item on selectManyCheckbox (different for each item).
    It is only 5 items so that could be static reference or select.
    I know only how to change background for all items
    af|selectManyCheckbox::item-text {
        background:orange;
    How to select concrete item text and change color for only them?
    I found similar problem:
    css - Set background color of every individual checkbox of p:selectManyCheckbox - Stack Overflow
    but this dont work for me because I dont have in adf tr structure
    I need somethink like this:
    af|selectManyCheckbox::item-text XXXX - select here one of the item by number on list or id  {
        background:orange;

    hi,
    thanks Alejandro and Federico for answers.
    I use JDev 11.1.1.6. I dont write it in previously post because I think that is a more css then adf problem.
    I have 5 selectItem based on simple List<String> {"text1", "text2", "text3", "text4". "text5"}:
    <af:selectManyCheckbox label="List" id="smc2"
                                               layout="horizontal"
                                               value="#{bean.listInBean}"
                                               autoSubmit="true">
                          <af:selectItem label="text1" value="text1" id="si47"/>
                          <af:selectItem label="text2" value="text2" id="si43"/>
                          <af:selectItem label="text3" value="text3" id="si46"/>
                          <af:selectItem label="text4" value="text4" id="si45"/>
                          <af:selectItem label="text5" value="text5" id="si44"/>
                        </af:selectManyCheckbox>
    and I would like to color first selectItem text to orange, second to red.. etc, The list is a static list. Not would be changed.
    After Alejandro answer I build simple for each element (anyCollection contains item with two fields: textValue and label {(text1,text1), (text2,text2)...}
      <af:forEach items="#{bean.anyCollection}"
                                      var="item">
                            <af:selectItem id="si48" value="#{item.textValue}"  styleClass="yourClassName#{var.index}"
                                           label="#{item.label}"/>
                          </af:forEach>
    And now if I have my var called "item" I can write 5 css style classe yourClassName#{var.index} with different color, but there is a problem:
    Attribute styleClass is not defined for af:selectItem
    If it will be so simple I will just add 5 style classes for each selectItem
    <af:selectItem label="text1" value="text1" id="si47" styleClass="yourClassName0"/>
    <af:selectItem label="text2" value="text2" id="si43" styleClass="yourClassName1"/>
    Should I use other component then adf facer rich?

  • Facing problem in using JEditorPane as renderer for JList

    I am trying to use JEditorPane as renderer for a list. But I am facing some problems. First problem is the output in the editorpane is not shown properly. I want to show a html file, but only portion of the first line that is viewable in the editorpane is shown. I, of course, need to show the total content of the file. Again sometimes the editorpane looks blank. If I click on the list then some text are shown in the editor pane. Please help me to overcome these problems.
    Here goes the code for the renderer.
    list.setCellRenderer(new ListCellRenderer() {
                private JEditorPane editor = new JEditorPane();
                public Component getListCellRendererComponent(JList mList, Object value, int index,
                                                            boolean isSelected, boolean hasFocus) {
                    try {
                        editor.setPage("file://localhost/C:/networks/network1/description.html");
                        editor.setBackground(isSelected ? mList.getSelectionBackground() : mList.getBackground());
                        editor.setForeground(isSelected ? mList.getSelectionForeground() : mList.getForeground());
                        editor.setBorder(BorderFactory.createRaisedBevelBorder());
                        editor.setOpaque(true);
                    } catch(Exception e) {
                        e.printStackTrace();
                    return editor;
            });

    hai ahmad,
    it could be bcoz of the size of the pane.... the size content might be too large to fit in that pane....... y dont u increase the width of the pane..
    or set the size of the pane..... its surely bcoz of the size only....
    hope this helps u...... or else revert back for further clarifications...
    Regards,
    Ciya.

  • Problem with setting Item level permissions lists

    Hello!
    I have SPS 2013 on-premised environment with AD authentication.
    At some moment I've noticed that we have a problem with setting the item level permissions on any lists except the document libraries.
    When I click the "shared with" button I see a popup form with a list of users who have an access to that list but there is no "invite people" link or "Advanced" link. Moreover, the "loading" ring rotates
    instanly like some operation was'nt ended. 
    The same operation with documents in libraries works well.
    I am be grateful for any help!

    Hi Mischael,
    From your description, my understanding is that there were no "invite people" or "Advanced" link when some users clicked "shared with" button in some lists.
    This issue seems like about permissions. Please log on your site with site collection administrator or a user who has full control for the site, then go to a problematic list->List settings->Permissions for this list, check whether the list
    has unique permissions. Then click "Check Permissions", check the permission level for the problematic users and then go to Site Settings->Site permissions->Permission levels, check whether the permission level contains "Manage permissions".
    If not, add the permission into the permission level.
    Thanks,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for