/Java Snippet Codes

Java Snippet Codes

To drag and drop a rectangle in a white space , you have to do so >> first you have to create a rectangle with its (size , color , position,..) , then you have to creat events (mousePressed , mouseDragged,mouseClicked)


 

The Following code is showing colour animation of square using Random Generator >>

The Following Code perform the following pic >>