From 08fd4128403fa887127f3e1c23bff9246153400a Mon Sep 17 00:00:00 2001 From: Adah Boukhari Date: Fri, 7 Feb 2020 21:07:29 +0100 Subject: [PATCH] Commit_43 Key_1 + message fuer MeinGui class hinzugefuegt --- .../bin/MeinBudgetView/MeinGui$1.class | Bin 1110 -> 1110 bytes .../bin/MeinBudgetView/MeinGui.class | Bin 7284 -> 8042 bytes .../src/MeinBudgetView/MeinGui.java | 34 +++++++++++++++++- 3 files changed, 33 insertions(+), 1 deletion(-) diff --git a/Budget Projekt/bin/MeinBudgetView/MeinGui$1.class b/Budget Projekt/bin/MeinBudgetView/MeinGui$1.class index 4cab5b77a776b4a8f062901eda8cfa7cabe58cf6..93370f55a1229079b31510f98f9c5ac538aeeda4 100644 GIT binary patch delta 37 tcmcb{agAd`GBfW{25yF946+Po7*rUJPA*^$VmvwdFtZ2a`N=#iUI62t3&;Qf delta 37 tcmcb{agAd`GBfXC25yEU46+QT7*rSzPcC2%Vmv>)wf~)2GLy*%nIvoh)Zj))fZ&D-xDdjg0Fr>j1v(@jVRSMRW+sH7qVn9e z?rRmd)}_|^G?5{K`dnJ<^Yy*wLqw}}q4w2kTkUK6tgW^7ckcJiWCr4U^T*upo_p@O zXFuoOSO32Ac>vSpfdD*$QB8IG!bu%rqXuYP6iMZj6DElvE7?p7nHOm;zUg^ zi^Ofgh{l3r6d0Q+@Tcuf>0<sm^tsQfOSlAiqIGAXoB5+5! z!JNCP%Z{h)l#A;C>m#v9yvx#7R83)=t`O z>s6+rn9XnE24e|3)wW(gefFkkS}<&_QFcQ#)fI{L3QBF48->IogbZKnu#y85Ia>tM zK#Ey>LBK_%22@#Dv6j$I0xQy;>Y&(hXF5DPt+&(3NC(#)qSS;43yFp z&5FjO=~D&X>Pagp&74HL9fB7%7LLZmASM&VF+m7|sTS%mjohZ}bW1d?bVpVjz1308 z9d*s=B%NyJq?L+%tcBxnJWWmH276tkJC>dkOQh_jU3M~}uEpc37dp7pEu4sx1jWRy zPjtuIQ`AHC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0wk0d;homKs>K^7q&dtv| zhjp@dRL0H_V;iVm1DN&3Fef zzO`J7cloyW9`55)$`JmH-Fz3(lc{w4;hYTTkI98{5xo_|2H7m1=gCBg4Z=6EZ0;eX zP^uq&jyExfQ2+eiQR&DhG?Umvwp&sXy;xB z>~p|=XN?s`{prn0_t;Lyn_l-Lc8?#^0iW>o>{HC7PA3T8t;K`I;vLgKzX)9oR#7)q zy<)fYv=7O$QHhU8ax%M0No8f*+Uke6XsVNAjFey+UtQE+78%)Q%OGn8&C>5FSLj;C zmI|Ha3gt<5|G$DKV1`(E!7~a3YoRjTFiV_v_rOdQJXyX#RVh0wm;E0KhjBEYN^%Mx XotNv8U6kaJFUl2!{3gU9LjL^~52Khe diff --git a/Budget Projekt/src/MeinBudgetView/MeinGui.java b/Budget Projekt/src/MeinBudgetView/MeinGui.java index 3e90678..8b2304b 100644 --- a/Budget Projekt/src/MeinBudgetView/MeinGui.java +++ b/Budget Projekt/src/MeinBudgetView/MeinGui.java @@ -9,6 +9,8 @@ import javax.swing.JTextField; import java.awt.Image; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; +import java.awt.event.KeyEvent; +import java.awt.event.KeyListener; import javax.swing.ImageIcon; import javax.swing.JButton; @@ -29,7 +31,7 @@ import javax.swing.border.BevelBorder; import javax.swing.border.TitledBorder; import javax.swing.UIManager; -public class MeinGui extends JFrame implements ActionListener { +public class MeinGui extends JFrame implements ActionListener, KeyListener { private JPanel contentPane; public static JTextField text1; @@ -208,11 +210,17 @@ public class MeinGui extends JFrame implements ActionListener { scrollPane_1.setViewportView(myTable); text1.addActionListener(this); + text1.addKeyListener(this); text2.addActionListener(this); + text2.addKeyListener(this); senden.addActionListener(this); + senden.addKeyListener(this); berechne.addActionListener(this); + berechne.addKeyListener(this); loeschen.addActionListener(this); + loeschen.addKeyListener(this); exit.addActionListener(this); + exit.addKeyListener(this); } @@ -273,4 +281,28 @@ public class MeinGui extends JFrame implements ActionListener { return result; } + @Override + public void keyTyped(KeyEvent e) { + // TODO Auto-generated method stub + + } + + @Override + public void keyPressed(KeyEvent e) { + + if (e.getKeyCode() == KeyEvent.VK_ENTER) { + if (text1.getText().length() > 0) { + budgetDispaly.setText(setBudgetView()); + } else { + JOptionPane.showMessageDialog(text1, "Füllen Sie alle Felder aus!"); + } + } + } + + @Override + public void keyReleased(KeyEvent e) { + // TODO Auto-generated method stub + + } + }