P
P
P_Alexander2016-09-22 12:05:57
Java
P_Alexander, 2016-09-22 12:05:57

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

2 answer(s)
A
AlexeyVD, 2016-09-22
@P_Alexander

Check import. It looks like you are trying to use java.awt.List instead of java.util.List.

P
P_Alexander, 2016-09-22
@P_Alexander

d5755eea8cd34bb58875c37c7eb12a8a.bmp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question