Eclipse's Window Builder missing Design - java

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

Related

IntelliJ asking to configure SDK and "run" won't appear in dropdown

I am using the Lynda.com tutorial Gradle for Java Developers to learn Gradle. In the tutorial, he opens a new project with no template and copies a folder from the exercise files into the new project (I'm not sure if this is relevant to my problem). Without altering the Java class found in said folder, he right-clicks it from the sidebar and clicks "run" from the drop-down menu.
When I right-click it the class, "run" does not appear. Additionally, there is a message at the top of the text editor that says something along the lines of needing to configure an SDK. When I click on it, a pop-up saying something about "1.8" appears, as well as an "OK" button. When I choose run from the top menu, it simply brings up an "edit configuration" pop-up.
Can anyone explain to me why my layout is so different from the tutor's?
Edit: Now I see where my issue came from. The tutor was misleading with his "how to use the exercise files" video. He showed it to be as simple as clicking "open" on Intellij and opening the folder or dragging the folder to the intellij icon, without configuring an SDK. But in the tutorial video I was watching, he did something completely different by creating a new project and pasting a folder within the folder for the video, which actually ended up looking different from the template he used (His project was called GradleLab and he copied the exercise files within it, while all the other exercise files include the GradleLab folder

Eclipse WindowBuilder Design Tab is Empty?

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

How to open a second package-explorer window in Eclipse?

I use Eclipse Neon.3 and work with Working Sets in hierarchial package presentation setting. I use the Java perspective.
And I have two working sets (working-set-new and working-set-old) for two different projects (project-old and project-new).
For a better refactoring of the old project to the new project I want to show both projects in the package exporer. So I want to open the package explorer a second time and put it next to the other package explorer. This might help me a lot to check which classes from the old project I have already moved to the new project (without scolling).
My question is: Can I open a second package explorer? And when yes how?
Or can I do it another way?
Eclipse uses a singleton model for the views, so I don't think you can open a second Package Explorer view within the same window.
One option is to open a second window so that Working-Set-Old is in the first window and Working-Set-New is in the second window.
Open a second window by clicking on Window -> New Window

Can you force eclipse to run/debug another project when a particular one is ran/debugged?

I'm working with Ligdx, an API for cross plattaform game development that by default generates at least 2 projects:
The core project: This is the one you are supposed to work on, where all the classes and logic should be placed.
The desktop project: This one is automatically generated from the core project.
The core doesn't have any class to start it because it's supposed to be started from the desktop (or other platforms) project.
It is also always selected -because its what you are working on- so pressing the "run" or "debug" buttons will attempt to run the core project and not the desktop one and immediately fail thus forcing you to select the desktop project before hitting run/debug. This can get extremely annoying, especially when debugging.
So is there a way to force Eclipse to always run the desktop project?
Rekaszeru's answer to this question shows how to set up Eclipse in order to always launch the previously launched application.
You simply have to go to preferences / run-debug / launching and check the "Always launch previously launched application" box as he shown in the picture he used to illustrate his answer:
This will not force one of the projects to always be launched but it would pretty much solve the problem unless you are working on multiple projects at the same time or you alternate between Web/Android/Desktop.
If Your asking how to start a Core project from already existing project present in the eclipse then all you need to do is Right Click on desktop folder of the project and go over Run As and select Java Application
But if that is not what you have posted for I can only understand that you need to understand how a LibGDX project is deployed.... From Desktop project "In xyzMain.java" file you will have a method call to the core project saying:
new LwjglApplication(new Sample(), cfg);
This is where you'r Sample Class from the core project is called over.
But from the title I get a diff feeling that you wish to add another project to your already existing project...
You can do that by changing the build Path of the project....by including Other proj to the one you wish to compile and run.
Hope this helped you out..
I´m not aware of doing exactly what you have described, but I´d suggest using the Launch Configurations menus and dialgos to do what you want in a similar quick way.
Note that you can configure your launch configurations doing: Run -> Run Configurations... (also Run -> Debug configurations...)
Option 1).
Once you have run your Desktop Project, simply use the Run Drop-down button, which contain your launch configurations:
Option 2).
Save a launch configuration file in your Core project (or wherever you want) using the last "common" tab of the launch configuration dialog:
Then you can simply right-click on your that file to launch your Desktop Project:
P.S: I´d also suggest reading a little bit about run configurations in lars tutorial

Window Builder in Eclipse (JAVA) Won't Load

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!

Categories

Resources