From 51e882f94395bf344049ce2552e2da8ed0328d03 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 10 Feb 2016 20:00:15 +0100 Subject: [PATCH] Remove unused constructors --- .../de/todesbaum/jsite/gui/ProjectFilesPage.java | 2 +- src/main/java/de/todesbaum/util/swing/TLabel.java | 54 ---------------------- 2 files changed, 1 insertion(+), 55 deletions(-) diff --git a/src/main/java/de/todesbaum/jsite/gui/ProjectFilesPage.java b/src/main/java/de/todesbaum/jsite/gui/ProjectFilesPage.java index c7a0a97..4229e48 100644 --- a/src/main/java/de/todesbaum/jsite/gui/ProjectFilesPage.java +++ b/src/main/java/de/todesbaum/jsite/gui/ProjectFilesPage.java @@ -336,7 +336,7 @@ public class ProjectFilesPage extends TWizardPage implements ActionListener, Lis scanningFilesDialog.getContentPane().add(progressPanel, BorderLayout.CENTER); progressPanel.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12)); - final TLabel scanningLabel = new TLabel(I18n.getMessage("jsite.project-files.scanning"), SwingConstants.CENTER); + final JLabel scanningLabel = new JLabel(I18n.getMessage("jsite.project-files.scanning"), SwingConstants.CENTER); progressPanel.add(scanningLabel, BorderLayout.NORTH); progressBar = new JProgressBar(SwingConstants.HORIZONTAL); progressPanel.add(progressBar, BorderLayout.SOUTH); diff --git a/src/main/java/de/todesbaum/util/swing/TLabel.java b/src/main/java/de/todesbaum/util/swing/TLabel.java index 0393f5c..822ca17 100644 --- a/src/main/java/de/todesbaum/util/swing/TLabel.java +++ b/src/main/java/de/todesbaum/util/swing/TLabel.java @@ -29,40 +29,6 @@ import javax.swing.JLabel; */ public class TLabel extends JLabel { - public TLabel() { - super(); - } - - public TLabel(int mnemonic, Component labelFor) { - super(); - setDisplayedMnemonic(mnemonic); - setLabelFor(labelFor); - } - - public TLabel(Icon image) { - super(image); - } - - public TLabel(Icon image, int mnemonic, Component labelFor) { - super(image); - setDisplayedMnemonic(mnemonic); - setLabelFor(labelFor); - } - - public TLabel(Icon image, int horizontalAlignment) { - super(image); - } - - public TLabel(Icon image, int horizontalAlignment, int mnemonic, Component labelFor) { - super(image); - setDisplayedMnemonic(mnemonic); - setLabelFor(labelFor); - } - - public TLabel(String text) { - super(text); - } - public TLabel(String text, int mnemonic, Component labelFor) { super(text); setDisplayedMnemonic(mnemonic); @@ -70,24 +36,4 @@ public class TLabel extends JLabel { setAlignmentX(0.0f); } - public TLabel(String text, Icon icon, int horizontalAlignment) { - super(text, icon, horizontalAlignment); - } - - public TLabel(String text, Icon icon, int horizontalAlignment, int mnemonic, Component labelFor) { - super(text, icon, horizontalAlignment); - setDisplayedMnemonic(mnemonic); - setLabelFor(labelFor); - } - - public TLabel(String text, int horizontalAlignment) { - super(text, horizontalAlignment); - } - - public TLabel(String text, int horizontalAlignment, int mnemonic, Component labelFor) { - super(text, horizontalAlignment); - setDisplayedMnemonic(mnemonic); - setLabelFor(labelFor); - } - } -- 2.7.4