|
|
@ -23,6 +23,11 @@ import javax.swing.JSeparator; |
|
|
|
import javax.swing.JScrollPane; |
|
|
|
import javax.swing.JTable; |
|
|
|
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 { |
|
|
|
|
|
|
@ -201,6 +206,10 @@ public class MeinGui extends JFrame implements ActionListener { |
|
|
|
contentPane.add(scrollPane_1); |
|
|
|
|
|
|
|
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" }) { |
|
|
|
Class[] columnTypes = new Class[] { String.class, Integer.class }; |
|
|
|
|
|
|
@ -262,6 +271,7 @@ public class MeinGui extends JFrame implements ActionListener { |
|
|
|
budgetDispaly.setText(null); |
|
|
|
expensesDisplay.setText(null); |
|
|
|
balanceDisplay.setText(null); |
|
|
|
textExpensesName.setText(null); |
|
|
|
((DefaultTableModel)myTable.getModel()).setRowCount(0); |
|
|
|
} |
|
|
|
|
|
|
|