Skip to content

Commit

Permalink
Disable Resize so window fits better
Browse files Browse the repository at this point in the history
  • Loading branch information
Puyodead1 committed Dec 10, 2018
1 parent 3c6ecf4 commit 3c783c9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/io/github/puyodead1/SSB/MainGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class MainGUI {
public static String outputPath;
public static String version;
public static Text console;

public static void Rev() {
switch (version) {
case "latest":
Expand Down Expand Up @@ -89,7 +89,7 @@ public static void main(String[] args) {
*/
public void open() {
Display display = Display.getDefault();
createContents();
createContents(display);
shlSpigotServerBuilder.open();
shlSpigotServerBuilder.layout();
while (!shlSpigotServerBuilder.isDisposed()) {
Expand All @@ -102,9 +102,9 @@ public void open() {
/**
* Create contents of the window.
*/
protected void createContents() {
shlSpigotServerBuilder = new Shell();
shlSpigotServerBuilder.setSize(1220, 780);
protected void createContents(Display display) {
shlSpigotServerBuilder = new Shell(display, SWT.CLOSE | SWT.TITLE | SWT.MIN);
shlSpigotServerBuilder.setSize(1220, 680);
shlSpigotServerBuilder.setText("Spigot Server Builder V2.1 by Puyodead1");
shlSpigotServerBuilder.setLayout(null);

Expand Down Expand Up @@ -176,7 +176,7 @@ public void mouseDown(MouseEvent arg0) {

Label lblCompiledOn = new Label(shlSpigotServerBuilder, SWT.NONE);
lblCompiledOn.setBounds(15, 300, 300, 15);
lblCompiledOn.setText("Compiled on 12/09/2018 at 10:11PM EST");
lblCompiledOn.setText("Compiled on 12/10/2018 at 11:11AM EST");

txtOut = new Text(shlSpigotServerBuilder, SWT.BORDER);
txtOut.addKeyListener(new KeyAdapter() {
Expand Down

0 comments on commit 3c783c9

Please sign in to comment.