Skip to main content

Geertjan Wielenga: How to Draw Lines on the Screen

Geertjan Wielenga demonstrates How to Draw Lines on the Screen:

I've seen occasional questions on mailing lists about how to use NetBeans Visual Library to draw lines, e.g. to make graphs or diagrams by drawing on the screen. So rather than drag/drop causing widgets to be added, you'd want widgets to be added on mouse clicks and to be able to connect those widgets together. Via the code below...

Community: NetBeans