This discussion is archived
5 Replies Latest reply: Mar 15, 2013 4:37 AM by PhHein RSS

Extending jComboBox

996544 Newbie
Currently Being Moderated
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?



  • Correct Answers - 10 points
  • Helpful Answers - 5 points