Having trouble understanding Class Graphic
Ok, i am trying to draw circles with a circle object on a jFrame with the input of the user taken with the scan.nextDouble() method, I am in way over my head sadly and I am doing things without fully understanding them. I have only just begun doing graphic, when i say begun we just learned how to make a jFrame. So am i here to ask you for help in understanding
A. how do use an can i use an Abstract class like Graphic with initializing it. i need to use the method circle.getAbscisse() getRadius etc...Any help would be appreciated.
Most of this code comes from reading forums and wikis, i understand most of it but I am just confused on how to apply my circles to these methods. Thank you for taking the time to read
* MyCanvas application
* @version 1.00 2009/3/1
public class MyCanvas extends Canvas
public static void main(String args)
//System.out.println("Enter the x,y an radius values");
//Scanner scan = new Scanner(System.in);
//Cercle cerc = new Cercle(scan.nextDouble(),scan.nextDouble(),scan.nextDouble());
MyCanvas canvas = new MyCanvas();
JFrame frame = new JFrame();
//graphics.drawLine(10, 20, 300, 310);
public void paint(Graphics graphics)
No more hassles for Internet Shoppers!
VeriSupport has launched the world's first SUPPORT RANKING PROGRAM
And it is available now! You can choose to buy from stores which are VeriSupport certified and ranked ensuring that you are protected from online breeches and fraudulent organizations. Look for the VeriSupport seal when you buy from an online store, as VeriSupport seal in a website tells you, the organizations ability to provide support like live customer service, technical support and other helpdesk functions before, during and after the sale; the ability to handle customer feedback and their reliability as a company.
VeriSupport's Support Ranking Program provides a number of benefits to you including:
1. You can be confident that there is a support channel for addressing your issues and concerns
2. You have the power to comment and rate in real-time about your experience
3. You can be confident that you are dealing with a reliable business
4. Assurance that transactions are secure
VeriSupport helps your visualize support levels of the organization that you could deal with! and now its your decision choose VeriSupport certified organization for a hassle free experience!
Look for the VeriSupport seal provided by VeriSupport.Com, every time!