sparky2708
Programmer
I have a class that Extends JFrame which basically implements maximize and center called JFrameExtend. That is all it does. Now I have created an abstract class called GenericApp that derives from JFrameExtender and implements a menubar and some other components (some buttons that always appear in our applications). Now I want to use the abstract class to make applications and even though it compiles fine and runs fine I can't for the life of me figure out why the Designer in JBuilder 9.0 doesn't work on the new applications I am creating - it just creates a red box. When I open the Designer in any of my apps it displays a big red box and I am getting these errors:
- Failed to create live instance for variable 'this'. null
- Failed to create live visual subcomponent this as GenericApp(cls); creating a red component in its place
The code in my sample app is something along the lines of:
public class TestApp extends GenericApp {
XYLayout xYLayout1 = new XYLayout();
public TestApp() {
super();
try {
jbInit();
} catch (Exception e) {
e.printStackTrace();
}
}
public void jbInit() throws Exception {
super.jbInit();
this.setSize(800, 600);
}
public static void main(String[] args) {
TestApp testApp1 = new TestApp();
testApp.show(true);
}
}
- Failed to create live instance for variable 'this'. null
- Failed to create live visual subcomponent this as GenericApp(cls); creating a red component in its place
The code in my sample app is something along the lines of:
public class TestApp extends GenericApp {
XYLayout xYLayout1 = new XYLayout();
public TestApp() {
super();
try {
jbInit();
} catch (Exception e) {
e.printStackTrace();
}
}
public void jbInit() throws Exception {
super.jbInit();
this.setSize(800, 600);
}
public static void main(String[] args) {
TestApp testApp1 = new TestApp();
testApp.show(true);
}
}