N
NoQ
Gast
Tach,
ich denke zwar nicht das diese bereich dafür zuständig ist, aber ich denke hier wird man es auch wissen.
Was muss ich statt dem this angeben, damit der Dialog angezeigt wird?
(java.lang.Error: Unresolved compilation problem: Cannot use this in a static context )
ich denke zwar nicht das diese bereich dafür zuständig ist, aber ich denke hier wird man es auch wissen.
Code:
public static void test()
{
JOptionPane.showConfirmDialog(this,"Test!");
}
Was muss ich statt dem this angeben, damit der Dialog angezeigt wird?
(java.lang.Error: Unresolved compilation problem: Cannot use this in a static context )