BUG: (linux) WB ignores "Method name for new statements"

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

BUG: (linux) WB ignores "Method name for new statements"

Postby Andrei.Pozolotin » Tue Oct 12, 2010 11:02 am

BUG: (linux) WB ignores "Method name for new statements"

per this:
http://code.google.com/webtoolkit/tools ... ation.html

with settings like on screen below, WB should make a constructor
which calls initGUI, with all WB generated code in it;

instead, WB produces this for a brand new frame:

Code: Select all
package test;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

public class TestBlank extends JFrame {

    private JPanel contentPane;

     * Launch the application.
    public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable() {
            public void run() {
                try {
                    TestBlank frame = new TestBlank();
                } catch (Exception e) {

     * Create the frame.
    public TestBlank() {
        setBounds(100, 100, 450, 300);
        contentPane = new JPanel();
        contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
        contentPane.setLayout(new BorderLayout(0, 0));

snapshot95.png (92.71 KiB) Viewed 90 times
Posts: 55
Joined: Wed Sep 22, 2010 5:35 am

Re: BUG: (linux) WB ignores "Method name for new statements"

Postby Eric Clayberg » Fri Oct 15, 2010 7:11 pm

Give this a try using the latest WindowBuilder build...

http://code.google.com/webtoolkit/tools ... -beta.html

This option worked fine for pretty much all the templates except this one.
Eric Clayberg
Software Engineering Manager

Author: "Eclipse Plug-ins"
Eric Clayberg
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Return to Swing Designer

Who is online

Users browsing this forum: No registered users and 1 guest