Hello,
I am new to java, but I have done a program, keeping your needs in mind. Just check out the code and see if this works with you.
Code:
Public View Point(){ .....
if(ok){
g.drawLine(num-1+ x, tab_coor[indiceTab -(int)not][i][0], num + x, tab_coor[indiceTab][i][0]);
shapes.add(new Line2D.Double(num-1+ x, tab_coor[indiceTab -(int)not][i][0], num + x, tab_coor[indiceTab][i][0]));
}
....
if(ok){
{g.drawLine(num-1+ x, tab_coor[indiceTab -(int)not][i][c], num + x, tab_coor[indiceTab][i][c]);
shapes.add(new Line2D.Double(num-1+ x, tab_coor[indiceTab -(int)not][i][c], num + x, tab_coor[indiceTab][i][c]));
}
}
Bookmarks