i want to know why when i implement the findComponentAt(int x,int y) out the mouse pressed it dosent work please i need help
ther is my code and theresult
code=java
couleurCase=new Color[8][8];
for (int i=0; i<8; ++i)
{
if (i%2==0)
{
for(int j=0;j<8;j++)
{
if(j%2==0)
{
lab1[i][j] = new Case(Couleur.NOIR);
couleurCase[i][j]=new Color(201,196,194);
pano.add(lab1[i][j].getCase());
}
else
{
lab1[i][j] = new Case(Couleur.BLANC);
couleurCase[i][j]=new Color(214,103,125);
pano.add(lab1[i][j].getCase());
}
}
}
else
{
for(int j=0;j<8;j++)
{
if(j%2!=0)
{
lab1[i][j] = new Case(Couleur.NOIR);
couleurCase[i][j]=new Color(201,196,194);
pano.add(lab1[i][j].getCase());
}
else
{
lab1[i][j] = new Case(Couleur.BLANC);
couleurCase[i][j]=new Color(214,103,125);
pano.add(lab1[i][j].getCase());
}
}
}
}
this.position();
this.setPieces();
layeredPane.add(pano);
jouer=false;
pendule2=new Time();
pendule1=new Time();
for(int i=0;i<8;i++)
{
for(int j=0;j<8;j++)
{
int tab[]=changementXYvIJ(i,j);
System.out.print(tab[0]+" "+tab[1]);
Component c=pano.findComponentAt(tab[0],tab[1]);
System.out.print(c+" ");
}
System.out.println();
}
/code
the result:
0 0javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 0 69javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 0 138javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 0 207javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 0 276javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 0 345javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 0 414javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 0 483javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=]
69 0javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 69 69javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 69 138javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 69 207javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 69 276javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 69 345javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 69 414javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 69 483javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=]
138 0javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 138 69javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 138 138javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 138 207javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 138 276javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 138 345javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 138 414javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 138 483javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=]
207 0javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 207 69javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 207 138javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 207 207javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 207 276javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 207 345javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 207 414javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 207 483javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=]
276 0javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 276 69javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 276 138javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 276 207javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 276 276javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 276 345javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 276 414javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 276 483javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=]
345 0javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 345 69javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 345 138javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 345 207javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 345 276javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 345 345javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 345 414javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 345 483javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=]
414 0javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 414 69javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 414 138javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 414 207javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 414 276javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 414 345javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 414 414javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 414 483javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=]
483 0javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 483 69javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 483 138javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 483 207javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 483 276javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 483 345javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 483 414javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=] 483 483javax.swing.JPanel[,0,0,552x552,invalid,layout=java.awt.GridLayout,al ignmentX=0.0,alignmentY=0.0,border=,flags=9,maximu mSize=,minimumSize=,preferredSize=]
and this when inside mousePressed:
code=java
public void mousePressed(MouseEvent e)
{
if(!jouer) //si partie non intialisée
{
JeuIHM.etatDuPartie.setText("Initialiser une partie SVP!.");
return ;
}
JeuIHM.etatDuPartie.setText("");
for(int i=0;i<8;i++)
{
for(int j=0;j<8;j++)
{
int tab[]=changementXYvIJ(i,j);
System.out.print(tab[0]+" "+tab[1]);
Component c=pano.findComponentAt(tab[0],tab[1]);
System.out.print(c+" ");
}
System.out.println();
}
/code
0 0javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\TN. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER] 0 69javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\PN. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER] 0 138javax.swing.JPanel[,0,138,69x69,layout=java.awt.GridLayout,alignmentX =0.0,alignmentY=0.0,border=,flags=9,maximumSize=,m inimumSize=,preferredSize=] 0 207javax.swing.JPanel[,0,207,69x69,layout=java.awt.GridLayout,alignmentX =0.0,alignmentY=0.0,border=,flags=9,maximumSize=,m inimumSize=,preferredSize=] 0 276javax.swing.JPanel[,0,276,69x69,layout=java.awt.GridLayout,alignmentX =0.0,alignmentY=0.0,border=,flags=9,maximumSize=,m inimumSize=,preferredSize=] 0 345javax.swing.JPanel[,0,345,69x69,layout=java.awt.GridLayout,alignmentX =0.0,alignmentY=0.0,border=,flags=9,maximumSize=,m inimumSize=,preferredSize=] 0 414javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\PB. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER] 0 483javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\TB. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER]
69 0javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\CN. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER] 69 69javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\PN. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER] 69 138javax.swing.JPanel[,69,138,69x69,layout=java.awt.GridLayout,alignment X=0.0,alignmentY=0.0,border=,flags=9,maximumSize=, minimumSize=,preferredSize=] 69 207javax.swing.JPanel[,69,207,69x69,layout=java.awt.GridLayout,alignment X=0.0,alignmentY=0.0,border=,flags=9,maximumSize=, minimumSize=,preferredSize=] 69 276javax.swing.JPanel[,69,276,69x69,layout=java.awt.GridLayout,alignment X=0.0,alignmentY=0.0,border=,flags=9,maximumSize=, minimumSize=,preferredSize=] 69 345javax.swing.JPanel[,69,345,69x69,layout=java.awt.GridLayout,alignment X=0.0,alignmentY=0.0,border=,flags=9,maximumSize=, minimumSize=,preferredSize=] 69 414javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\PB. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER] 69 483javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\CB. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER]
138 0javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\FN. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER] 138 69javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\PN. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER] 138 138javax.swing.JPanel[,138,138,69x69,layout=java.awt.GridLayout,alignmen tX=0.0,alignmentY=0.0,border=,flags=9,maximumSize= ,minimumSize=,preferredSize=] 138 207javax.swing.JPanel[,138,207,69x69,layout=java.awt.GridLayout,alignmen tX=0.0,alignmentY=0.0,border=,flags=9,maximumSize= ,minimumSize=,preferredSize=] 138 276javax.swing.JPanel[,138,276,69x69,layout=java.awt.GridLayout,alignmen tX=0.0,alignmentY=0.0,border=,flags=9,maximumSize= ,minimumSize=,preferredSize=] 138 345javax.swing.JPanel[,138,345,69x69,layout=java.awt.GridLayout,alignmen tX=0.0,alignmentY=0.0,border=,flags=9,maximumSize= ,minimumSize=,preferredSize=] 138 414javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\PB. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER] 138 483javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\FB. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER]
207 0javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\DN. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER] 207 69javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\PN. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER] 207 138javax.swing.JPanel[,207,138,69x69,layout=java.awt.GridLayout,alignmen tX=0.0,alignmentY=0.0,border=,flags=9,maximumSize= ,minimumSize=,preferredSize=] 207 207javax.swing.JPanel[,207,207,69x69,layout=java.awt.GridLayout,alignmen tX=0.0,alignmentY=0.0,border=,flags=9,maximumSize= ,minimumSize=,preferredSize=] 207 276javax.swing.JPanel[,207,276,69x69,layout=java.awt.GridLayout,alignmen tX=0.0,alignmentY=0.0,border=,flags=9,maximumSize= ,minimumSize=,preferredSize=] 207 345javax.swing.JPanel[,207,345,69x69,layout=java.awt.GridLayout,alignmen tX=0.0,alignmentY=0.0,border=,flags=9,maximumSize= ,minimumSize=,preferredSize=] 207 414javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\PB. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER] 207 483javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\DB. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER]
276 0javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\RN. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER] 276 69javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\PN. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER] 276 138javax.swing.JPanel[,276,138,69x69,layout=java.awt.GridLayout,alignmen tX=0.0,alignmentY=0.0,border=,flags=9,maximumSize= ,minimumSize=,preferredSize=] 276 207javax.swing.JPanel[,276,207,69x69,layout=java.awt.GridLayout,alignmen tX=0.0,alignmentY=0.0,border=,flags=9,maximumSize= ,minimumSize=,preferredSize=] 276 276javax.swing.JPanel[,276,276,69x69,layout=java.awt.GridLayout,alignmen tX=0.0,alignmentY=0.0,border=,flags=9,maximumSize= ,minimumSize=,preferredSize=] 276 345javax.swing.JPanel[,276,345,69x69,layout=java.awt.GridLayout,alignmen tX=0.0,alignmentY=0.0,border=,flags=9,maximumSize= ,minimumSize=,preferredSize=] 276 414javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\PB. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER] 276 483javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\RB. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER]
345 0javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\FN. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER] 345 69javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\PN. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER] 345 138javax.swing.JPanel[,345,138,69x69,layout=java.awt.GridLayout,alignmen tX=0.0,alignmentY=0.0,border=,flags=9,maximumSize= ,minimumSize=,preferredSize=] 345 207javax.swing.JPanel[,345,207,69x69,layout=java.awt.GridLayout,alignmen tX=0.0,alignmentY=0.0,border=,flags=9,maximumSize= ,minimumSize=,preferredSize=] 345 276javax.swing.JPanel[,345,276,69x69,layout=java.awt.GridLayout,alignmen tX=0.0,alignmentY=0.0,border=,flags=9,maximumSize= ,minimumSize=,preferredSize=] 345 345javax.swing.JPanel[,345,345,69x69,layout=java.awt.GridLayout,alignmen tX=0.0,alignmentY=0.0,border=,flags=9,maximumSize= ,minimumSize=,preferredSize=] 345 414javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\PB. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER] 345 483javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\FB. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER]
414 0javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\CN. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER] 414 69javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\PN. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER] 414 138javax.swing.JPanel[,414,138,69x69,layout=java.awt.GridLayout,alignmen tX=0.0,alignmentY=0.0,border=,flags=9,maximumSize= ,minimumSize=,preferredSize=] 414 207javax.swing.JPanel[,414,207,69x69,layout=java.awt.GridLayout,alignmen tX=0.0,alignmentY=0.0,border=,flags=9,maximumSize= ,minimumSize=,preferredSize=] 414 276javax.swing.JPanel[,414,276,69x69,layout=java.awt.GridLayout,alignmen tX=0.0,alignmentY=0.0,border=,flags=9,maximumSize= ,minimumSize=,preferredSize=] 414 345javax.swing.JPanel[,414,345,69x69,layout=java.awt.GridLayout,alignmen tX=0.0,alignmentY=0.0,border=,flags=9,maximumSize= ,minimumSize=,preferredSize=] 414 414javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\PB. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER] 414 483javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\CB. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER]
483 0javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\TN. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER] 483 69javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\PN. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER] 483 138javax.swing.JPanel[,483,138,69x69,layout=java.awt.GridLayout,alignmen tX=0.0,alignmentY=0.0,border=,flags=9,maximumSize= ,minimumSize=,preferredSize=] 483 207javax.swing.JPanel[,483,207,69x69,layout=java.awt.GridLayout,alignmen tX=0.0,alignmentY=0.0,border=,flags=9,maximumSize= ,minimumSize=,preferredSize=] 483 276javax.swing.JPanel[,483,276,69x69,layout=java.awt.GridLayout,alignmen tX=0.0,alignmentY=0.0,border=,flags=9,maximumSize= ,minimumSize=,preferredSize=] 483 345javax.swing.JPanel[,483,345,69x69,layout=java.awt.GridLayout,alignmen tX=0.0,alignmentY=0.0,border=,flags=9,maximumSize= ,minimumSize=,preferredSize=] 483 414javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\PB. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER] 483 483javax.swing.JLabel[,0,0,69x69,layout=java.awt.GridLayout,alignmentX=0 .0,alignmentY=0.0,border=,flags=8388608,maximumSiz e=,minimumSize=,preferredSize=,defaultIcon=src\TB. gif,disabledIcon=,horizontalAlignment=CENTER,horiz ontalTextPosition=TRAILING,iconTextGap=4,labelFor= ,text=,verticalAlignment=CENTER,verticalTextPositi on=CENTER]
i think in the first code it return the panel it self so please answer me as soon as possible