I want to create GUI like spread sheet. With resizeable cell size, filled with colour, Zoom in and zoom out etc features. Can I use draw2d for this?.
Is there any grid like widgets available in any Java based GUI frameworks? Or do I need to draw rectangle in rows and columns?
Have a look at the Nebula project in Eclipse. It has widgets with some of the features that you need.
http://www.eclipse.org/nebula/
The widgets which might be of most interest to you are:
Some years ago, before Nebula was in a usable state I needed a flexible grid control. At that time I found and used KTable. But I think it is no longer maintained regularly but it was simple to use and served my purpose.