Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Java applet's

  • 10-12-2001 12:12PM
    #1
    Registered Users, Registered Users 2 Posts: 1,684 ✭✭✭


    Getting into java applets in a big way looking for some good sites that will teach you how to draw shapes etc and find the area of them. When i say shapes i mean regular shapes squares triangles rectangles circles that kinda stuff. and it must be fairl good as i intend to go through the code of it and redesign my own version which i will post up afterwords for ye to see and say how bad it is and show me all my mistakes. any help would be great..


    The things i do to amuse myself. :)
    lets not go there


Comments

  • Registered Users, Registered Users 2 Posts: 12,025 ✭✭✭✭Giblet


    well heres a nice applet for drawing a circle
    import java.awt.*;
    import java.awt.event.*;
    
    class Ring extends Frame{  //name the file Ring.java
    
      public Rings ( ) {
          setTitle("Ring");
        }
    
        public static void main (String [ ] args) {
    
          Frame f = new Rings ();
          f.setSize (300, 200);
          f.setVisible (true);
    
        
        
        }
          public void paint (Graphics g) {
    
           g.setColor (Color.blue);
           g.drawOval (130,80,40,40);
    
        }
    
    }
    


  • Registered Users, Registered Users 2 Posts: 1,684 ✭✭✭Kraken


    Great thats a nice one. anymore more help or sites would be great... The most sites i have checked seem to be well crap to say the least..........


  • Registered Users, Registered Users 2 Posts: 1,176 ✭✭✭podgeen


    java.sun.com


  • Registered Users, Registered Users 2 Posts: 7,468 ✭✭✭Evil Phil


    Decafe pro is handy for decompiling java classes.


  • Registered Users, Registered Users 2 Posts: 1,684 ✭✭✭Kraken


    i can do basic ones but what i am trying to do is incoperate it all in to the one program resize stuff area(probly with a grid) and draw shapes. A similar program would be nice. just to get ideas and stuff.


  • Advertisement
Advertisement