5 Replies Latest reply: Mar 15, 2013 6:37 AM by PhHein RSS

    Extending jComboBox

    996544
      Hi there, I would like to extend jComboBox so that I may give it key/value pairs as in web forms drop downs.


      In this effort, I've created the following class ...
      package classes;
      
      public class jComboBox_dan extends javax.swing.JComboBox {
      
          private String key = null;
          private String value = null;
                  
      }
      Is this a good way of going about this?

      Cheers