sizeof JComboBox
Hi, I am developing an application for which I need to increase the size of the JComboBox.But it is not getting increased.I used the following technique:
Container cont;
JComboBox valueTypeBox ;
valueTypeBox = new JComboBox();
valueTypeBox.addItem("asia");
valueTypeBox.addItem("india");
cont = getContentPane();
GridBagLayout theLayout = new GridBagLayout();
GridBagConstraints c = new GridBagConstraints();
JPanel hostPanel = new JPanel();
hostPanel.setLayout(theLayout);
c.gridx = 2;
c.gridy = 3;
c.anchor = GridBagConstraints.FIRST_LINE_START;
c.fill = GridBagConstraints.NONE;
c.weightx = 1;
c.weighty = 0;
c.insets = new Insets(10, 0, 0, 40);
hostPanel.add(valueTypeBox,c);
Please suggest as how can I increase the size of the JComboBox.Thanks for help.
Jerico

