posted 17 years ago
This was more difficult than I had imagined. My last post missed the mark.
This app should allow adding, selecting and removing lines as you wish.
To add a line: press the addLine button and then click any two labels.
The removeLine button will work for selected (red) lines as before.
The app is set up for non-generics, j2se 1.4-
There are generic statements (for the two List/ArrayLists) which you can
uncomment (and comment–out the two non–generic statements right beneath them)
if using j2se 1.5+ and you want to avoid compiler warnings.