Browse Source

Commit_30 Table angepasst

Mohamed
Adah Boukhari 5 years ago
parent
commit
3c4d110777
  1. BIN
      Budget Projekt/bin/MeinBudgetView/MeinGui$1.class
  2. BIN
      Budget Projekt/bin/MeinBudgetView/MeinGui$2.class
  3. BIN
      Budget Projekt/bin/MeinBudgetView/MeinGui.class
  4. 10
      Budget Projekt/src/MeinBudgetView/MeinGui.java

BIN
Budget Projekt/bin/MeinBudgetView/MeinGui$1.class

BIN
Budget Projekt/bin/MeinBudgetView/MeinGui$2.class

BIN
Budget Projekt/bin/MeinBudgetView/MeinGui.class

10
Budget Projekt/src/MeinBudgetView/MeinGui.java

@ -23,6 +23,11 @@ import javax.swing.JSeparator;
import javax.swing.JScrollPane; import javax.swing.JScrollPane;
import javax.swing.JTable; import javax.swing.JTable;
import javax.swing.table.DefaultTableModel; import javax.swing.table.DefaultTableModel;
import javax.swing.border.EtchedBorder;
import javax.swing.border.MatteBorder;
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 {
@ -201,6 +206,10 @@ public class MeinGui extends JFrame implements ActionListener {
contentPane.add(scrollPane_1); contentPane.add(scrollPane_1);
myTable = new JTable(); myTable = new JTable();
myTable.setColumnSelectionAllowed(true);
myTable.setCellSelectionEnabled(true);
myTable.setBorder(UIManager.getBorder("Tree.editorBorder"));
myTable.setFont(new Font("Tahoma", Font.BOLD, 11));
myTable.setModel(new DefaultTableModel(new Object[][] {}, new String[] { "Name", "Kosten" }) { myTable.setModel(new DefaultTableModel(new Object[][] {}, new String[] { "Name", "Kosten" }) {
Class[] columnTypes = new Class[] { String.class, Integer.class }; Class[] columnTypes = new Class[] { String.class, Integer.class };
@ -262,6 +271,7 @@ public class MeinGui extends JFrame implements ActionListener {
budgetDispaly.setText(null); budgetDispaly.setText(null);
expensesDisplay.setText(null); expensesDisplay.setText(null);
balanceDisplay.setText(null); balanceDisplay.setText(null);
textExpensesName.setText(null);
((DefaultTableModel)myTable.getModel()).setRowCount(0); ((DefaultTableModel)myTable.getModel()).setRowCount(0);
} }

Loading…
Cancel
Save