I'm in the process of learning JAVA and was looking for a GUI editor/creator for use within Eclipse. I Googled and found "WindowBuilder". I installed it via these instructions:
https://developers.google.com/java-dev-tools/wbpro/installation/
When I installed it, I checked each checkbox to install everything. However, when I create a class to create a GUI, and then I click on the "Design" tab, I get "This is not a GUI class and can't be edited graphically" (even though I chose an option for WindowBuilder when creating the class).
When I open classes that already contain (working) GUIs, I get "Unknown GUI Toolkit."
Is there a way to get WindowBuilder running, or perhaps is there a better solution?
For the record, I had the same problem but I forgot to install the "Swing Designer" module from the "Install New Software..." option in "Help" menu.
Tab "Help"-> "Install New Software" .. in "Work with " , enter
Name : Kepler URL : http://download.eclipse.org/releases/kepler and ADD
and on "type filter text" write "Swing Designer" . install that and you should be fine ..
This is fixed. The JRE option in Eclipse properties was invalid. It pointed to JRE6 instead of JRE7. I'm not sure how Eclipse was ever working in the first place. All set. Thanks!
Related
I have a simple Eclipse Java project that consists in only one Class made with Eclipse's Window Builder (Swing class). The coding was made on my notebook, and saved on cloud, so I could access It from my home's computer.
When I opened this project in this home computer, I noticed I had not installed Window Builder on it yet, so I installed and restarted Eclipse.
The problem is that even tho I installed WB, Eclipse still doesn't show the Design tab on this class. Did I miss something?
Simply restarting Eclipse a couple times somehow made it work, everything good!
Missing Source/Design tabs
When you open your Swing Project, follow these steps to show Source/Design tab:
Right click on your file Swing.java for example
Choose open with Window Builder editor
This will bring you back the Source and Design Panels
I'm new to the WindowBuilder tool of Eclipse (or any frontend dev), and I installed WindowBuilder, SWT to check it out.
When creating a new project, I go to:
New > Others > WindowBuilder > SWT Designer > SWT/JFace Java Project
When creating a new class, I go to:
New > Others > WindowBuilder > Swing Designer > Application Window or JFrame, or Under > SWT Designer > SWT >Application Window.
This generates an initial Main code and I have Source and Design Tabs below.
My problem is that when going to the design tab it's always empty as seen below:
The initial code in class has this:
And when executed creates this window:
I can't find any answers for this problem, and all tutorials I'm seeing have items inside the Design Tab where they can start exploring it.
Go to Help -> Eclipse Marketplace -> Installed and then update(if not updated) both WindowBuilder and WindowBuilder Nightly
then Restart
to open file with design tab :
righclick on .java file Open With -> WindowBuilder Editor
finally click on design tab it may take few seconds to load
Uninstall eclipse completely, the only thing you need to leave is the eclipse-workspaces folder, so your projects will remain saved.
To uninstall it completely you need to:
Delete the "eclipse" folder in "C:\Users\YourName".
Delete the desktop shortcut.
Delete the ".p2" folder in "C:\Users\YourName".
Reinstall eclipse from the official site.
This worked for me.
You can try link:
https://youtu.be/LgOMN3US6Bk
I think it will work.
I faced the same problem, and what i did was to update the windowbuilder to version: 1.9.2......
That solved the problem for me.
PS: Using Eclipse Photon
I am both an android developer and a swing developer. I usually use a adt-version of eclipse that was downloaded from google with android development tools, this version seems to be juno 4.2.1.
The problem is that the windowbuilder doesn't show up. No windowbuilder options under preferences, and no new editors available.
Previously i have been working on eclipse there i could install window Builder from market place> i want to build gui using drag and drop option from the design menu
And i know by default my eclipse should include window Builder but when i right click on my class file i can't find window Builder
I tried to import it externally but i cant find any option to import it just like in eclipse
I'm assuming you mean "myeclipse" when you wrote "eclipse", since you have MyEclipse in the heading and as a keyword. If so, MyEclipse has come with WindowBuilder installed, for quite a few releases. Try New->Other and, in the wizard, type "window" in the filter box. You should see a couple of WindowBuilder options. If you do mean "eclipse" then you'd need to install. Go to Help->Eclipse Marketplace then search for "windowbuilder", click the Install button to install.
Assuming you are using Eclipse Neon
Eclipse Help-> Install New Software.
enter this URL : http://download.eclipse.org/windowbuilder/WB/integration/4.6/
Tick the Window Builder and click Add
Complete the installation.
I am using Eclipse - Indigo for creating a servlet. I keep getting the following Specify class file destination whenever I try to create a new servlet.
How do I overcome this?
I faced the same problem.
First of all, try re-selecting your "Project", which is the very first row in "Create Servlet" window ('One' in your case). It worked for me.
If that doesn't work, give this a try:
Right click on project in Project Explorer. Go to Build Path> Configure Build Path which opens up "Properties" box. In the left-side pane of this box, go to "Java Build Path". Now, in the right-side pane, click on "Source" tab. Just above the "OK" button, you can see a text-box labelled "Default Output Folder". You can use "Browse" button to set desired location. I am attaching a pic for your reference:
For more details,
refer this eclipse documentation http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Freference%2Fref-properties-build-path.htm
That should solve your problem. Hope this helps. Thank you.
The problem may arise if you have not installed the "Web, XML, Java EE and OSGi Enterprise Development" software package. Simply:
Help > Install new software...
select "-All Available Sites-" under work with.
select "Web, XML, Java EE and OSGi Enterprise Development" package
install it.
Restart the eclipse and try again with servlet creation.
I had the same problem which was caused by an error in my web.xml (haed an unescaped &). As soon as I fixed th web.xml I could create a Servlet.
I started to learn swing and downloaded netbeans to work through the tutorials. Unfortunately, when I create a JFrame design view hangs instead of loading and the Navigator and Inspector panes just show up empty.
System details:
Linux Mint Maya
Netbeans version 7.0.1
java 1.6.0_24
Any ideas would be greatly appreciated.
In whatever editor/designer you choose, consider the approach shown here, in which the top-level container is created manually and one or more content panels are maintained in the designer.
look in the Netbeans View menu and choose "IDE log"
There may be an error message / exception there, that might give you a clue.
Reinstalling the nb-javac plugin fixed this issue for me.
I followed the steps here and it resolved my problem.
For me, this was caused by a "FormGuardedBlockError", because at one point in my project I copied all of the source out into Notepad++ and used that to replace the .java file, thereby stripping all of the //GEN-BEGIN and related directives.
You can close NetBeans, open the .java file in a plaintext editor and put these directives back by hand, but it may be easier to merge with an earlier version of your code (if you have one).
For more details, check out http://wiki.netbeans.org/FormGuardedBlockError
Menu->view->show edit toolbar fixed this for me , of course the file you select to edit must have jframe, added to it I think for design tab to appear.
Go to Menu -> Option -> Select "Java" from option windows tool
then Active