Created a swing frame with 3 comboboxes and a vector variable to populate them , but all comboboxes are empty on execution of code .pls help
public class Notes extends JFrame
{
JFrame jf;
JPanel jp = new JPanel();
Vector<Integer> v = new Vector<Integer>();
int i;
Integer x;
Dimension d = new Dimension(40,12);


Notes()
{

jf = new JFrame("ComboBox Demo");

for(i=1 ; i<=31 ; i++)
{
x = new Integer(i);
v.add(x);
}

JComboBox date = new JComboBox(v);
v.removeAllElements();



for(i=1;i<=12;i++)
{
x = new Integer(i);
v.add(x);
}

JComboBox month = new JComboBox(v);                  
v.removeAllElements();


for(i=2011;i<=2020;i++)
{
x = new Integer(i);
v.add(x);
}

JComboBox year = new JComboBox(v);
v.removeAllElements();


date.setSize(d);
month.setSize(d);
year.setSize(d);

jp.setLayout(new FlowLayout(FlowLayout.RIGHT, 5, 5));
jp.add(date);
jp.add(month);
jp.add(year);

jf.add(jp, BorderLayout.PAGE_START);

jf.setSize(300,300);
jf.setVisible(true);
jf.setDefaultCloseOperation(EXIT_ON_CLOSE);

}


public static void main(String arg[])
{
new Notes();
}

}
Created a swing frame with 3 comboboxes and a vector variable to populate them , but all comboboxes are empty on execution of code .pls help
===

public class Notes extends JFrame
{
JFrame jf;
JPanel jp = new JPanel();
Vector<Integer> v = new Vector<Integer>();
int i;
Integer x;
Dimension d = new Dimension(40,12);


Notes()
{

jf = new JFrame("ComboBox Demo");

for(i=1 ; i<=31 ; i++)
{
x = new Integer(i);
v.add(x);
}

JComboBox date = new JComboBox(v);
v.removeAllElements();



for(i=1;i<=12;i++)
{
x = new Integer(i);
v.add(x);
}

JComboBox month = new JComboBox(v);                  
v.removeAllElements();


for(i=2011;i<=2020;i++)
{
x = new Integer(i);
v.add(x);
}

JComboBox year = new JComboBox(v);
v.removeAllElements();


date.setSize(d);
month.setSize(d);
year.setSize(d);

jp.setLayout(new FlowLayout(FlowLayout.RIGHT, 5, 5));
jp.add(date);
jp.add(month);
jp.add(year);

jf.add(jp, BorderLayout.PAGE_START);

jf.setSize(300,300);
jf.setVisible(true);
jf.setDefaultCloseOperation(EXIT_ON_CLOSE);

}


public static void main(String arg[])
{
new Notes();
}

}