Java Swing getting started with Eclipse (WindowBuilder)

I have to design a user interface for CKAN search, for desktop application. I am planning to use Java Swing for it.

To get started I would be using Eclipse IDE, I have installed WindowBuilder Eclipse Plugin for designing my user interface (https://eclipse.org/windowbuilder/).

Steps to install WindowBuilder on Eclipse (I am on version Mars 4.5).

Help -> Install new software -> Work with : Mars- http://download.eclipse.org/releases/mars -> General Purpose Tools

Here I have installed :
Swing Designer
SWT Designer
SWT Designer Core
WindowBuilder Core
WindowBuilder Core UI
WindowBuilder Java Core
WindowBuilder XML Core

 

To get started with WindowBuilder I found this post on stackoverflow

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

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.

Links:
WindowBuilder: http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.wb.doc.user%2Fhtml%2Findex.html,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s