java swing single application

363 Views Asked by At

This has been driving me crazy and maybe someone here can help me out. I have created a layout using Netbeans 7.0.1 using swing - its a SingleFrameApplication. Now on my laptop i have Netbeans version 7.1.1, as of 7.1.1 the UI panel is not supported anymore however the code should still compile?. It does not, i get this error, does anyone know of any solution or why it does it?

2

There are 2 best solutions below

1
mbatchkarov On

If I remember correctly, NetBeans 6.5 used some custom layouts which you explicitly had to add to your distribution, otherwise the app would fail to start. This sounds similar, but please do post the rest of the stack trace.

0
Thorn On

What you posted above is a stack trace, but it's too long for all of it to be included. All we really care about is the last part that begins with java.lang.nullPointerException You can place your launch code into a try catch block like this:

try {
    yourApp.launch();
{
catch(NullPointerException ug) {
    ug.printStackTrace();
}