summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main
diff options
context:
space:
mode:
authorManuel Bentele2021-11-08 08:46:22 +0100
committerManuel Bentele2021-11-08 08:46:22 +0100
commit73852a82d462808216adf8211848862685ce7f7c (patch)
tree18fc5b03b513ae1a29edafd68c82e725b6ecc66b /dozentenmodul/src/main
parent[CLIENT] Add translation for graphics configuration option (diff)
downloadtutor-module-73852a82d462808216adf8211848862685ce7f7c.tar.gz
tutor-module-73852a82d462808216adf8211848862685ce7f7c.tar.xz
tutor-module-73852a82d462808216adf8211848862685ce7f7c.zip
[CLIENT] Add bwLehrpool icon for JFrames
Diffstat (limited to 'dozentenmodul/src/main')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/MainWindow.java4
-rw-r--r--dozentenmodul/src/main/resources/img/bwlp-icon.pngbin0 -> 1132 bytes
2 files changed, 4 insertions, 0 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/MainWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/MainWindow.java
index e481ecd1..24b0cb01 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/MainWindow.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/MainWindow.java
@@ -20,6 +20,7 @@ import java.util.concurrent.TimeUnit;
import javax.swing.Box;
import javax.swing.BoxLayout;
+import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JMenu;
@@ -215,6 +216,9 @@ public abstract class MainWindow {
// Scale the ui with the font.
mainWindow.setMinimumSize(Gui.getScaledDimension(1050, 670));
+ // set icon for the window
+ mainWindow.setIconImage(new ImageIcon(MainWindow.class.getResource("/img/bwlp-icon.png")).getImage());
+
// register all pages of the main window
registerPage(new MainMenuWindow());
registerPage(new ImageListWindow());
diff --git a/dozentenmodul/src/main/resources/img/bwlp-icon.png b/dozentenmodul/src/main/resources/img/bwlp-icon.png
new file mode 100644
index 00000000..9504eade
--- /dev/null
+++ b/dozentenmodul/src/main/resources/img/bwlp-icon.png
Binary files differ