Trivial code cleanup
This commit is contained in:
parent
ec2403a984
commit
f873a1d17a
4 changed files with 6 additions and 5 deletions
|
@ -383,12 +383,14 @@ public class FieldEditorPanel extends JPanel {
|
|||
|
||||
@Override
|
||||
public void removeAll() {
|
||||
wrappedLabelMap.clear();
|
||||
labelMap.clear();
|
||||
stringMap.clear();
|
||||
intMap.clear();
|
||||
boolMap.clear();
|
||||
sliderMap.clear();
|
||||
comboMap.clear();
|
||||
chooserMap.clear();
|
||||
reminderMap.clear();
|
||||
super.removeAll();
|
||||
gridC = new GridBagConstraints();
|
||||
|
|
|
@ -881,7 +881,7 @@ public class ManagerFrame extends JFrame implements ActionListener, ModsScanObse
|
|||
}
|
||||
}
|
||||
catch ( IOException f ) {
|
||||
log.error( "Error opening mods/ folder", f );
|
||||
log.error( String.format( "Error opening %s/ folder", backupDir.getName() ), f );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -100,7 +100,7 @@ public class ModXMLSandbox extends JFrame implements ActionListener {
|
|||
|
||||
this.datsDir = datsDir;
|
||||
|
||||
Font sandboxFont = new Font( "Monospaced", Font.PLAIN, 13 );
|
||||
Font sandboxFont = new Font( Font.MONOSPACED, Font.PLAIN, 13 );
|
||||
|
||||
mainArea = new JTextArea();
|
||||
mainArea.setTabSize( 4 );
|
||||
|
|
|
@ -14,7 +14,6 @@ import javax.swing.JButton;
|
|||
import javax.swing.JCheckBox;
|
||||
import javax.swing.JDialog;
|
||||
import javax.swing.JFileChooser;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.JScrollPane;
|
||||
import javax.swing.JTextField;
|
||||
|
@ -55,6 +54,7 @@ public class SlipstreamConfigDialog extends JDialog implements ActionListener {
|
|||
editorPanel = new FieldEditorPanel( false );
|
||||
editorPanel.setBorder( BorderFactory.createEmptyBorder( 10, 10, 0, 10 ) );
|
||||
editorPanel.setNameWidth( 250 );
|
||||
|
||||
editorPanel.addRow( ALLOW_ZIP, ContentType.BOOLEAN );
|
||||
editorPanel.addTextRow( "Treat .zip files as .ftl files." );
|
||||
editorPanel.addSeparatorRow();
|
||||
|
@ -142,7 +142,6 @@ public class SlipstreamConfigDialog extends JDialog implements ActionListener {
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void actionPerformed( ActionEvent e ) {
|
||||
Object source = e.getSource();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue