From 02bc52037e9ccccca672d6156d9c325c74fe28b3 Mon Sep 17 00:00:00 2001 From: Benjamin Culkin Date: Mon, 1 Jul 2024 17:27:48 -0400 Subject: Update a whole bunch of things Yeah... not a great commit message. t.b.h, I could maybe've split the commit into more parts; but that would be quite a lot off effort and would have a pretty decent chance of at least one of the commits leaving the repository in a non-working state. For the future, will want to try and commit more often so there aren't these mega-commits where it's just "a whole bunch of stuff changed" --- .../src/main/java/net/wotonomy/test/TestPanel.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'projects/net.wotonomy.test/src/main/java/net/wotonomy/test/TestPanel.java') diff --git a/projects/net.wotonomy.test/src/main/java/net/wotonomy/test/TestPanel.java b/projects/net.wotonomy.test/src/main/java/net/wotonomy/test/TestPanel.java index 78eedb6..a85593e 100644 --- a/projects/net.wotonomy.test/src/main/java/net/wotonomy/test/TestPanel.java +++ b/projects/net.wotonomy.test/src/main/java/net/wotonomy/test/TestPanel.java @@ -66,13 +66,13 @@ public class TestPanel extends JPanel { infoPanel.addRow("Name", new Component[] { firstNameField, middleNameField, lastNameField, checkbox }); // date comboboxen - Vector datesList = new Vector(); + Vector datesList = new Vector<>(); for (int i = 1; i < 32; i++) - datesList.add(new Integer(i)); - dateBox = new JComboBox(datesList); + datesList.add(Integer.valueOf(i)); + dateBox = new JComboBox<>(datesList); dateBox.setEditable(true); - monthBox = new JComboBox(); - yearBox = new JComboBox(); + monthBox = new JComboBox<>(); + yearBox = new JComboBox<>(); infoPanel.addRow("Create Date", dateBox, monthBox, yearBox); // year slider -- cgit v1.2.3