Hello, I am new to Swing.I want to draw a rectangular box of dotted line on a frame by dragging the mouse.How to do this in swing? Thanks
posted 11 years ago
Pretty much the same as drawing in the AWT except you get double buffering. And Swing overrides the update method so we are advised not to override it. The Trail: 2D Graphics is a guide to the Graphics2D resources but these are equally available in the AWT.