Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsWindow Builder Problem
https://www.eclipse.org/forums/index.php/mv/msg/494356/1073516/#msg_1073516
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]]>Malachi Liberda2013-07-25T00:52:51-00:00Re: Window Builder Problem
https://www.eclipse.org/forums/index.php/mv/msg/494356/1073789/#msg_1073789
"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.]]>David Wegener2013-07-25T13:45:02-00:00Re: Window Builder Problem
https://www.eclipse.org/forums/index.php/mv/msg/494356/1827692/#msg_1827692
Go to: Project -> Properties -> Libraries -> Add Library -> Execution Environment
Select the drop down list and then choose "javaSE-1.7"
]]>Martin Prouvot2020-05-20T20:38:38-00:00