When I call <JPanel>.getComponents() it returns an array of Components, correct?
After that, how do I compare those Components types to find out what I want? I have:
items = panel.getComponents();
for(int ii; ii < items.length; ii++)
if(items[ii] == JButton)
and I get Cannot Resolve Symbol on the JButton. I have imported javax.swing.*
Basically, I want to disable all the buttons on that JPanel.