Swing Designer allows you to quickly create the frames, panels, dialogs, applets and other UI elements that comprise Java Swing applications.
Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg
by chrisR » Tue Jul 28, 2009 7:18 am
Here is an example:
- Code: Select all
public class TestFrame
extends JFrame {
private JButton btn;
public TestFrame() {
initialize();
}
}
Code Generation uses initialize() as method name for new statements.
The call of super() is missing. I expected
- Code: Select all
public class TestFrame
extends JFrame {
private JButton btn;
public TestFrame() {
super();
initialize();
}
}
Or is this working as intended?
Kind regards
-
chrisR
-
- Posts: 19
- Joined: Thu Jul 23, 2009 5:07 am
by Konstantin.Scheglov » Wed Jul 29, 2009 9:53 am
No need to call default constructor.
Java will call it automatically.
-
Konstantin.Scheglov
- Moderator
-
- Posts: 186
- Joined: Tue Oct 18, 2005 8:11 pm
- Location: Russian Federation, Lipetsk
-
Return to Swing Designer
Who is online
Users browsing this forum: No registered users and 1 guest