Já postei o codigo, nao tem ninguem p me ajudar???
up
public class Tabuleiro extends JPanel {
int xSel,ySel;
JComponent g2d;
@Override
protected void paintComponent(Graphics g) {
super.paintComponent(g);
Graphics2D g2d = (Graphics2D) g;
setBackground(Color.white);
g.setColor(Color.black);
g.fillRect(00, 0, 50, 50);
g2d.setColor(Color.white);
g2d.fillOval(02, 5, 45, 40);
}
}
public class Tabuleiro extends JPanel {
int xSel,ySel;
JComponent g2d;
@Override
protected void paintComponent(Graphics g) {
super.paintComponent(g);
Graphics2D g2d = (Graphics2D) g;
setBackground(Color.white);
}
}