Bugfixing
This commit is contained in:
parent
3c7457f9e1
commit
b0e97c247e
4 changed files with 15 additions and 16 deletions
|
@ -1,3 +1,7 @@
|
|||
Vokabeln:
|
||||
Vokabel
|
||||
Vokabel
|
||||
Vokabel
|
||||
Vokabel1
|
||||
Vokabel
|
||||
Vokabelawdawdawd
|
||||
|
|
|
@ -24,5 +24,7 @@ public class main {
|
|||
java.util.logging.Logger.getLogger(GUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
|
||||
}
|
||||
new GUI().setVisible(true);
|
||||
GUI a = new GUI();
|
||||
a.aktualisieren();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -266,16 +266,6 @@ public class GUI extends javax.swing.JFrame {
|
|||
}//GEN-LAST:event_jButton5ActionPerformed
|
||||
|
||||
private void vokabeln() {
|
||||
try {
|
||||
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
|
||||
if ("Nimbus".equals(info.getName())) {
|
||||
javax.swing.UIManager.setLookAndFeel(info.getClassName());
|
||||
break;
|
||||
}
|
||||
}
|
||||
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) {
|
||||
java.util.logging.Logger.getLogger(GUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
|
||||
}
|
||||
new Vokabeln().setVisible(true);
|
||||
}
|
||||
private void vokabel() {
|
||||
|
@ -336,7 +326,7 @@ public class GUI extends javax.swing.JFrame {
|
|||
this.jLabel10.setText("" + zufallszahl + "." + gerade);
|
||||
}
|
||||
|
||||
private void aktualisieren() {
|
||||
public void aktualisieren() {
|
||||
vokabeln0.clear();
|
||||
read a = new read();
|
||||
try {
|
||||
|
|
|
@ -69,13 +69,16 @@ public class Vokabeln extends javax.swing.JFrame {
|
|||
|
||||
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
|
||||
// TODO add your handling code here:
|
||||
DefaultListModel<String> dim = new DefaultListModel<>();
|
||||
for (int i = 0; i < GUI.vokabeln0.size(); ++i) {
|
||||
dim.addElement(GUI.vokabeln0.get(i) + " = " + GUI.vokabeln0.get(i++));
|
||||
}
|
||||
this.jList1.setModel(dim);
|
||||
this.aktualisieren();
|
||||
}//GEN-LAST:event_jButton1ActionPerformed
|
||||
|
||||
public void aktualisieren() {
|
||||
DefaultListModel<String> dim = new DefaultListModel<>();
|
||||
for (int i = 0; i < GUI.vokabeln0.size();) {
|
||||
dim.addElement(GUI.vokabeln0.get(i++) + " = " + GUI.vokabeln0.get(i++));
|
||||
}
|
||||
this.jList1.setModel(dim);
|
||||
}
|
||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||
private javax.swing.JButton jButton1;
|
||||
private javax.swing.JList<String> jList1;
|
||||
|
|
Loading…
Reference in a new issue