I want to implement a java awt/swing application but i am new to awt/swing. I need to draw a grid like panel. Than drag and drop some objects on it. Later than objects can be clickable and resizable. My application should look like this:

I am able to draw object with :
public void paint(Graphics g){}
but its too far away from what i want to do.
How can i implement this kind of application? What should i read and know to do this?
First, I’d be sure to follow the Swing tutorials:
Then, I’d revisit your approach a little: I would use Swing components.
paintComponentmethod there to draw your grid.paintComponentmethod for those to draw the appearance of your objects.paintComponent– callingrepaintif necessary to force a redraw.