Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use WindowBuilder core in Eclipse Kepler to make a simple window?

I have just downloaded the "Eclipse IDE for Java Developers" (version: Kepler Service Release 1 for Windows 64bit) and extract it to a folder.

The Package Description says that the IDE includes WindowBuilder Core.

So I created a New -> Java Project using the default settings and pressing Finish. Then I created a new class file with a public static void main() inside it.

Then I search all the toolbars but I can't find the WindowBuilder Toolbar anywhere so that to be able to create a new window..

How can I access the WindowBuilder Core from my Eclipse and show up the toolbar with buttons and textboxes e.t.c.?

How can I make and run a simple window with WindowBuilder?

like image 689
MinimalTech Avatar asked Feb 07 '14 15:02

MinimalTech


People also ask

How do I get the design window in Eclipse?

If you can't see the Design tab yet, try the following: When opening a file, right-click and select 'Open with' > 'WindowBuilder Editor'. If Window Builder is installed, you will see the Design tab in the newly opened file.

What is Window Builder in Eclipse?

Eclipse WindowBuilder is composed of Eclipse SWT Designer and Eclipse Swing Designer and makes it very easy to create Java GUI applications without spending a lot of time writing code. Use the WYSIWYG visual designer and layout tools to create simple forms to complex windows; the Java code will be generated for you.

How do I open a Jframe in Eclipse?

Select Window > Preferences from the menu to open it and then expand the node "JFormDesigner" in the tree. See Preferences for details. You can also set project specific settings in the Eclipse project dialog. Select Project > Properties from the menu to open it and then expand the node "JFormDesigner" in the tree.


1 Answers

I found the second part of my question my own, sorry for any inconvenience.

1) How can I make and run a simple window with WindowBuilder?

As lakshman said,

  • Go to File -> New -> Other. The "select a wizard" window pops up.

  • Double click in WindowBuilder folder and then to Swing Designer subfolder.

  • Click to the Application Window and then click Next.

  • Give a Name for your new window and then click Finish. The Source code of the new Window pops up.

  • Press Run (the "Play" icon of the toolbar) to run your newly created window.

2) How can I access the WindowBuilder Core from my Eclipse and show up the toolbar with buttons and textboxes e.t.c.?

To access the core WindowBuilder you have to switch to the Design View of your newly created window. To do that, just press the Design tab at the end of the window tab. You will see the core WindowBuilder Toolbar (or "Palette") and you will be able from here to drag-n-drop the controls you want into you window.

like image 183
MinimalTech Avatar answered Oct 17 '22 07:10

MinimalTech