Auf Thema antworten

Hallo an alle ich habe mal wieder ein Problem

Warum gibt System.out.println alles richtig aus und JOptionPane.showMessageDialog nicht ?


[code=Java]if (teiler == 2)

                    System.out.println(zahl

                            + " ist eine Primzahl, da sie genau " + teiler

                            + " Teiler hat");

                JOptionPane.showMessageDialog(null, zahl

                + " ist eine Primzahl, da sie genau " + teiler

                + " Teiler hat");[/code]



Oben