Monthly Archives: March 2007

Configuring J2EE Environment on Eclipse IDE

Eclipse IDE is well known for Java project development. One of the reasons is that Eclipse is free and is easily extendable. Unfortunately no free and reliable plug-in was available for configuring J2EE environment on Eclipse IDE untill Lomboz. Lomboz is an open source and free J2EE development environment for businesses and individuals. You can develop, test, profile and deploy Web, Web services, Java, J2EE and EJB applications with this IDE. Lomboz has comprehensive support for most J2EE standard application server runtimes, and supports most popular open source runtimes such as JOnAS, and other vendor runtime environments. Lomboz is buillt on the Eclipse open source platform and the Web Tools Platform (WTP) projects. Here is the complete tutorial for configuring J2EE environment on Eclipse. It can be downloaded from Lomboz version of Eclipse

After Installing Lomboz

Read more »

Generating Code Automatically Using Custom code Template In Eclipse

One of the good features of Eclipse is its auto fill property. This can be further enhanced using its code template feature. Creation of code templates is necessary to improve development productivity. Templates add consistency and uniformity to your code. Eclipse has so many ready-to-use templates. And you can create your own code templates according to your requirements. To use these templates just type the starting characters of the template and then press “CTRL+SPACE”. For example in Eclipse IDE type “tr” and then press “CTRL+SPACE”, It will add “try-catch” block to the code.

Read more »

Customize the palette of Visual Editor

The Visual Editor has a palette from which the user can choose frequently used widgets. This article is a deep dive into the internals of the Visual Editor framework to show how to extend its capabilities. Visual Editor lets you create your own custom controls. This article shows the way to create a new palette category with a custom built widget DateField.

Customize the palatte of Visual Editor(Pic1) There are two ways to drag custom built widget to your view:

Read more »

Auto generating getters and setters

Normally it is a good practice to have class variables declared as private and use non private “getter and setter” methods to access them. This is otherwise called as data encapsulation in Object Oriented Programming.

Read more »

SWT is better than Swing

Swing

  • The Swing API is complicated—that’s the price to pay for flexibility provided for coding applications.
  • The performance is not good; because everything is emulated and drawn using basic Graphics2D calls, software and hardware optimizations from the native system are not possible.
  • Swing may not be able to take advantage of hardware GUI accelerators and special host GUI operations. As a result, Swing applications may be slower than native GUIs. Sun has worked hard on the performance of the recent versions of Swing (Java V1.4 and 1.5), and this disadvantage is becoming less noticeable. Because Swing’s design is more robust, its code base is larger. This can mean it takes a beefier machine to run it than AWT or SWT might.
  • The look and feel of a Swing application is not exactly the same as those of a native application. Furthermore, the customization of the colors and font schemes of the underlying windowing system are difficult to propagate in the emulated widgets.
  • Swing does not typically look like a native application. In fact, it has multiple looks, some that can emulate—although often not exactly—different hosts and some that provide unique looks.
  • Creating a GUI that is accessible to people with disabilities is important. Swing offers an extensive infrastructure and API for enabling GUIs for accessibility. This support is independent of but integrates with the host accessibility support, if any.

SWT

Read more »

Introduction

The first version of Eclipse was released in November 2001. Eclipse was announced by IBM as a $40 million donation to the Open Source community. Eclipse is now completely managed by eclipse.org, an independent, nonprofit organization.

The beauty of Eclipse IDE is its plugins architecture. A plug-in in Eclipse is a component that provides a certain type of service within the context of the Eclipse workbench. Each plug-in creates a bit of functionality, and plug-in altogether make a very rich integrated development environment.

Read more »