This commit is contained in:
potzplitz 2024-03-08 11:56:27 +01:00
parent c2a21e626a
commit fed6da343f
2 changed files with 3 additions and 12 deletions

View file

@ -25,6 +25,7 @@ public class LoadMenu {
load.setBounds(1, 178, 398, 20);
loadwindow.setSize(400, 200);
loadwindow.setUndecorated(true);
loadwindow.setResizable(false);

View file

@ -2,35 +2,25 @@ package gui;
import java.awt.Button;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.Image;
import java.awt.Insets;
import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.StringSelection;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URL;
import java.util.ArrayList;
import javax.imageio.ImageIO;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
@ -145,6 +135,8 @@ public class MainGUI {
show.setBounds(500, 1, 200, 60);
recordspanel.setBorder(BorderFactory.createLineBorder(Color.BLACK));
Thread thread = new Thread(new Runnable() {
@Override
@ -181,7 +173,6 @@ public class MainGUI {
try {
file.createNewFile();
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
@ -227,7 +218,6 @@ public class MainGUI {
try {
recordspanel.setLayout(new GridLayout(GuiData.allVictors(fetchData.allLevels().get(index)).size(), 1));
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
recordspanel.setBackground(Color.GRAY);