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