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" --- .../main/java/net/wotonomy/ui/swing/components/InfoPanel.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'projects/net.wotonomy.ui.swing/src/main/java/net/wotonomy/ui/swing/components') diff --git a/projects/net.wotonomy.ui.swing/src/main/java/net/wotonomy/ui/swing/components/InfoPanel.java b/projects/net.wotonomy.ui.swing/src/main/java/net/wotonomy/ui/swing/components/InfoPanel.java index a2c0182..06938e9 100644 --- a/projects/net.wotonomy.ui.swing/src/main/java/net/wotonomy/ui/swing/components/InfoPanel.java +++ b/projects/net.wotonomy.ui.swing/src/main/java/net/wotonomy/ui/swing/components/InfoPanel.java @@ -100,9 +100,9 @@ public class InfoPanel extends JPanel implements ActionListener { protected int vgap; // set in constructor protected int margin; // set in constructor protected int columns; // set in constructor - protected List fields = null; - protected List labels = null; - protected List fieldSpacers = null; + protected List fields = null; + protected List labels = null; + protected List fieldSpacers = null; protected ButtonPanel buttonPanel = null; protected boolean isEditable = true; protected String prefix; @@ -124,8 +124,8 @@ public class InfoPanel extends JPanel implements ActionListener { margin = 0; // default margin: none prefix = ""; // default prefix: none postfix = ":"; // per java l&f guidelines - fields = new ArrayList(); - labels = new ArrayList(); + fields = new ArrayList<>(); + labels = new ArrayList<>(); labelAnchor = GridBagConstraints.NORTHWEST; // per java l&f guidelines (CENTER is nicer) labelAlign = SwingConstants.LEFT; -- cgit v1.2.3