Window Builder Problem [message #1073516] |
Wed, 24 July 2013 20:52  |
Eclipse User |
|
|
|
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 #1827692 is a reply to message #1073789] |
Wed, 20 May 2020 16:38  |
Eclipse User |
|
|
|
The solution could be to add a Library of execution like explained below
Go to: Project -> Properties -> Libraries -> Add Library -> Execution Environment
Select the drop down list and then choose "javaSE-1.7"
|
|
|
Powered by
FUDForum. Page generated in 0.28188 seconds