Put the JtextField and the JComboBox in a CardLayout. Switch the
Cards if the selected item in the combobox changed.
> HI Guys,
>
>
> I have a panel which uses a gridbag layout.
> The components were Jcombobox, Jlabel and Jtextfield
> for e.g i am having two values in jcombobox email, phone
>
> based on selection of email in the combobox the jtextfield should
> remain same as to enter the value for email.
>
> if the user selects the phone,in the combobox the jtextfield should
> be replaced with jcombobox.
>
> Could any one suggest how to do this..........
>
>
Hope this is useful for you
Niels
-----------------------------------------
Niels Stargardt
PPI Financial Systems GmbH
Hindenburgstraße 49
22297 Hamburg
Telefon: (040) 227433-323
Telefax: (040) 227433-333
Email : [EMAIL PROTECTED]
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing