Campbell Ritchie wrote:I would suggest you start with much simpler examples, creating a frame which you can see at all, for example. You cannot add a circle to a frame until you have a frame to add it to!
Try the Java Tutorials and use ctrl-F-“Graphical User Interfaces”.
Thanks Campbell,
I know how to create a JFrame and how to add components or implemention of handlers ;) .but clearly my question is that, suppose I extend JPanel class and override the paindComponent method (e.g. add methods like g.fillrect(x,y,z,w) ... to add rectangular to it) . but now, I want to change the position of this rectangular.How can I do that?
There are many tutorials about GUI , but most of them are very long and take much time(like suggested link,of course I review that
) .