|
|
@ -22,6 +22,7 @@ import java.awt.Color; |
|
|
|
import javax.swing.JSeparator; |
|
|
|
import javax.swing.JScrollPane; |
|
|
|
import javax.swing.JTable; |
|
|
|
import javax.swing.table.DefaultTableModel; |
|
|
|
|
|
|
|
public class MeinGui extends JFrame implements ActionListener { |
|
|
|
|
|
|
@ -195,15 +196,31 @@ public class MeinGui extends JFrame implements ActionListener { |
|
|
|
budgetBetrag.setBounds(10, 100, 46, 14); |
|
|
|
contentPane.add(budgetBetrag); |
|
|
|
|
|
|
|
JScrollPane scrollPane = new JScrollPane(); |
|
|
|
scrollPane.setBounds(511, 205, -186, -67); |
|
|
|
contentPane.add(scrollPane); |
|
|
|
|
|
|
|
JScrollPane scrollPane_1 = new JScrollPane(); |
|
|
|
scrollPane_1.setBounds(323, 126, 197, 88); |
|
|
|
contentPane.add(scrollPane_1); |
|
|
|
|
|
|
|
myTable = new JTable(); |
|
|
|
myTable.setModel(new DefaultTableModel( |
|
|
|
new Object[][] { |
|
|
|
}, |
|
|
|
new String[] { |
|
|
|
|
|
|
|
} |
|
|
|
) { |
|
|
|
Class[] columnTypes = new Class[] { |
|
|
|
String.class |
|
|
|
}; |
|
|
|
public Class getColumnClass(int columnIndex) { |
|
|
|
return columnTypes[columnIndex]; |
|
|
|
} |
|
|
|
boolean[] columnEditables = new boolean[] { |
|
|
|
false |
|
|
|
}; |
|
|
|
public boolean isCellEditable(int row, int column) { |
|
|
|
return columnEditables[column]; |
|
|
|
} |
|
|
|
}); |
|
|
|
scrollPane_1.setViewportView(myTable); |
|
|
|
|
|
|
|
text1.addActionListener(this); |
|
|
|