Browse Source

Commit_29 Funktionalitaet add (Table) implementiert

Mohamed
Adah Boukhari 5 years ago
parent
commit
9b63770209
  1. BIN
      Budget Projekt/bin/MeinBudgetView/MeinGui.class
  2. 4
      Budget Projekt/src/MeinBudgetView/MeinGui.java

BIN
Budget Projekt/bin/MeinBudgetView/MeinGui.class

4
Budget Projekt/src/MeinBudgetView/MeinGui.java

@ -197,7 +197,7 @@ public class MeinGui extends JFrame implements ActionListener {
contentPane.add(budgetBetrag);
JScrollPane scrollPane_1 = new JScrollPane();
scrollPane_1.setBounds(323, 126, 197, 88);
scrollPane_1.setBounds(347, 126, 136, 88);
contentPane.add(scrollPane_1);
myTable = new JTable();
@ -247,6 +247,8 @@ public class MeinGui extends JFrame implements ActionListener {
balanceDisplay.setText(setBalanceView());
}
DefaultTableModel tab = (DefaultTableModel)myTable.getModel();
tab.addRow(new Object [] {(textExpensesName.getText()) , Integer.parseInt(text2.getText())});
}

Loading…
Cancel
Save