Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Window Builder Problem(I try to open Window Builder for my GUI project.)
Window Builder Problem [message #1073516] Thu, 25 July 2013 00:52 Go to next message
Malachi Liberda is currently offline Malachi Liberda
Messages: 1
Registered: July 2013
Junior Member
Hello I am sort of new to programming and I made this GUI project for the first time.
This is supposed to work I think and I can't figure out the problem. Here is my code:

import javax.swing.*;
//This is how to setup a GUI screen, GUI stands for Graphical User Interface
public class FirstGUI {


public static void main(String[] args) {
JFrame theGUI = new JFrame(); //Assigned the JFrame name

theGUI.setTitle("My First GUI");

theGUI.setSize(300, 200);

theGUI.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //Asigned the close operator

theGUI.setVisible(true); //set the user to see the gui

}

}

So yeah if I press start then it opens a window, but I want to open it in window builder, when I right click and say Open with Window Builder it says this.:

Unknown GUI toolkit
The parser parsed the compilation unit, but can't identify any GUI toolkit, so WindowBuilder can't display any GUI to edit. This can be caused by one of the following reasons:

This class is not an editable UI class and contains no UI components.
WindowBuilder does not recognize the GUI toolkit or library used in this class.
WindowBuilder does not understand this GUI type/pattern in a supported GUI toolkit.
Problems exist with the classpath. For example, the compilation unit uses SWT classes, but the SWT/JFace libraries are not included into the


If you guys know what I am doing wrong please let me know! Thank you!
Malachi
Re: Window Builder Problem [message #1073789 is a reply to message #1073516] Thu, 25 July 2013 13:45 Go to previous message
David Wegener is currently offline David Wegener
Messages: 1341
Registered: July 2009
Senior Member
My guess would be the third item listed:
"WindowBuilder does not understand this GUI type/pattern in a supported GUI toolkit."
WindowBuilder has to parse the source code to figure out the structure of the GUI you are working with and can only recognize specific patterns.

Your best bet is to use WindowBuilder to create a new graphical class and then start your work from there.
Previous Topic:need to contact the developers and community of Eclipse
Next Topic:Rotate image
Goto Forum:
  


Current Time: Sat Sep 20 10:05:26 GMT 2014

Powered by FUDForum. Page generated in 0.01708 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software