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

[894 byte] By [Rajkhowaa] at [2007-10-3 10:19:06]
# 1
gbc.fill = GridBagConstraints.HORIZONTAL;do not forget to click on Code button
Prashant_SDNa at 2007-7-15 5:40:15 > top of Java-index,Desktop,Core GUI APIs...
# 2
Thanks Prashant. Actually this is a follow up of my previous post.Now I want to add an image in the space between the textfield and the frame boundary.How can I do it?
Rajkhowaa at 2007-7-15 5:40:15 > top of Java-index,Desktop,Core GUI APIs...