InputVerifier for JComboBox

Hi,
I'm trying to set an InputVerifier for an editable JComboBox using the setInputVerifier() method, to check the input before the JComboBox looses the focus.
I've tried several things, as for exmaple extending the 'BasicComboBoxEditor' and set the InputVerifier using the protected 'editor' field. But this also does not work!
Could anyone give me an advice how I could implement a InputVerifier so the content of the JComboBox is checked before it looses the focus? Maybe someone could even point me to an example?!
Any help is greatly welcome!!
Regards,
Zeljko

JTextField jtf = (JTextField)comboBox.getEditor().getEditorComponent();
jtf.setInputVerifier(new YourInputVerifier());

Similar Messages

  • Horizontal scrollbar for JComboBox - Not workable under Mac

    By referring to this thread Re: Horizontal scrollbar for JComboBox across multiple look and feel I try to provide horizontal scroll bar for JComboBox to my clients.
    private void adjustScrollBar() {
        //if (this.getItemCount() == 0) return;
        Object comp = this.getUI().getAccessibleChild(this, 0);
        if (!(comp instanceof JPopupMenu)) {
            return;
        JPopupMenu popup = (JPopupMenu) comp;
        // Works fine under Windows and Ubuntu Linux
        // However, in OSX 10.6.4
        // javax.swing.Box$Filler cannot be cast to javax.swing.JScrollPane
        JScrollPane scrollPane = (JScrollPane) popup.getComponent(0);
        scrollPane.setHorizontalScrollBar(new JScrollBar(JScrollBar.HORIZONTAL));
        scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    }The above code will cause ClassException under OSX 10.6.4. (Works fine for Windows and Linux)
    Any suggestion to resolve this problem. Sorry. I do not have a Mac machine. Hence, can't experiment out much with it.
    Thanks

    The following code works quite well for me.
        private void adjustScrollBar() {
            final int max_search = 8;
            // i < max_search is just a safe guard when getAccessibleChildrenCount
            // returns an arbitary large number. 8 is magic number
            JPopupMenu popup = null;
            for (int i = 0, count = this.getUI().getAccessibleChildrenCount(this); i < count && i < max_search; i++) {
                Object o = this.getUI().getAccessibleChild(this, i);
                if (o instanceof JPopupMenu) {
                    popup = (JPopupMenu)o;
                    break;
            if (popup == null) {
                return;
            JScrollPane scrollPane = null;
            for (int i = 0, count = popup.getComponentCount(); i < count && i < max_search; i++) {
                Component c = popup.getComponent(i);
                if (c instanceof JScrollPane) {
                    scrollPane = (JScrollPane)c;
                    break;
            if (scrollPane == null) {
                return;
            scrollPane.setHorizontalScrollBar(new JScrollBar(JScrollBar.HORIZONTAL));
            scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
        }

  • Horizontal scrollbar for JComboBox

    Hi,
    I want to use Horizontal scrollbar for JComboBox which i have used as an editor for table column cell and the matter in drop down list is larger but the width of column of a table is relatively small
    Any suggetions!
    Thanks and regards,
    Nilesh

    Hi,
    I want to use Horizontal scrollbar for JComboBox which i have used as an editor for table column cell and the matter in drop down list is larger but the width of column of a table is relatively small
    Any suggetions!
    Thanks and regards,
    Nilesh

  • How to make resizable false for JcomboBox

    hi ,
    I am using JCombobox , but it resizes when length of data inside it is
    increses.I am in trouble because of that.
    Would anybody how to make resizable false for Jcombobox
    --Harish                                                                                                                                                                                                                                                                                                                                                                                   

    Set a preferred size on the combo box, e.g.
    box.setPreferredSize(new Dimension(150,box.getPreferredSize().height));

  • InputVerifier for JTextArea problem

    Hello,
    I am having a problem with using an InputVerifier to check a max character limit on a JTextArea. It seems that occasionally after the verify of the JTextArea fails, I lose the next character I type into it! Here is the code, followed by a description of how to reproduce the problem. Note this code is copied from the Java 1.4.2 API documentation of the InputVerifier class, with the first JTextField changed to a JTextArea and the verify method modified:
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.Frame;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.awt.event.WindowListener;
    import javax.swing.InputVerifier;
    import javax.swing.JComponent;
    import javax.swing.JFrame;
    import javax.swing.JTextArea;
    import javax.swing.JTextField;
    public class TestJTextArea  extends JFrame {
        public TestJTextArea () {
           JTextArea ta = new JTextArea ("");
           ta.setPreferredSize(new Dimension(100, 50));
           getContentPane().add (ta, BorderLayout.NORTH);
           ta.setInputVerifier(new PassVerifier());
           JTextField tf2 = new JTextField ("TextField2");
           getContentPane().add (tf2, BorderLayout.SOUTH);
           WindowListener l = new WindowAdapter() {
               public void windowClosing(WindowEvent e) {
                   System.exit(0);
           addWindowListener(l);
        class PassVerifier extends InputVerifier {
            public boolean verify(JComponent input) {
                JTextArea jText = (JTextArea)input;
                boolean retValue = jText.getText().length() < 5;
                if (!retValue) {
                    System.out.println("MAX CHARS");
                return retValue;
        public static void main(String[] args) {
            Frame f = new TestJTextArea ();
           f.pack();
           f.setVisible(true);
    }A way to reproduce the problem is type in the TextArea: "123455", then Ctrl+Tab and the verify will fail. Then backspace twice to delete the "55" and Ctrl+Tab to move to the TextField. Then Tab again to go back to the TextArea and type any charachter over than 5. About 80% of the time, the character that you type will be lost and not appear in the TextArea. It doesn't always happen, but if you try it a few times it will come up. Also, occasionally the backspace keystroke is also lost in the TextArea. Note this only happens when I use Tab. I am not able to reproduce it by using the mouse to change focus.
    I have searched for a bug report on this, but have found nothing. Am I doing something wrong? I am simply using the sample code from the InputVerifier JavaDoc, but with a JTextArea... This is on a WinXP Pro machine with Java Std. Ed. 1.4.2.
    Thank you for your help.
    Angel

    JTextField jtf = (JTextField)comboBox.getEditor().getEditorComponent();
    jtf.setInputVerifier(new YourInputVerifier());

  • Set border for JComboBox

    i'm trying to change the border for a JComboBox...actually the default border for a JComboBox is null but it is the border for the JScrollPane used by the JComboBox that i want to change....i'm lost as to how to access the JScrollPane that the JComboBox uses so i can change it's border...any ideas?...thanx in advance...

    This might help you see the component you're looking for, but at YATArchivist said, it is a look and feel not a JCombobox componentimport  javax.swing.*;
    import  java.awt.*;
    import  java.util.Random;
    import  java.awt.event.*;
    public class ComboScroll {
      static Random rnd = new Random(); 
      public static void main (String[] args) {
        try {
          if (args.length > 0) {
            UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
        } catch (Exception ex) {
          ex.printStackTrace();
        final JComboBox combobox = new JComboBox(
          ("foo|bar|baz|" + UIManager.getCrossPlatformLookAndFeelClassName()).split("\\|"));
        combobox.setEditable(true);
        final JFrame frame = new JFrame("ComboScroll");
        frame.getContentPane().add(combobox);
        frame.setVisible(true);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        Timer timer = new Timer(800, new ActionListener () {
          public void actionPerformed (ActionEvent e) {
            dumpTree(frame, 0);
            Window[] windows = frame.getOwnedWindows();
            for (int index = 0; index < windows.length; index++) {
              dumpTree(windows[index], 0);
            System.out.println();
        timer.setRepeats(true);
        timer.start();
      static void dumpTree (Component component, int depth) {
        String className = component.getClass().getName();
        System.out.println(indent(depth) + component.getName() + ":" + className);
        if (component instanceof Container) {
          Container container = (Container)component;
          for (int index = 0; index < container.getComponentCount(); index++) {
            dumpTree(container.getComponent(index), depth + 1);
          if (component instanceof JComponent) {
            try {
              ((JComponent)component).setBorder(
                BorderFactory.createTitledBorder(
                  BorderFactory.createMatteBorder(4, 4, 4, 4, new Color(
                    rnd.nextInt(256), rnd.nextInt(256), rnd.nextInt(256))),
                  className.substring(className.lastIndexOf('.') + 1)));
            } catch (Exception ex) {
        if (depth == 0) {
          System.out.println();
      static String indent (int depth) {
        return "                                         ".substring(0, depth * 2);
    }Pete

  • Multiline tooltip for JComboBox items.

    Hi, As the title suggests I'd like to create a multiline tooltip for items in a combobox list.
    I have implemented a multiline tooltip renderer which works perfectly on any component except JComboBox items.
    I have also implemented a ListCellRenderer for a combobox that enables tooltips for the combobox items. Also works perfectly, except that they are single line tooltips.
    The tooltip text is read from an xml file, therefore I have no control on how long the line of text is. Most of the time the text also contains newlines.
    This is the method (overridden from JComponent) added to a subclass of a component so that that component uses the MultiLineToolTip:
        public JToolTip createToolTip() {
            MultiLineToolTip tip = new MultiLineToolTip(this);
            tip.setComponent(this);
            return tip;
        }And this is the ListCellRenderer used on the combobox, so that items have (single-line) tooltips enabled:
        private class ToolTipEnabledComboBoxRenderer extends JLabel implements ListCellRenderer{
             public ToolTipEnabledComboBoxRenderer(){
                  setOpaque(true);
             public Component getListCellRendererComponent(JList list,Object value,
                                                              int index,boolean isSelected,
                                                              boolean cellHasFocus) {
                  String entry = (String)value;
                  if (isSelected || cellHasFocus) {
                       this.setBackground(list.getSelectionBackground());
                       setForeground(list.getSelectionForeground());
                  } else {
                       this.setBackground(list.getBackground());
                       setForeground(list.getForeground());
                  this.setText(entry);
                  if(isSelected || cellHasFocus){
                       if(constraint!=null &&combobox!=null &&
                                   constraint.getType() == Constrained.CONTROLLED_VOCABULARY){
                            String tooltip = ((ControlledVocabulary)constraint).getEntryDescription(entry);
                            if(tooltip==null || tooltip.equals("")){
                                 tooltip="";
                            list.setToolTipText(tooltip);
                  return this;
        }It seems to me that what I have to do is subclass the list used by the combobox and override the createToolTip() method. But how can I set the list used by the combobox? As far as I know the only time I can access the list is in the getListCellRendererComponent() method of the ListCellRenderer, in which the list is a parameter.
    Any ideas?
    Don

    Hello,
    <p>Have you seen this one?</p>
    Francois

  • Event to watch for JComboBox _finished_ selection?

    When my app's JComboBoxes are clicked I can capture every
    single change while the user is trying to decide with the
    up arrow and down arrow keys. This allows some really neat
    and dynamic things such as changing other components "live" or
    in real time as the user navigates up and down. I make
    extensive use of this Java event capture. The tutorial with
    a little pig is a good example of that kind of event.
    However, what I need additionally is to detect when the user has
    made up her mind and the selecting process is finished. This
    occurs for instance, when the <TAB> key is pressed and as a
    result, the focus is transfered to the next component.
    So, how can I detect not the fine grain event, up&down event,
    but the higher level selection?
    TIA,
    -Ramon F. Herrera

    I would suggest adding an action listener to the combo box and seeing if that will capture the event you are looking for.

  • Recursive background color working except for jcombobox & jbutton

    I'll start this as I usually do: I probably missing somethign obvious but...
    I am trying to setup a gui where all of a JFrames child components change background and foreground color. It seems to be working fine except for my JCombobox (the currently selected item background, not the pulldown), my button backgrounds, my checkbox boxes, and my radio button circles. (all of these are appearing as white) (code below)
    My suspicion is that I'll need to bail on this approach and look into making a custom laf. I have a strong suspicion that if at all possible, I don't want to go down that route: Is there any way I can make this approach work?
    //this is code in my custom JFrame subclass
    public void setComponentsColor ( Color foreColor, Color backColor ) {     
         setContainersComponentsBackground( this.getContentPane(), foreColor, backColor );
    protected void setContainersComponentsBackground ( Container container, Color foreColor, Color backColor  ) {
         Component [] array = container.getComponents();
         for( int i = 0; i < array.length; i++ ) {
              array.setBackground( backColor );
              array[i].setForeground( foreColor );
    //test to see if it is a container
              if( Container.class.isAssignableFrom( array[i].getClass()) ) {
                   setContainersComponentsBackground( (Container)(array[i]), foreColor, backColor );
    thanks all
    -sss

    So to be clearTo be clear you should include code the demonstates the incorrect behaviour. When I run the following code the North combobox is red and the South combobox is blue. It doesn't matter whether the dropdown is visible or not.
    import java.awt.*;
    import javax.swing.*;
    public class ComboBoxTemp extends JFrame
        public ComboBoxTemp()
            String[] items = { "a", "b", "c" };
            JComboBox comboBox1 = new JComboBox( items );
            comboBox1.setBackground( Color.red );
            comboBox1.setForeground( Color.white );
            getContentPane().add( comboBox1, BorderLayout.NORTH );
            JComboBox comboBox2 = new JComboBox( items );
            comboBox2.setEditable( true );
            comboBox2.getEditor().getEditorComponent().setBackground(Color.blue);
            comboBox2.getEditor().getEditorComponent().setForeground(Color.white);
            comboBox2.setBackground( Color.blue );
            comboBox2.setForeground( Color.white );
            getContentPane().add( comboBox2, BorderLayout.SOUTH );
        public static void main(String[] args)
            ComboBoxTemp frame = new ComboBoxTemp();
            frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
            frame.pack();
            frame.setLocationRelativeTo( null );
            frame.setVisible( true );
    }

  • A clear workaround for JComboBox bug 4199622 please.

    Hi,
    I'm writing a project management software where you assign a project leader to a project via combo box and in the same step this user must be added to the team member list. Now look what happened! When I open the combo and navigate via arrow keys all project leaders are added just because they are highlighted. This is very funny but I need only 1 project leader, that which is finally selected by the user. So I've spent several hours looking for a solution and find this amazing bug http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4199622. So regarding JComboBox since 1998 you dont have a way to identify a final selection, is this true (I'm using java 1.6 already)? Anyway, I applied
    projectLeadC.putClientProperty("JComboBox.isTableCellEditor", Boolean.TRUE);
    and now finally I can make a difference by receiving a new action "comboBoxEdited"
    if (event.getActionCommand().equals("comboBoxEdited") && !item.equals(oldItem)) {
    pushMember(item);
    So now keyboar navigation is ok. But now how can I identify a selection commited by mouse click????? All I get is "comboBoxChanged" but both keyboard and mouse based selections issue this command, so I never know if an item was selected by mouse. I'd need "comboBoxEdited" issued by click or even better something like "CommitedByMouseClick". So can someone help me find a solution, preferably by subclassing JComboBox and fixing the action commands (I dont want to use itemSelectionChange listeners or other listeners just because of this, I dont care which item is selected before commiting, I just care for the action)? Note also, that if my combo is in a table this issue is not that severe, because I can call stopCellEditing on the table which issues a "comboBoxEdited" command.
    Thanks for the help,
    Marton Bokor

    You could use a popup listener to identify the final selection. The popup listener will store the previous selection, and everytime the popup is made invisible you can check whether the new selection is different from the previous selection. If it is, then you notify whoever you need to notify. Example program,
    import javax.swing.*;
    import javax.swing.event.PopupMenuListener;
    import javax.swing.event.PopupMenuEvent;
    public class Tester {
        public static void main(String[] args) {
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    new Tester();
        JComboBox theBox;
        public Tester() {
            JFrame frame = new JFrame();
            theBox = new JComboBox(new String[]{"One","Two","Three"});
            theBox.addPopupMenuListener(new FinalSelectionListener());
            frame.setContentPane(theBox);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.pack();
            frame.setVisible(true);
        private class FinalSelectionListener implements PopupMenuListener {
            private Object oldSelectedItem;
            public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {
                Object newSelectedItem = theBox.getSelectedItem();
                if(newSelectedItem != oldSelectedItem) {
                    oldSelectedItem = newSelectedItem;
                    selectionChanged(newSelectedItem);
            public void popupMenuWillBecomeVisible(PopupMenuEvent e) {}
            public void popupMenuCanceled(PopupMenuEvent e) {}
        private void selectionChanged(Object changedTo) {
            System.out.println("The selection was changed to: " + changedTo);
    }This way new selections can be made only when the combo box popup is closed. Hence it will still work with the mouse, and it won't have the action event problem mentioned in the bug.

  • Looking For JComboBox Help

    (Sorry about the lack of rendered tags. I don't know how to use them in this forum.)
    I have a JComboBox (a drop menu) that when opened clears all its items and then adds new items from a list. Whenever the list is augmented (and is small), the JComboBox's display size is too small, and it creates a little scrollbar to accomodate. When the popmenu is closed and reopened, the menu is normal. The problem is that when I open the menu after adding a new item to a list, I have to triple click the JComboBox to make it display correctly.
    Numbers 2 and 4 are unwanted displays.
    <img src="http://img.photobucket.com/albums/v251/Trinithis/dynamicDrive/jcombobox.jpg" />
    I could fix it by having the button itself change the contents of the JComboBox (instead of popupMenuWillBecomeVisible()), but I want to have lazy evaluation for it because in my actual program the ArrayList will have to be sorted each time and the JComboBox will have to re-add all its contents. I suppose this is always an option, but I would like to know how to do it this or some other way.
    <pre>
    import javax.swing.*;
    import javax.swing.event.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    public class GUI extends JFrame implements ActionListener, PopupMenuListener {
         private JButton bAdd = new JButton("Add");
         private JComboBox jcb = new JComboBox();
         private ArrayList<String> items = new ArrayList<String>(10);
         private int addCount = 0;
         public GUI() {
              Container c = this.getContentPane();
              c.setLayout(new FlowLayout());
              bAdd.addActionListener(this);
              jcb.addPopupMenuListener(this);
              c.add(bAdd);
              c.add(jcb);
              this.setSize(200, 100);
              this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              this.setVisible(true);
         public void actionPerformed(ActionEvent e) {
              Object source = e.getSource();
              if(source==bAdd) items.add("Item #" + addCount++);
         public void popupMenuWillBecomeVisible(PopupMenuEvent e){
              Object source = e.getSource();
              if(source==jcb) {
                   jcb.removeAllItems();
                   for(int i=0; i<items.size(); ++i) jcb.addItem(items.get(i));
         public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {}
         public void popupMenuCanceled(PopupMenuEvent e) {}
         public static void main(String[] args) {
              new GUI();
    </pre>
    Edited by: Trinithis on Sep 21, 2007 11:18 AM
    Edited by: Trinithis on Sep 21, 2007 11:29 AM
    Edited by: Trinithis on Sep 21, 2007 11:33 AM
    Edited by: Trinithis on Sep 21, 2007 11:34 AM

    try it a different way (not using the popupListener)
    public GUI() {
    Container c = this.getContentPane();
    c.setLayout(new FlowLayout());
    bAdd.addActionListener(this);
    jcb.setUI(new javax.swing.plaf.metal.MetalComboBoxUI(){
      protected JButton createArrowButton(){
        JButton btn = super.createArrowButton();
        btn.addMouseListener(new MouseAdapter(){
          public void mousePressed(MouseEvent me){
            if(jcb.getModel().getSize() < items.size()){
              DefaultComboBoxModel model = new DefaultComboBoxModel();
              for(int i=0; i<items.size(); ++i){
                model.addElement(items.get(i));
              jcb.setModel(model);
        return btn;
    //jcb.addPopupMenuListener(this);the tags you're looking for are
    [code]
    paste code here
    [/code]

  • Please Edit Me for JComboBox

    Hi,
    I have a JComboBox. Now i need to alter the a selected item from the list of the JComboBox. After altering the item and when i hit the enter key it should register itself with the JComboBox.
    ok maybe an example will be better.
    Suppose i have three fruits in the JComboBox "Mango","Apple","Grapes". Now when i have given setEditable true for the JComboBox and when i select Mango i should be able to change that to "Banana" and after hitting the enter key the items in the JComboBox should be "Banana","Apple","Grapes".
    I hope i was clear enough. If not i am sorry for tht.
    Any clarification you require feel free to ask.
    Thank You.
    Ehsan

    The attached source code should do the trick...
        UpdatingComboBoxModel m = new UpdatingComboBoxModel(new String[] { "Mango", "Apple", "Grapes" });
        JComboBox cb = new JComboBox(m);
        cb.addActionListener(m);
        cb.setEditable(true);
        public class UpdatingComboBoxModel
            extends DefaultComboBoxModel
            implements ActionListener {
            private int lastIndex;
            public UpdatingComboBoxModel(Object[] items) {
                super(items);
            public void actionPerformed(ActionEvent e) {
                JComboBox cb = (JComboBox) e.getSource();
                if (cb.getModel() != this)
                    throw new Error();
                Object o = cb.getSelectedItem();
                int i = cb.getSelectedIndex();
                if (i == -1) {
                    removeElementAt(lastIndex);
                    insertElementAt(o, lastIndex);
                lastIndex = i;
        }Hope that helps,
    bye

  • ActionListener for JComboBox

    If I add an ActionListener to JComboBox or ComboBoxEditor I can get notified when user types some text into the combo-box and presses enter.
    If I need to get notifications after user types each letter. What should I do ?
    I'm stuck with this problem for a long time (I'm a beginner) - any help would be greatly appreciated. Thanks a lot,
    --Sergei 

    This would be my solution. There may be more but, this is the mest i can do;)
    So adding KeyListener.
    Let "cb" be your JComboBox object name, what you have to do is:
    cb.setEditable(true);
    ComboBoxEditor ce = cb.getEditor();
    ce.getEditorComponent().addKeyListener(this);
    here is the entire example. This progtram will count your keyevents
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Example extends Frame implements KeyListener
         private JComboBox cb = new JComboBox();
         private JLabel lab = new JLabel(" ");
         int numb = 0;
         public Example()
              cb.setEditable(true);
              ComboBoxEditor ce = cb.getEditor();
              ce.getEditorComponent().addKeyListener(this);
              setLayout(new FlowLayout());
              add(cb);
              add(lab);
              setSize(200,200);
              show();
         public static void main(String args[])
              new Example();          
         public void keyPressed(KeyEvent e)
         public void keyReleased(KeyEvent e)
                   numb ++;
                   lab.setText(Integer.toString(numb));
         public void keyTyped(KeyEvent e)

  • Set key accelerator for JComboBox

    Hi,
    I would like to set a key accelerator (Alt+...) for the list items of a non-editable JComboBox. Something like what you do for Buttons and check boxes with setMnemonic(). Is there a way to do it? I couldn't find anything.
    Regarsd,
    Plamen

    I'm not sure about being able to use the ALT key with a combo box, but once the box has focus, you can press a letter on the keyboard and the list will jump to the first item that begins with that letter. You may have already known about that, but I thought I'd throw it out there just in case.
    - Sheepy

  • Listener for JCombobox,right???

    ivjJCBSepTask.getModel().addListDataListener
    newListDataListener()
         public void contentsChanged(ListDataEvent e)
         public void intervalRemoved(ListDataEvent e)
         public void intervalAdded(ListDataEvent e)
    I wrote this in my JCombobox. The Combobox should react when a other entrie is selected.
    Another problem: The Combobox will be filled from database. How can i make a comparison between the contents who is selected and a constant maybe string ?
    for example: if( comboboxContents == "KOM") ... could that function?

    Class ComboValue was ment to be "a container" for information you need to include in your combobox. getConstant method should have been included in that class. And when you query from db you instantiate objects based on ComboValue and add those into your JComboBox
    combo.addItem( new ComboValue(index, constant, desc) );  After that you have to cast objects in combo to ComboValue and use getConstat method.
    But as I said this was just a suggestion and Im sure there are several better ways to do this.

Maybe you are looking for

  • White Screen: xf86-video-ati and Compiz After Trying fglrx? [SOLVED]

    I have an ATI Radeon X1200 graphics card.  I recently tired the ATI proprietary catalyst driver (and catalyst-utils) from the AUR.  They did not work well for me, so I uninstalled them.  I had run "aticonfig -initial" but, after removing catalyst and

  • How to deploy the skins in ADF ?

    Hi All, I am using JDeveloper 11.1.1.4 My Scenario is I have Project A with some CSS(skins) and bounded task flows.I deploy as ADF Library JAR  . Now I attach the Project A Jar to Project B.I can access the bounded task flows but the CSS(skins) style

  • Retriving sync key WITHOUT opening firefox

    I recently reformatted my computer, but as I usually do, I copied my 'documents' and 'program files' to an external so I could get my files onto the new image. Is there some way I can retrieve my sync key from the mozilla folder there or is it lost f

  • Recapture issues

    Hi to all, I just lost all my media from a long conference. Was able to find the edit in th autosave vault but need to recapture the tapes, by using the batch capture command. I am having several issues, and could use a little guidance. i'ms sure thi

  • Failed to execute program in job

    Hi, I am trying to run a Job but i get the following error Function call . I run md 192.168.142.72XSIGACREJ20100902 directly and it let me create the directory. What is wrong with this? Can someone help me?               Best Regards