if(e.getSource() == tButton) { int mining[] = {0,11,11,1}; int visual[] = {0,1,8,1}; int size[] = {1,2,3,4}; panelSetFromModule(mining, visual, size); }