Re: Replacing the JList as the JComboBox popup

2001-05-10 Thread John caron

Farwell, Paul [EMAIL PROTECTED] asked:

 We have a calendar component that we want displayed when the user clicks the
 JComboBox arrow.  Does anyone know a relatively painless way to set a
 component -- other than the default JList -- as the popup item in a
 JComboBox? In looking at the JComboBox source and its delegates (e.g.
 BasicComboBoxUI, BasicComboPopup) it looks as if JList is pretty tightly
 coupled as the JComboBox's popup component. 

Yes, I couldnt find a way to replace JList. I ended up building my own, wasnt as hard 
as subclassing JComboBox. 

If you want to look at what i did, you can get our (LGPL) source snapshot at 

  ftp://ftp.unidata.ucar.edu/pub/metapps/metapps_src.jar

and look at ucar.unidata.ui.SuperComboBox. 



Regards, John

___
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing



Replacing the JList as the JComboBox popup

2001-05-07 Thread Farwell, Paul

We have a calendar component that we want displayed when the user clicks the
JComboBox arrow.  Does anyone know a relatively painless way to set a
component -- other than the default JList -- as the popup item in a
JComboBox? In looking at the JComboBox source and its delegates (e.g.
BasicComboBoxUI, BasicComboPopup) it looks as if JList is pretty tightly
coupled as the JComboBox's popup component. 

I've looked at
http://www2.gol.com/users/tame/swing/examples/SwingExamples.html already.
All of its examples assume a JList as the popup.

tia,

pf
___
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing