=head1 NAME Tk::JComboBox - Create and manipulate JComboBox widgets =for category Tk Composite Widgets =head1 SYNOPSIS =over 4 I<$jcb> = I<$parent>-EB(?I); =back =head1 DESCRIPTION JComboBox is a L that contains a text Label or Entry, a Button, and a popup Listbox. It performs the same sort of tasks that can be accomplished by several L. Some such as BrowseEntry and Optionmenu are part of the standard Tk distribution, and there are many others available in CPAN. JComboBox borrows features from the Java Swing component bearing the same name, but falls short of being a true clone. Many of the methods and the general look and feel should be familiar to java developers. JComboBox also combines several features offered by many of the other "Combo Box" implementations, and works in two modes: I and I. In I mode, JComboBox offers similar functionality to Optionmenu. It is basically a labeled button that activates a popup list. An item from the list is displayed on the Button when selected. When I, JComboBox somewhat resembles BrowseEntry. That is, the widget is composed of an Entry widget with a Button to the right of it. As in the editable mode, the Button activates a popup Listbox from which a single item can be selected. For more detailed information on using this widget, refer to the L. =head1 COMPONENTS You should use caution when configuring JComboBox subwidgets. Extensive configuration changes may result in unexpected or invalid behavior. The subwidgets are advertised to allow for fine tuned configuration of the internal subwidgets, when there no provided options or methods that will do what you need. =head2 Subwidgets used in I mode =over 4 =item B Widget: L|Tk::Label> This Label is used to display the selected item from the popup Listbox. This widget and the Button subwidget form the face of the Button that triggers the popup Listbox. =back =head2 Subwidgets used in I mode =over 4 =item B Widget: L|Tk::Entry> This Entry is used to display the selected item from the popup Listbox, or can accept input that does not appear within the Listbox. =back =head2 Subwidgets used in both modes =over 4 =item B Widget: L|Tk::Label> This Label is used to trigger the Popup Listbox, and by default displays a bitmap of a filled triangle that points downward. This subwidget only supports Label options. =item B Widget: L|Tk::Toplevel> This widget contains the Listbox subwidget that displays one or more entries that can be selected for the JComboBox. This is mostly used a container (and an additional way of configuring the Listbox dimensions). =item B Widget: L|Tk::Listbox> Used to contain one or more entries, one of which can be selected and displayed within the Box subwidget. I =back =head1 OPTIONS JComboBox supports a long list of options, so to try and break them up a bit I've grouped them in sections. The Basic section contains options that implement or override standard Tk options. or deal with simple things such as colors. The Callback section contains all the options that can have configured Callbacks. The Miscellaneous section contains options that are unique to this widget. These options provide complex functionality that can alter look and feel or provide for initialization shortcuts. =head2 Basic options =over 4 =item B<-background/-bg> NAME: background CLASS: Background Specifies the normal background color to use when displaying the widget. This color will be applied to all internal widgets as well. For fine-tuned configuration of subwidgets, refer to the L<-subwidgets|Tk::CWidget/item_name_subwidgets> option. =item B<-bitmap> Specifies a bitmap to display in the I