From: David ‘Bombe’ Roden Date: Wed, 10 Feb 2016 19:00:15 +0000 (+0100) Subject: Remove unused constructors X-Git-Tag: 0.13^2~11 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=51e882f94395bf344049ce2552e2da8ed0328d03;p=jSite.git Remove unused constructors --- 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); - } - }