Optimization

This commit is contained in:
Marcel Konrad
2018-04-11 15:24:58 +02:00
parent 1c353c664c
commit 9ae2a732f5

View File

@@ -24,14 +24,15 @@ import net.minecraftforge.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT)
public class Window implements Runnable
{
private final String title = Main.NAME + " $mcversion-$version Installer";
private final JFrame frame = new JFrame();
@Override
public void run()
{
String titleString = Main.NAME + " $mcversion-$version Installer";
this.frame.setResizable(false);
this.frame.setTitle(this.title);
this.frame.setTitle(titleString);
this.frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
List<Image> icons = new ArrayList<Image>();
@@ -63,7 +64,7 @@ public class Window implements Runnable
gbcPanel.gridy = 0;
this.frame.add(panel, gbcPanel);
JLabel title = new JLabel(this.title);
JLabel title = new JLabel(titleString);
panel.add(title, this.getButtonConstraints(0, 0));
JTextField textField = new JTextField(Main.getInitialDirectory().getAbsolutePath());