Answer the question
In order to leave comments, you need to log in
Why can't I create a collection of buttons?
Prompt why such construction is not created: List< JButton > colBut;
I have a large number of buttons on the frame, and I need to manage them, tell me how to do this if this cannot be done through the collection!?
Answer the question
In order to leave comments, you need to log in
Check import. It looks like you are trying to use java.awt.List instead of java.util.List.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question