JCOMBOBOX - Java Codes

Color ComboBox Renderer

Description This is a code which demonstrates a Color ComboBox Renderer. Source Code import java.awt.Color; import java.awt.Component; import java.awt.Dimension; import java.awt.Graphics; import java ...

0 Comments. 316 views since Sep 9, 2008

Enhanced JComboBox: Editable

Description This is an extension to the previous code "JComboBox: Editable" it has an additional functionality of giving the position number of the selected symbol. Source Code import java.awt.BorderLayo ...

0 Comments. 268 views since Sep 9, 2008

JComboBox: Editable

Description This is an example of JComboBox with a Custom Renderer and Editor. Source Code import java.awt.BorderLayout; import java.awt.Component; import java.awt.event.ActionEvent; import java.awt.e ...

0 Comments. 263 views since Sep 9, 2008

JCombo Box

Description Adding automatic selection To actually select an item in the combo box access to the combo box' model is needed inside our document. It can be passed as a parameter to the constructor (omitted here, see sourcecode). Adding so ...

0 Comments. 253 views since Sep 10, 2008

Array List ComboBox

Description This is a code which demonstrates a List with a ComboBox. Source Code import java.awt.BorderLayout; import java.awt.Container; import java.util.ArrayList; import java.util.Collection; i ...

0 Comments. 233 views since Sep 9, 2008

Multiple Options Combo Box

Description This is a code which demonstrates a Multiple Options Combo Box. Source Code import javax.swing.JOptionPane; /** * * @author Prashant Gaur */ public class MultipleOptions { ...

0 Comments. 233 views since Sep 12, 2008

Combo Box Mouse Selection

Description This code makes users understand about selction of list items of a combo box with help of poiting mouse cursor towards it. Source Code import java.awt.event.*; import javax.swing.*; impor ...

0 Comments. 184 views since Mar 23, 2009

JCombo Box: Color Chooser

Description This is a code which implements ComboBox with the Color Chooser. Source Code import java.awt.BorderLayout; import java.awt.Color; import java.awt.Component; import java.awt.Container; imp ...

0 Comments. 177 views since Sep 9, 2008