Saturday 3 September 2011

Designing Swing / SWT GUIs using WindowsBuilder in Eclipse Indigo

The latest release of Eclipse code named Indigo includes the WindowsBuilder project as an open source project within the Eclipse umbrella of projects. WindowsBuilder which is a significant GUI designing tool in its own right provides a WYSIWYG editor for desgining Swing and SWT interfaces from within Eclipse.

WindowsBuilder comes bundled with the standard download 'Eclipse IDE for Java Developers' but if you choose to download another version of Eclipse and you need to manually add the plugin, , goto Help->Install New Software -> and in the 'worh with' box enter the site : site http://dl.google.com/eclipse/inst/d2wbpro/latest/3.7  and then follow the usual steps for adding the plugin. After successfully installing it, you will be able to view the plug-in in the 'Installation History' and the'Plugins' tab of Eclipse Installation Details.


Now that you have WindowsBuilder installed, creating Swing / SWT based GUIs is just a matter of clicking through a few wizards. To create a screen using the wizard, create a Java project and then select New-> Other->WindowsBuilder and open up the wizard.

Other->WindowsBuilder and open up the wizard. Select the required option. In this case, I selected 'ApplicationWindow' and the wizard generates the ApplicationWindow for me as shown in the screenshot.
At the bottom of the editor view, there will be two options, 'Source' and 'Design'. Click on the Design option. This will open the design page and load up the pallet and give you the WYSIWYG option.You can now see your 'frame' object on the right hand side and the pallet with different Swing and SWT controls that you can use. I added a JPanel and set its layout to 'JGoodiesFormLayout' and then added a couple of labels, textboxes and a 'Send' button.
Add the required controls you need. You can also select any of the controls and add any EventHandlers that you might need by right clicking on the controls.


The wizard will create skeleton code for you which you can customize as required. Once you are done, just run the application.




Finally, if you want a different 'Look and Feel', especially a 'Native Platform' look, the WindowsBuilder has an option in the top menu, that allows you to change the Look and Feel as shown in the screenshot below.


Thus, within a few minutes, you can design a fully functional Java application with a few bells and whistles. This is very useful, if you need a prototype and some sample screenshots to show the user. Instead of wasting time,drawing the screens in a prototyping tool, create the same using the WindowsBuilder plugin and when the client gives you the green light, come back to your prototype, clean up the code and add the required functionality. Finally, there are a couple of good tutorials on YouTube that describe using WindowsBuilder with Eclipse.

5 comments:

Digi said...

Thank you for this blog
Learn Digital marketing course for free online
[url=https://digitalbazaar123.wordpress.com/2021/09/17/what-are-seo-friendly-urls-how-can-it-enhance-seo-rankings/amp]delhi/ncr digital marketing services[/url]
[url=https://www.onfeetnation.com/profiles/blogs/how-does-covid-19-highlight-the-importance-of-seo]top digital marketing company in lucknow[/url]
[url=https://ext-5832936.livejournal.com/865.html]digital marketing companies in nagpur[/url]
[url=https://clicksbazaar2.blogspot.com/2021/09/what-is-outline-markup-and-why-is-it.html]digital marketing company in abu dhabi[/url]
[url=https://sites.google.com/view/clicks-bazaar-best-digital-mar/blogs/how-digital-marketing-is-adding-value-to-business]digital marketing companies in abu dhabi[/url]

David said...

Thank you this helpful blog.
Learn how to make money online and earn 5k everyday.
digital marketing services india
digital marketing services in delhi
Digital Marketing Agency In Mumbai
SEO services in Mumbai
Digital Marketing Company In Mumbai

Eddy said...

Thank you for this helpful blog, found this very helpful .
I am Introducing a Topic about Virtual Paralegal Assistants
At the onset, let us first understand the core responsibilities of an attorney to figure out the need for a Virtual Paralegal Assistants or outsourcing legal process to paralegal assistant in the first place.
An attorney’s core work areas cover all aspects related to practice as in serving clients and business by attending court proceedings, ensuring documents are appropriately drafted for the hearing, coordinating with the opposing counsel, and dealing with new clients and their requirements, to name a few of the many tasks that an attorney is expected to perform.
Now, imagine a plethora of mundane activities like
1. Coordinating and scheduling meetings,
2. Attending phone calls, and other
3. Clerical tasks

Hero Instinct said...

Thank you for this helpful blog, found this very helpful .
I am Introducing a Topic about Virtual Paralegal
At the onset, let us first understand the core responsibilities of an attorney to figure out the need for a Virtual Paralegal or outsourcing legal process to paralegal assistant in the first place.
An attorney’s core work areas cover all aspects related to practice as in serving clients and business by attending court proceedings, ensuring documents are appropriately drafted for the hearing, coordinating with the opposing counsel, and dealing with new clients and their requirements, to name a few of the many tasks that an attorney is expected to perform.
Now, imagine a plethora of mundane activities like
1. Coordinating and scheduling meetings,
2. Attending phone calls, and other
3. Clerical tasks

MN Leads said...

Thank you for this informational Blog. if you are interested to learn more informative and Helpful blog
Are you a business owner? Working day and night still not getting enough traffic? Looking for the Best SEO Services
in Delhi just the improve the presence of your website on search Engine? You are at the right place we have the perfect and cost effective Best SEO Services
packages for you. These SEO packages are especially designed to improve the online presence. Customized packages are also available to fulfil your precise need. We as a brand take care of all the aspects of your business and requirements. To provide you professional assistance we have a team that will help you to cope up with all the on going trends. Each Aspect of Best SEO Services will be covered including key word research, Website Audits, Back-linking, Increasing Visibility and Link Building. Our SEO Services Experts ensures at enhancing the digital visibility of your website along with increasing the rank of your website. Also, our impeccable techniques of SEO Services will assist you in fulfilling all your expectations of your website.