Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #19244

Re: Combobox Project: How to put 4 text items in the combobox

From markspace <-@.>
Newsgroups comp.lang.java.programmer
Subject Re: Combobox Project: How to put 4 text items in the combobox
Date 2012-10-10 16:53 -0700
Organization A noiseless patient Spider
Message-ID <k551qn$k4b$1@dont-email.me> (permalink)
References <f8e072b4-0c3c-4aac-9ded-83c5962cab9a@googlegroups.com> <eb02218c-281f-4c3e-9219-291e23ee6fce@googlegroups.com> <k550dp$dlk$1@dont-email.me>

Show all headers | View raw


On 10/10/2012 4:30 PM, Knute Johnson wrote:

>
>      public void actionPerformed(ActionEvent ae) {
>          JComboBox<KColor> box = (JComboBox<KColor>)ae.getSource();

>
>      class KColor extends Color {


Your example is much shorter than the OP's, and more clear too (two 
things that usually go hand in hand).  However the OP used a 
ComboBoxEditor, so I wonder if that was the point of his example, or 
just an implementation detail.

Of course, he never said....

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Combobox Project: How to put 4 text items in the combobox christopher.m.lusardi@gmail.com - 2012-10-10 12:41 -0700
  Re: Combobox Project: How to put 4 text items in the combobox Knute Johnson <nospam@knutejohnson.com> - 2012-10-10 13:31 -0700
  Re: Combobox Project: How to put 4 text items in the combobox clusardi2k@aol.com - 2012-10-10 14:35 -0700
    Re: Combobox Project: How to put 4 text items in the combobox Knute Johnson <nospam@knutejohnson.com> - 2012-10-10 16:30 -0700
      Re: Combobox Project: How to put 4 text items in the combobox markspace <-@.> - 2012-10-10 16:53 -0700
  Re: Combobox Project: How to put 4 text items in the combobox Roedy Green <see_website@mindprod.com.invalid> - 2012-10-11 14:29 -0700

csiph-web