JComboBox dayComboBox = new JComboBox();
dayComboBox.setModel(new DefaultComboBoxModel
(new
String[] {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31\t"}));
dayComboBox.setBounds(460, 75, 46, 20);
frame.getContentPane().add(dayComboBox);
JComboBox monthComboBox = new JComboBox();
monthComboBox.setModel(new DefaultComboBoxModel
(new String[] {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"}));
monthComboBox.setBounds(516, 75, 46, 20);
frame.getContentPane().add(monthComboBox);
JComboBox yearComboBox = new JComboBox();
yearComboBox.setModel(new DefaultComboBoxModel
(new String[] {"2011", "2012", "2013", "2014"}));
yearComboBox.setBounds(572, 75, 56, 20);
frame.getContentPane().add(yearComboBox);
I have 3 combo boxes (above) for a user to select a date for the information they enter. How can I link them and temporarily store the data and then select the most recent date and the most recent 5 dates?