$$$ Need someone to code me a simple JavaScript Applet

Discussion in 'JavaScript' started by bennyjh, Apr 22, 2010.

  1. #1
    Basically, i need an applet that enables the user to draw lines & shapes in a chosen colour.

    perhaps something along the lines of this:
    [​IMG]

    http://translate.google.com/translate?hl=en&sl=it&u=http://www.hwupgrade.it/forum/showthread.php%3Ft%3D1430167
    Code (markup):
    this is the basis of the code:

    import java.awt.*;
    import java.awt.event.*;
    import java.applet.Applet;
    
    public class Sketch extends Applet implements MouseListener, ActionListener
    {
    
    
    	public void init ()
    	{
    		setSize(400, 500);
    		setBackground(Color.white);
    		addMouseListener(this);
    		
    	}
    
    	
    	public void paint (Graphics g)
    	{
    		
    	}
    
    	public void mouseClicked(MouseEvent e)
    	{
    		
    	}
    
    	public void mousePressed(MouseEvent e) {}
    	public void mouseReleased(MouseEvent e) {}
    	public void mouseEntered(MouseEvent e) {}
    	public void mouseExited(MouseEvent e) {}
    
    	public void actionPerformed(ActionEvent e)
    	{
    		
    	}
    }
    
    Code (markup):

    I need this do be done by tonight/tomorrow morning GMT+1 & it needs to be original code i.e. not copied from elsewhere

    name your price £££$$$ :)

    cheers :D
     
    bennyjh, Apr 22, 2010 IP
  2. krsix

    krsix Peon

    Messages:
    435
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This is NOT javascript or anything similar at all.
     
    krsix, Apr 23, 2010 IP
  3. drknght

    drknght Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That's correct krsix - this is actually code from the Java 2D API - and would run as a Java applet.
     
    drknght, Apr 24, 2010 IP
  4. G-hamsteR

    G-hamsteR Well-Known Member

    Messages:
    268
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    125
    #4
    This code is Java or Python/Jython and not Javascript. I couldn't help you anyway, but I just wanted to let you know.
     
    G-hamsteR, May 8, 2010 IP