currently I have no way of getting the current image icon of a panel that is placed.
Right now I am using getcomponent and figuring out its location to determine which image I used which isn’t the best way any ideas?
for(lkm = 0; lkm < counter; lkm++)
{
ImagePanelList.get(lkm).addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent events) {
int letz;
char let;
String text;
text = events.getComponent().toString();
//gives me the panels location
System.out.println(text);
let = text.charAt(25);
//get first number of location
letz = Character.getNumericValue(let);
letz = letz - 1;
//minus one since my array list of images starts at 0
if(cardpicked[letz] == false && place[0] == -1)
{
alPickedStringCardName.add(strCardName[letz]);