Darryl Burke wrote:I wouldn't add an ActionListener to the JComboBox for adding to a cart. I would provide a JSpinner alongside to set the quantity and a JButton for 'Add to cart'
If the JComboBox initially displays a prompt (like ' --- Select --- ' then I would initially disable the spinner and button and enable them only when a valid selection is made (using an ActionListener added to the combo).
Hi Darryl,
Thanks for Suggestion, but i am looking forward use button kind of think in drop down. Do you know similar kind of thing can possible in SWT,Jgoodies or SwingX?
Thanks
Anchit