Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: please i need a help about findComponenetAt()

  1. #1
    Junior Member
    Join Date
    Feb 2014
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default please i need a help about findComponenetAt()

    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

  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: please i need a help about findComponenetAt()

    Please post your code correctly. Too much unformatted, unreadable, unrunnable, unintelligible code.