JComboBox drop down list border color

When we click arrow button of JComboBox we get drop down list with black colored border.
But I want to set border of dropdown list to grey color.
How to do that?

The required border size and color is mentioned in javax.swing.plaf.basic.BasicComboPopup instantiated in javax.swing.plaf.basic.BasicComboBoxUI; and unfortunately that is not directly accessible.
One of the approach would be:
1. subclass BasicComboPopup - here you'll simply set the derived class's border to desired one.
2. subclass BasicComboBoxUI - here you'll override createPopup (to return derived BasicComboPopup object) and createUI (to return derived BasicComboBoxUI object)
3. make a call to target JComboBox's setUI to set new instance of derived BasicComboBoxUI object.
Caution:
1. This approach will be implementation specific, for more generalized result try creating your own look and feel.
2. May need to tweek some more code to get final output.

Similar Messages

  • Can't find ProPhoto RGB in drop down list in Color Settings

    I am trying to change my Color Settings in PSCS4 in Windows 7 64 bit computer.  I am printing in Lightroom so would like to change my Color Settings in PSCS4 from Adobe RGB to ProPhoto RGB.  When I go to the Color Settings Dialog Box in CS4 and go to Working Spaces, the drop down list choices under RGB do not include ProPhoto RGB.   They just include Adobe RGB, Color Match RGB, Monitor RGB, Apple RGB and sRGB.  I am not given the choice of ProPhoto RGB. 
    What am I missing here?
    How can I change my Color Settings to Adobe ProPhoto RGB in Windows 7 64 bit computer using PSCS4?
    Thanks,
    Matthew Kraus

    Well it appears in the drop-down list in my
    Settings dialog using Vista 64.
    Have you updated CS4 to version 11.0.1?
    You could also try resetting your preferences as described in the FAQ.
    http://forums.adobe.com/thread/375776?tstart=0
    You either have to physically delete (or rename) the preference files or, if using the Alt, Ctrl, and Shift method, be sure that you get a confirmation dialog.
    This resets all settings in Photoshop to factory defaults.
    A complete uninstall/re-install will not affect the preferences and a corrupt file there may be causing the problem.

  • How to influence APEX 4.0 autocomplete text item drop down list's colors?

    Hi,
    Could some body please point me to the template that I have to modify?
    I am using theme 15 and the text item with auto complete has a very different color schema, that I would like to modify, so that it would harmonize with Theme 15 colors. It's just that I can not seem to find the template to modify. TIA.
    Tamás

    Tamas
    There's no template for the autocomplete item. It's appearance is controlled entirely using CSS. Theme 15 does not include themed styling for autocomplete items: it falls back to a generic scheme specified in the <tt>apex_4_0.css</tt> style sheet:
    .ac_results {
      padding: 0;
      border: 1px solid black;
      background-color: white;
      overflow: hidden;
      z-index: 99999;
    .ac_results ul {
      width: 100%;
      list-style-position: outside;
      list-style: none;
      padding: 0;
      margin: 0;
    .ac_results li {
      margin: 0;
      padding: 2px 5px;
      cursor: default;
      display: block;
      font: menu;
      font-size: 12px;
      line-height: 16px;
      overflow: hidden;
    .ac_results li {
      margin: 0;
      padding: 2px 5px;
      cursor: default;
      display: block;
      font: menu;
      font-size: 12px;
      line-height: 16px;
      overflow: hidden;
    .ac_loading {
      background: white url('indicator.gif') right center no-repeat;
    .ac_odd {
      background-color: #eee;
    .ac_over {
      background-color: #0A246A;
      color: white;
    }The best approach would be to use a web inspector tool to identify what each of these rules does in the context of using the autocomplete item and create your own theme-15-friendly style sheet to override this subset of <tt>apex_4_0.css</tt>.

  • Drop down list(JComboBox) - Bottom border is not visible for the first time

    Drop down list(Combo-box) JComboBox - Bottom border is not visible for the first time i click on the arrow to drop the list down.
    I am using jdk1.3.1_02.
    Did any one face this issue.
    Please let me know.
    Thanks,
    Sridhar.

    I must be a little confused regarding your question.
    You can simply change your code frame.setSize(200, 200); to frame.setSize(400, 400);When you say you are unable to see the border are you specifically talking about the border of the frame or the border of the combo box?
    Lance

  • How can I put JTree into drop-down List of JCombobox

    I want to create a drop-down list which shows a list of nodes. When the user clicks on a node, it should open to show the leafs. Clicking on a leaf should close the ComboboxPopup and show its value. Creating a renderer only represent my tree, but I can't trap the events.
    Here is my simplified code.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.JTree;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.border.*;
    import java.util.*;
    public class ComboBoxTreeDemo  extends JPanel
         static JFrame frame;
         ComboBoxRenderer renderer;
         JTree tree;
         public ComboBoxTreeDemo()
              setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));
              DefaultMutableTreeNode root =  new DefaultMutableTreeNode("top");
              DefaultMutableTreeNode sub1 =  new DefaultMutableTreeNode("sub1");
              DefaultMutableTreeNode sub2 =  new DefaultMutableTreeNode("sub2");
              root.add(sub1);
              root.add(sub2);
              tree = new JTree(root);
              String[] string = {"1" };
              JComboBox jcb = new JComboBox(string);
              renderer = new ComboBoxRenderer(this);
              jcb.setPreferredSize(new Dimension(100,22));
              jcb.setEditable(true);
              jcb.setRenderer(renderer);
              JPanel jpa = new JPanel();
              jpa.setLayout(new BoxLayout(jpa, BoxLayout.PAGE_AXIS));
              jpa.setAlignmentX(Component.LEFT_ALIGNMENT);
              jpa.add(jcb);
              add(jpa);
              setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
         private static void createAndShowGUI()
              JFrame.setDefaultLookAndFeelDecorated(true);
              JFrame frame = new JFrame("ComboBoxTreeDemo");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JComponent newContentPane = new ComboBoxTreeDemo();
              newContentPane.setOpaque(true);
              frame.setContentPane(newContentPane);
              frame.pack();
              frame.setVisible(true);
          class ComboBoxRenderer extends JPanel implements ListCellRenderer
              ComboBoxTreeDemo cbt;
              public ComboBoxRenderer(ComboBoxTreeDemo cbt)
                   this.cbt = cbt;
                   setLayout(new BorderLayout());
                   add(cbt.tree);
              public Component getListCellRendererComponent(JList list,Object value,int index, boolean isSelected,boolean cellHasFocus)
                   return this;
         public static void main(String[] args)
              javax.swing.SwingUtilities.invokeLater(new Runnable()
                   public void run()
                        createAndShowGUI();
    }

    Thank you for the excellent reference Peddi. I had played with the OAMessageChoiceBean component yesterday, but I was able to tell from your instructions that "Picklist Display Attribute" and "Picklist Value Attribute" really are not for binding to the database EO. That was the key piece of information that had me confused.
    In addition to adding the messageChoice component to the page, I needed to write some code to synchronize the picklist value with the corresponding code value, which I placed in am OAFormValueBean (hidden form field) which I could then bind to my application's database EO in the controller, running in the processFormRequest procedure:
    /** Synchronize the catalog code with the selected catalog name */
    protected void syncCatalogValues(OAPageContext pageContext,
    OAWebBean webBean, MyApplicationAMImpl am) {   
    OAMessageChoiceBean mcb =
    (OAMessageChoiceBean) webBean.findChildRecursive("CatalogName");
    OAFormValueBean cc =
    (OAFormValueBean) webBean.findChildRecursive("CatalogCode");
    String catalogDescription = mcb.getText(pageContext);
    if (catalogDescription != null) {
    String catalogCode = am.getCatalogCode(catalogDescription);
    cc.setValue(pageContext, catalogCode);
    Along with a little code to get the catalogCode value from the LOVVO, that's all it took.
    Thanks again. This was a great help.
    Pete

  • Delete border drop down list

    hello, how can I hide the borders of a drop down list??

    Hi,
    There is a post here: Laying out a form with a sample form here: sample form
    You want to explore the objects on page 2.
    You can access the user interface settings for each object and change the border to solid or set its presence to invisible. For example in the enter event:
    var vName = this.name.toString();
    xfa.resolveNode(vName + ".ui.choiceList.border.edge").stroke = "solid";
    for (var i=0; i<4; i++) {
      this.ui.oneOfChild.border.getElement("edge",i).color.value = "255,153,0"; //orange tinge
      xfa.resolveNode(vName + ".ui.choiceList.border").getElement("edge",i).thickness = "0.0200in";
    And for the exit event:
    var vName = this.name.toString();
    for (var i=0; i<4; i++) {
         xfa.resolveNode(vName + ".ui.choiceList.border").getElement("edge",i).thickness = "0.0069in";
    xfa.resolveNode(vName + ".ui.choiceList.border.edge").stroke = "lowered";
    Hope that helps,
    Niall

  • Acrobat Color Management - Color Profiles Missing from Drop down list

    I have created a custom .icc profile for my large format plotter. The .icc file is located in C:\WINDOWS\system32\spool\drivers\color, but it is not visible in my Color Profile drop down list, in the Color Management section of the Advanced Print Setup box, which is available via the Advanced option in the print dialog box. I have set up 10 users, some have Acrobat 8, some have acrobat 9. Of those 10 the profile is not showing up on one of the Acrobat 8's and one of the Acrobat 9's. To complicate matters, last night I sucessfully created a preset for an Acrobat 9 user and linked the profile, but after he logged off and back on today he can no longer see the profile either. Have you ever seen this activity? -Thanks

    Here's the link:
    http://forums.adobe.com/community/acrobat/acrobat_windows

  • C5.5 Issue with color/colour in matching question drop down list

    Hi is there a way to change the colour of the letters that appear in the drop down lists for a matching question in 5.5?
    I'm using white text on a grey background for my quiz slides, which is nice and easy to read, but then in the preview the letters in the drop down appear as white text on a white background. I can't see a way to change the font in the drop down back to black (as it is on my editing view), without also changing the colour of the answer text.
    Is there a way to change this?
    I've just tried covering the lists over with a chunk of background image - so that the user doesn't even know they're there, but the quiz slide has ordered the image behind the lists.
    Failing there being a way to change the colour, is there a way to have a matching slide without a drop down list at all?
    Thanks for reading
    Lynn

    Hi Shekhar
    Thanks for the extra info - I'd tried changing the properties and using the object style manager before, but hadn't considered using them together.
    This time, I followed your advice and:
    I set the colour for 'Matching entries' to black in the object style manager
    Then went into each column 1 entry and set the text to white
    The result was white text in the column, with black in the list. Much better than before!
    However, when I changed the text in column 2 to white, the list entries became white as well.
    After a lot of experimentation, I've discovered that if you just select the text object and change the colour, you change all the text including the lettering and numbering of the answer - this changes the list colour.
    If you change the text in the answer by highlighting it, this doesn't affect the lettering/numbering, however it still changes the drop down
    To leave the drop down the right colour you need to change the answer colour by highlighting first, but, and the order is vital, you need to insert a space between the letter/number and the answer text first.
    So, the end result I have is that the column 1 text is the right colour, the column 2 text is the right colour and the text in the drop down is the right colour. Unfortunately the lettering for the column 2 answers has to stay the same  as the letters in the drop down list, so they don't show up brilliantly (black on a dark grey background), but it's a massive improvement on the invisible list I had before!
    Thanks again!
    Lynn

  • Displaying something other than a list in a JComboBox drop down section

    Dear all,
    i'd like to be able to put a JTree into a JComboBox drop down section, or at least appear to have done this. has anyone done this or have an idea how this might be achieved?
    Cheers,
    Matt

    Sounds like a job for a custom renderer. The JTree tutorial shows an example of one.

  • Select List border color ?

    Hi,
    Is there a way to change the Select List border color (Drop down list) ? I tried to add some style in the HTML element attribute without success.
    Thank you.

    See
    http://p2p.wrox.com/topic.asp?TOPIC_ID=21626
    Doesnt seem like you can change either the border color or the style of the "arrow" on the select list
    You can style the individual options, see an example at
    http://htmldb.oracle.com/pls/otn/f?p=24317:104
    Hope this helps.

  • Adobe LiveCycle Designer 8.1 Drop-Down List Problem

    I have an array of data.  I'm populating one drop-down list (Genus) with data and then trying to populate a second drop-down list (Species) based on the selection from the first drop-down list (Genus).<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><?xfa generator="AdobeLiveCycleDesigner_V8.0" APIVersion="2.5.6290.0"?><br /><xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/" timeStamp="2007-08-20T19:50:53Z" uuid="6f886dfc-03cb-474d-84ad-70c94bed1788"><br /><template xmlns="http://www.xfa.org/schema/xfa-template/2.5/"><br />   <subform allowMacro="1" layout="tb" locale="en_US" name="form1"><br />      <pageSet><br />         <pageArea id="Page1" name="Page1"><br />            <contentArea h="756pt" w="576pt" x="0.25in" y="0.25in"/><br />            <medium long="792pt" short="612pt" stock="default"/><br />            <?templateDesigner expand 1?></pageArea><br />         <?templateDesigner expand 1?></pageSet><br />      <subform h="756pt" w="576pt"><br />         <field h="8.6202mm" name="PrintButton1" relevant="-print" w="41.8956mm" x="158.7501mm" y="34.7904mm"><br />            <?templateDesigner isPrintObject true?><br />            <ui><br />               <button/><br />            </ui><br />            <font typeface="Myriad Pro"/><br />            <caption><br />               <value><br />                  <text>Print Form</text><br />               </value><br />               <para hAlign="center" vAlign="middle"/><br />               <font typeface="Myriad Pro"/><br />            </caption><br />            <border hand="right"><br />               <?templateDesigner StyleID apbx2?><br />               <edge stroke="raised"/><br />               <fill><br />                  <color value="212,208,200"/><br />               </fill><br />            </border><br />            <bind match="none"/><br />            <event activity="click"><br />               <script contentType="application/x-javascript">xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 1, 0, 0, 0);</script><br />            </event><br />         </field><br />         <draw h="8.6202mm" name="StaticText1" w="128.9085mm" x="3.4391mm" y="0.3098mm"><br />            <ui><br />               <textEdit><br />               </textEdit><br />            </ui><br />            <value><br />               <text>CRP Request/Report Form for qPCR Analysis:</text><br />            </value><br />            <font size="14pt" typeface="Myriad Pro" weight="bold"/><br />            <margin bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm" topInset="0.5mm"/><br />            <traversal><br />               <traverse ref="DateTimeField1[0]"/><br />            </traversal><br />            <?renderCache.bounds 362576 21601 0 0 1417 1417 0 0?><br />            <?renderCache.textRun 42 CRP Request/Report Form for qPCR Analysis: 0 1417 11917 0 0 0 "Myriad Pro" 1 0 14000 ISO-8859-1?></draw><br />         <field h="7.7252mm" name="Req" w="77.6041mm" x="3.4391mm" y="8.9305mm"><br />            <ui><br />               <textEdit><br />                  <border><br />                     <?templateDesigner StyleID aped2?><br />                  </border><br />                  <margin/><br />               </textEdit><br />            </ui><br />            <font typeface="Myriad Pro"/><br />            <margin bottomInset="1mm" leftInset="1mm" rightInset="1mm" topInset="1mm"/><br />            <para vAlign="middle"/><br />            <caption reserve="26.19mm"><br />               <font baselineShift="0pt" typeface="Myriad Pro"/><br />               <para marginLeft="0pt" marginRight="0pt" spaceAbove="0pt" spaceBelow="0pt" textIndent="0pt" vAlign="middle"/><br />               <value><br />                  <text>Requestor</text><br />               </value><br />            </caption><br />            <border><br />               <edge presence="hidden"/><br />               <corner presence="hidden" thickness="0.1778mm"/><br />            </border><br />            <traversal><br />               <traverse ref="Lot[0]"/><br />            </traversal><br />         </field><br />         <draw h="8.1758mm" name="StaticText2" w="18.6252mm" x="3.4391mm" y="17.5504mm"><br />            <ui><br />               <textEdit><br />               </textEdit><br />            </ui><br />            <va

    var constColNum = 10;
    var InfoDB = new Array
    new Array( "Bacillus","Brucella","Burkholderia","Coxiella","Clostridium", "Erwinia","Francisella","Yersinia","Rickettsia","Other"),
    new Array( "anthracis","cereus","thuringensis","subtilis","globigii","lichenformis","other"),
    new Array( "melitensis","suis","ovis","canis","abortus","neotomae"),
    new Array( "mallei","pseudomallei"),
    new Array( "burnetti","other"),
    new Array( "botulinum"),
    new Array( "herbicola"),
    new Array( "tularensis","holartica"),
    new Array( "pestis","pseudo TB","other"),
    new Array( "prowazekii"),
    new Array( "other"),
    new Array( "DHP61.183","cereus grp","sodA","tarA","omp25","IS407A","IS1111A","Cbot","aroQ","tul4"),
    new Array( "3A","Rprow4","capB,pagA,tarA","cereus grp, tarA","cereus grp, tarA, F1cap, pesticin, YopD","designed assay"),
    new Array( "0.1754","0.1718","0.1742","0.2164","0.2170","0.2778","0.1565","0.1255","0.4762","0.4808" ),
    new Array( "0.4831","0.8197","0.1976","0.1923","you figure it out")
    function LoadDropMenu(obj, rowNum)
    for(i = 0; i < constColNum; i++)
    obj.addItem(InfoDB [rowNum][i], i + "");
    function LoadDropMenu2(objDropDown, nIndex)
    var arrayInfoDB = InfoDB[nIndex];
    objDropDown.rawValue = "";
    objDropDown.clearItems();
    for (var i = 0; i < constColNum; i++)
    objDropDown.addItem(arrayInfoDB[i], i + "");
    //objDropDown.addItem(arrayInfoDB[i]);

  • Styling Drop-Down List?

    i want to stylize a drop down list like the image attached. How can i do that?
    I was able to modify the border easily. The main problem is the color of drop-downed text background colors (default and hover)
    thanks

    Sorry,
    As far as I know you don't have that degree of flexibility in dropdowns. WYSIWYG, I'm afraid. I tried to copy fragments from Tour de Flex into LC Designer, to see if I could push the ui, but no!!!
    Alternate colours will have to wait for a future release.
    N.

  • How to get Date value from database and display them in a drop down list?

    Hello.
    In my Customers table, I have a column with Date data type. I want to create a form in JSP, where visitors can filter Customers list by year and month.
    All I know is this piece of SQL that is convert the date to the dd-mm-yyyy format:
    SELECT TO_CHAR(reg_date,'dd-mm-yyyy') from CustomersAny ideas of how this filtering possible? In my effort not to sound like a newbie wanting to be spoonfed, you can provide me link to external notes and resources, I'll really appreciate it.
    Thanks,
    Rightbrainer.

    Hi
    What part is your biggest problem?? I am not experienced in getting data out of a database, but the way to get a variable amount of data to show in a drop down menu, i have just messed around with for some time and heres how i solved it... In my app, what i needed was, a initial empty drop down list, and then using input from a text-field, users could add elements to a Vector that was passed to a JComboBox. Heres how.
    package jcombobox;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.Vector;
    import javax.swing.*;
    public class Main extends JApplet implements ActionListener {
        private Vector<SomeClass> list = new Vector<SomeClass>();
        private JComboBox dropDownList = new JComboBox(list);
        private JButton addButton = new JButton("add");
        private JButton remove = new JButton("remove");
        private JTextField input = new JTextField(10);
        private JPanel buttons = new JPanel();
        public Main() {
            addButton.addActionListener(this);
            remove.addActionListener(this);
            input.addActionListener(this);
            buttons.setLayout(new FlowLayout());
            buttons.add(addButton);
            buttons.add(remove);
            add(dropDownList, "North");
            add(input, "Center");
            add(buttons, "South");
        public void actionPerformed(ActionEvent e) {
            if (e.getSource() == addButton) {
                list.addElement(new SomeClass(input.getText()));
                input.setText("");
            } else if (e.getSource() == remove) {
                int selected = dropDownList.getSelectedIndex();
                dropDownList.removeItemAt(selected);
        public void init(String[] args) {
            setSize(400,300);
            getContentPane().setLayout(new BorderLayout());
            getContentPane().add(new Main());
    }And that "SomeClass" is show here
    package jcombobox;
    public class SomeClass {
        private String text;
        public SomeClass(String input) {
            text = input;
        public String toString() {
            return text;
    }One of the things i struggled a lot with was to get the dropdown menu to show some usefull result. If the list just contains class references it will show the memory code that points to that class. Thats where the toString cones in handy. But it took me some time to figure that one out, a laugh here is welcome as it should have been obvious :-)
    When the app is as simple as this one, using a <String> vector would have been easier, but this is just to demonstrate how to place classes in a vector and get some usefull info out of it, hope this answered some of your question :-)
    The layout might have been easier to write, than using the toppanel created by the JApplet and then the two additional JPanels, but it was just a small app brewed together in 15 minutes. Please comments on my faults, so that i can learn of it.
    If you need any of the code specified more, please let me know. Ill be glad to,

  • Drop down list in ALV grid

    Dear Expert,
    I am new to OOPS ,
    I want to display drop down list for a particular field in my output, so I am using OOPS but in my below code
    I am facing problem in displaying the output as I am getting the error message
    Field catalog not found...
    Also advice me how to display drop down list in a particular field.
    Please advice
    MODULE pbo OUTPUT.
      SET PF-STATUS 'ZTEST'.
      IF g_custom_container IS INITIAL.
        DATA: lt_exclude TYPE ui_functions,
              lt_f4 TYPE lvc_t_f4 WITH HEADER LINE.
        CREATE OBJECT g_custom_container
          EXPORTING
            container_name = g_container.
        CREATE OBJECT g_grid
          EXPORTING
            i_parent = g_custom_container.
        PERFORM field_catalog TABLES it_lvc_t_fcat
           USING: 'S_FINAL' 'MATNR' ' ' 'Part Number' ' ' ' ',
                       'S_FINAL' 'MAKTX' ' ' 'Part Description' ' ' ' ',
                       'S_FINAL' 'MBLNR' ' ' 'Document No' ' ' ' ',
                       'S_FINAL' 'BLDAT' ' ' 'Document date' ' ' ' ',
                       'S_FINAL' 'LIFNR' ' ' 'Vendor Number' ' ' ' ',
                       'S_FINAL' 'STATUS' ' ' 'Acknowledgement' ' ' 'X',
                       'S_FINAL' 'REMARKS' ' ' 'Remarks' ' ' 'X'.
        CALL METHOD g_grid->set_table_for_first_display
           EXPORTING
    *    I_STRUCTURE_NAME              =
         is_layout                                =   it_lvc_s_layo
           CHANGING
             it_outtab                        =   i_final
         it_fieldcatalog                =   it_lvc_t_fcat
      ENDIF.
    ENDMODULE.                 " PBO  OUTPUT
    FORM field_catalog  TABLES t_field_catalog STRUCTURE wt_lvc_s_fcat
    USING fp_tabname TYPE any
    fp_fieldname TYPE any
    fp_key TYPE any
    fp_text TYPE any
    fp_do_sum TYPE any
    fp_edit TYPE any.
      t_field_catalog-tabname = fp_tabname.
      t_field_catalog-fieldname = fp_fieldname.
      t_field_catalog-key = fp_key.
      t_field_catalog-seltext = fp_text.
      t_field_catalog-do_sum = fp_do_sum .
      t_field_catalog-edit = fp_edit .
    ENDFORM.                    "field_catalog
    Edited by: Karthik R on Mar 15, 2010 6:11 PM

    Hi Karthik,
    Below mentioned  is a Simple code for creating dropdown lists for columns in ALV grid output
    REPORT z_alv_dropdown.
    *Type pools declarations for ALV
    TYPE-POOLS : slis.
    *data declarations for ALV container, ALV grid,  Field catalogues & layout
    DATA: g_grid  TYPE REF TO cl_gui_alv_grid,
          g_custom_container TYPE REF TO cl_gui_custom_container,
          gt_fieldcat TYPE lvc_t_fcat,
          gs_layout TYPE lvc_s_layo.
    *INTERNAL TABLE AND WA DECLARATIONS FOR t517 A table
    DATA: gt_outtab TYPE STANDARD TABLE OF t517a INITIAL SIZE 0,
          wa_outtab TYPE t517a.
    *initialisation event
    INITIALIZATION.
    *Start of selection event
    START-OF-SELECTION.
    *Call to ALV
      CALL SCREEN 600.
    *On this statement double click  it takes you to the screen painter SE51.
    *Create a Custom container and name it CCONT and OK code as OK_CODE.
    *Save check and Activate the screen painter.
    *Now a normal screen with number 600 is created which holds the ALV grid.
    PBO of the actual screen , Here we can give a title and customized menus
    Here we also call the subroutine for ALV output.
          MODULE PBO OUTPUT                                             *
    MODULE pbo OUTPUT.
    set pf-status 'xxx'.
    set titlebar 'MAIN100'.
    Subroutine to display the output in alv
      PERFORM alv_output.
    ENDMODULE.                    "pbo OUTPUT
    PAI module of the screen created. In case we use an interactive ALV or
    *for additional functionalities we can create OK codes and
    based on the user command we can do the coding.
          MODULE PAI INPUT                                              *
    MODULE pai INPUT.
    ENDMODULE.                    "pai INPUT
    *&      Form  BUILD_FIELDCAT
    FORM build_fieldcat.
      DATA ls_fcat TYPE lvc_s_fcat.
    *Build the field catalogue
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name = 'T517A'
        CHANGING
          ct_fieldcat      = gt_fieldcat.
    To assign dropdown in the fieldcataogue
      LOOP AT gt_fieldcat INTO ls_fcat.
        CASE ls_fcat-fieldname.
          WHEN 'SLART'.
    *drdn-hndl = '1' is the first list box
            ls_fcat-drdn_hndl = '1'.
            ls_fcat-outputlen = 15.
            MODIFY gt_fieldcat FROM ls_fcat.
    *drdn-hndl = '2' is the second list box
          WHEN 'ABART'.
            ls_fcat-drdn_hndl = '2'.
            ls_fcat-outputlen = 15.
            MODIFY gt_fieldcat FROM ls_fcat.
        ENDCASE.
      ENDLOOP.
    ENDFORM.                    "build_fieldcat
    *&      Form  ALV_OUTPUT
    FORM alv_output .
    *Create object for container
      CREATE OBJECT g_custom_container
             EXPORTING container_name = 'CCONT'.
    *create object for grid
      CREATE OBJECT g_grid
             EXPORTING i_parent = g_custom_container.
    Build fieldcat and set column
    *Assign a handle for the dropdown listbox.
      PERFORM build_fieldcat.
    *Build layout
      PERFORM build_layout.
    Define a drop down table.
      PERFORM dropdown_table.
    *fetch values from the T517A table
      SELECT * FROM t517a INTO TABLE gt_outtab.
    *Display ALV output
      CALL METHOD g_grid->set_table_for_first_display
        EXPORTING
          is_layout       = gs_layout
        CHANGING
          it_fieldcatalog = gt_fieldcat
          it_outtab       = gt_outtab.
    ENDFORM.                               "ALV_OUTPUT
    *&      Form  dropdown_table
          text
    -->  p1        text
    <--  p2        text
    FORM dropdown_table.
    *Declarations for drop down lists in ALV.
      DATA: lt_dropdown TYPE lvc_t_drop,
            ls_dropdown TYPE lvc_s_drop.
    First SLART listbox (handle '1').
      ls_dropdown-handle = '1'.
      ls_dropdown-value = '01 Pink'.
      APPEND ls_dropdown TO lt_dropdown.
      ls_dropdown-handle = '1'.
      ls_dropdown-value = '02 Yellow'.
      APPEND ls_dropdown TO lt_dropdown.
      ls_dropdown-handle = '1'.
      ls_dropdown-value = '03 Green'.
      APPEND ls_dropdown TO lt_dropdown.
      ls_dropdown-handle = '1'.
      ls_dropdown-value = '04 Black'.
      APPEND ls_dropdown TO lt_dropdown.
      ls_dropdown-handle = '1'.
      ls_dropdown-value = '05 White'.
      APPEND ls_dropdown TO lt_dropdown.
      ls_dropdown-handle = '1'.
      ls_dropdown-value = '06 Blue'.
      APPEND ls_dropdown TO lt_dropdown.
      ls_dropdown-handle = '1'.
      ls_dropdown-value = '09 Other Colors'.
      APPEND ls_dropdown TO lt_dropdown.
    *method to display the dropdown in ALV
      CALL METHOD g_grid->set_drop_down_table
        EXPORTING
          it_drop_down = lt_dropdown.
    ENDFORM.                               " dropdown_table
    *&      Form  build_layout
          text
    *layout for ALV output
    FORM build_layout .
      gs_layout-cwidth_opt = 'X'.
      gs_layout-grid_title = 'ALV DROPDOWN LISTS'.
      gs_layout-no_toolbar = 'X'.
    ENDFORM.                    " build_layout
    Hope it is helpful,
    Regards,
    Soundarya.

  • Font in Menu Bar and Drop Down list way too small

    I just tried PSE 10 and was very surprised to see that Adobe did not address the problem with the font size being way too small in the menu bar and drop down list.  I cannot possibly read the font - so the program is basically unusable.  I am using a new 17inch laptop.  Is it possible that after all the complaints Adobe didn't fix this problem in PSE 10?  Are they even working on it?  I love the program but unfortunately I am going to have to switch to something else because there is no way I can read the font and thus cannot use the program at all.  Very, very disappointing.  Hopefully they are working on a fix???

    Photoshop CS5 Essential has preferences that offer users the opportunity to adjust menu bar background color as well as font size.  For example,
    "UI Font Size
    If you find that Photoshop's interface text is a little too small for comfort, you can increase its size by changing the UI Font Size option to either Medium or Large. And no, this option isn't just for old folks with poor eye sight. Working on a very high resolution monitor can make Photoshop's interface text appear very small. Personally, I like to set my font size to Large which I find helps to avoid eye strain. You'll need to close and then re-open Photoshop for the change to take effect:
    Change the font size to increase some of the text in Photoshop's interface.
    (From an article by Steve Patterson at http://www.photoshopessentials.com/basics/cs5/preferences/ .
    Why not Photoshop Elements?  ?
    Lensw

Maybe you are looking for

  • Clearing Difference in Foreign Credits House Bank Account

    Dear All,              We are facing a problem while clearing a Foreign Credits House Bank Account. While clearing an account through F-03 the system is prompting an entry to be posted in Exchange Difference Gain/Loss Account. Now such an entry was n

  • Getting Arch to see the card

    I just got a Thinkpad R50e and have been trying to get Arch to work with Wifi on it (it uses the ipw2200 driver). I've got the modules all installed and loaded and stuff, but Arch doesn't seem to see the device: [root@mezzanine zero]# ifconfig -a eth

  • Dynamic routing in an extension

    I'm planning to use AngularJS to write a Photoshop extension. In Angular, it's possible to change the view based on the route of the web page. Is it possible to change the route in a Photoshop extension? Has anyone got dynamic views and routing worki

  • Configuring ACF2 connector with OIM 11gR2

    Hi Experts, I am working on configuring ACF2 connector with OIM 11gr2, In an intermediatory step we need to copy VOYAGER_ID.properties file. The comment against this file is written as: Rename VOYAGER_ID with the name "Voyager server's VOYAGER_ID con

  • Use SAP_WAPI_READ_CONTAINER to read all container element

    Hi All, I am writing an ABAP to read message texts from a workflow container. The text is stored in a container element called RejectionTexts which is a multiline container element. When I call the Function Module SAP_WAPI_READ_CONTAINER it brings be