Deleting and Adding Lists in Java Applets
The coding to this is in my other topic on this section but I'm not allowed to link until I have a post count of 20.
Is their a way to make a choice list in the applet that when you pick on a choice, creates a new list? Then if the user picks a new choice from the first list, it deletes the second list and makes a new list.
-User opens the applet and sees List 1 with Choice A, Choice B, Choice C.
-User picks Choice A from List 1 and it creates a List 2 with Choice D, Choice E, Choice F
-User goes back to List 1 and picks Choice B
-List 2 gets deleted and List 3 is created with Choice G, Choice H, Choice I
The only way I'm thinking is to make a class per choice but I don't even know if that would delete automatically or not and I am not sure how to delete specific things. Last time I tried to delete one list, I managed to delete everything but the first Label created.