Normal
Danke erstmal für Deine Hilfe!Mit boolean klappts. Allerdings wirft mir der Compiler eine Null-Pointer-Exception wenn ich das in eine if Schleife packe.[code=Java]if (tnPanel.isJPanelConnection() != true) { tnDialog.add(tnPanel.getJPanelConnection()); tnPanel.setJPanelConnection(true); tnPanel.repaint(); tnPanel.revalidate(); tnPanel.setVisible(true); }[/code]Noch irgendeine Idee?
Danke erstmal für Deine Hilfe!
Mit boolean klappts. Allerdings wirft mir der Compiler eine Null-Pointer-Exception wenn ich das in eine if Schleife packe.
[code=Java]
if (tnPanel.isJPanelConnection() != true)
{
tnDialog.add(tnPanel.getJPanelConnection());
tnPanel.setJPanelConnection(true);
tnPanel.repaint();
tnPanel.revalidate();
tnPanel.setVisible(true);
}
[/code]
Noch irgendeine Idee?