Browse Source

Commit_24 JTable implementiert und angepasst

Mohamed
Adah Boukhari 5 years ago
parent
commit
58db6673f2
  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. 25
      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

25
Budget Projekt/src/MeinBudgetView/MeinGui.java

@ -22,6 +22,7 @@ import java.awt.Color;
import javax.swing.JSeparator; 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;
public class MeinGui extends JFrame implements ActionListener { public class MeinGui extends JFrame implements ActionListener {
@ -195,15 +196,31 @@ public class MeinGui extends JFrame implements ActionListener {
budgetBetrag.setBounds(10, 100, 46, 14); budgetBetrag.setBounds(10, 100, 46, 14);
contentPane.add(budgetBetrag); contentPane.add(budgetBetrag);
JScrollPane scrollPane = new JScrollPane();
scrollPane.setBounds(511, 205, -186, -67);
contentPane.add(scrollPane);
JScrollPane scrollPane_1 = new JScrollPane(); JScrollPane scrollPane_1 = new JScrollPane();
scrollPane_1.setBounds(323, 126, 197, 88); scrollPane_1.setBounds(323, 126, 197, 88);
contentPane.add(scrollPane_1); contentPane.add(scrollPane_1);
myTable = new JTable(); 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); scrollPane_1.setViewportView(myTable);
text1.addActionListener(this); text1.addActionListener(this);

Loading…
Cancel
Save