From 75f9b0cab3dfca0d5b87c323a5976a47164461ea Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 7 Jun 2020 22:11:07 +0200 Subject: [PATCH] login hintergrund --- assets/hintergrund.png | Bin 0 -> 9492 bytes bin/.gitignore | 1 + src/Hintergrund.java | 19 +++++++++++++++++++ src/MapMenu.java | 26 +++++++++++++------------- 4 files changed, 33 insertions(+), 13 deletions(-) create mode 100644 assets/hintergrund.png create mode 100644 src/Hintergrund.java diff --git a/assets/hintergrund.png b/assets/hintergrund.png new file mode 100644 index 0000000000000000000000000000000000000000..a39149ac93bc08f2a53f3c49679f9ed951b7e405 GIT binary patch literal 9492 zcmeI2RZ|>XkcJ@ycL+YgEodOP2Dbpg9fCUy1Q{HHyIZi}?(VLGyA7^`hrw<0{ffQV zy*PDFcfHjYU0q#ux}WgxN-~&eq-bz(aF}wklB#fU@E-r(BPdA!d3NG;{$21tRb|BC zswM%)|BUyRVv1sLaJ8}M&&G)VY*e7E&QCZvtiJyaJOQJ;KO7uwshp&kI>_)W3pGt& zBmM5J(UrB6{aDGe7mMoaGAF8WXw67bPk&M1SX6#g%;eFR&;Ccnd>G>;<3c&Uc5L3> zzc45xVm>qWg;n73Akyej22kn;Jj@ascwOmFW*)C{5&t} z4`d8eXJRFBj*}NWcSEBqGzXn+wAa42^S0$4&@cH=MWHKU8vp2l#D{8Qw44xq(tpdr z2mMCS_gO6Dy9+|crHE+va(2RrPT4+;eIs5HeKv64T;KaGzm;Fu)AL?fn0~3@&INw+ z)ZHDYpWBaYNM`D<@^W!~X-b>n^(Z`-dz;`0x#d*k^POYANX|1CUZ*fUO+QlV6!P$> zS!F{T8ks{IZnc3&`bu{B^L>WK{k@dRpD9RuBw_Jtue-z15Wyyivd|%t``dy$@G3k9 z$n{%Ta8~SQi1G`J`8=j|^dt3U4q7`IsuPvdC#Thw`Qx_Jr*25kp-UFV^%=X2 z)59TBz+^+aC7zA^XFpf8%B+f!*1n3#(WS-l{^y6t>F?b=EvvGhu=;q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f%=?s6cHo-6jJ^U3Hn z>eW(RrSMO*h|lU;N!!Ky`I{+e6A2PpJ0)6%(!+~9Gk6rgwo#Babz_GkuBa}86C`{J zE4yrsbGWbs@-R;}$-1GL7Pt>*HW85&1Z_~N`xF;5tb^^6Kp)U+vk8yAT72qfV+uq4 zrO5o(vKorN8-Evy2Lx;r>cZ?wM|gR1PmNOZFDjc2C`_HsN#g2`$_e!k7JBb^IsIe% zjYB^MiW=Mm1+64}@+x^xCdgy_cB16$^C3i$^Iw^VjkHhvQDfu4eF`{tT9x{TguKvO zGnsysRV1@r=k=}M(#O3&yyc6UbF)?OvGk)~o2pik?Fkne>Dl9x`?+&Q@ zJKif)0)T!1%cc>J!3G!bxA0Y#h`D_+)yk`PcfOB3S7( zCJ?VzMPeEv~Wu7pJyd2Xr$iz9AwY{RUOwvR$b<1?vmD4+Zi>ebAN1zu+syMp2~5 zU+Q-s@A}@mGKIx;zCVNDXA;aYxbx`a|2{=s@&0l|?T(*!sOJDrkFI7XPEFhXjevy#e;O_l3E%%tw{ t)3Y}mRZtv1!v7N}|0`?``sEw^yDIlGl_4wTe bob; @@ -34,13 +31,11 @@ public class MapMenu extends JFrame { String selectedMap; public MapMenu() { - - super("Map Menu"); System.setProperty("sun.java2d.opengl", "true"); - + path = new File("assets/maps"); maps = path.list(); @@ -59,8 +54,13 @@ public class MapMenu extends JFrame { this.setContentPane(panel); this.getContentPane().setLayout(null); + hintergrund = new Hintergrund(); + panel.add(hintergrund); + hintergrund.setBounds(0, 0, 300, 200); + button = new JButton("Launch"); panel.add(button); + button.setBounds(70, 50, 120, 30); button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { @@ -71,22 +71,22 @@ public class MapMenu extends JFrame { } } }); - + bob = new JComboBox(maps); bob.setSelectedItem("Original"); panel.add(bob); bob.setBounds(70, 10, 120, 30); } - + public String getSelectedMap() { return selectedMap; } // Was passieren soll, wenn der Button gedrückt wird - public void button_ActionPerformed(ActionEvent evt) throws SQLException { + public void button_ActionPerformed(ActionEvent evt) { selectedMap = String.valueOf(bob.getSelectedItem()); - + rdy = true; this.setVisible(false); }