private void drawNode(double x, double y, double no, Graphics g) { g.fillOval(x, y, 17, 17); // draw an oval which is filled with the current color g.setColor(blue); // set current color to black g.drawOval(x, y, 16, 16); // draw an oval g.drawString(Integer.toString(no), x+5, y+13); // draw the node number }
The code above is wrong in netbeans, it said the fillOval(), drawOval, drawString() cannot have the a double value, so how can i solve it? Please help!!
Thank you