Added: 3 years ago
From: JavaAntiOne
Views: 9,699
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (28)

Sign In or Sign Up now to post a comment!
  • Works like a charm here. Thanks.

  • I can't open the compile one. :( Help!

  • michael jackson - billie jean

  • can someone send me the code if they have it working?

  • You need to explain what is going on.  It doesn't help anyone learn Java to just throw a code at them and tell them to compile it.

  • you are right. I am doing a java paint program for uni at the moment and need to add ann airbrush but its hard. and the thing with programming is you will have to find out what the code does for yourself. BUt i totally agree with you. Coz by coying code all you doing is deceiving yourself and when it comes to getting a programming job u screwed coz uve used other peoples code all your life.

    Peace = )

  • lol

  • WHOS SINGING THIS SONG? OMG IT ROCKS

  • michael jackson who else?

  • Awesome idk if its gonna work hope so  LOL

  • pathetic

  • rip mj

  • aww crap i got compile errors now it gonna take some time to sort out lol oh well i suppose it would be good

  • good tutorial, but ill tell you its far from a real paint.... i gave my final work at college yesterday and it was about 2000 lines of code. Its big and looks like a real paint almost.

  • nice music

  • Thanks for the tutorial

  • wheres the method definition for createimage() you call it but the method is not defined anywhere?

  • cant see a class file... o.0

  • couldnt you just paste the codes in description!

  • for me it doesn't create the "Brush1.class"

  • me niver

  • Good times! I did this in my Java class when I was in the 11th grade.

  • Could you post the whole sourcecode? Would make it easier

  • Are you sure than you did the alow part

    cheesycheesenugget

  • i know i posted it a while ago but my problem was that i didnt have a compiler

  • Hmmmmm,i think you have made something wrong i will see what i can do.

  • all i get when i open the html is a box with a paper and an x in the top left corner

  • Are you sure than you have make the alow part.cheesycheesenugget

  • yey

  • that is not a comment im sorry, but i will remove  that

  • ?  ,

  • public void update( Graphics g ){  g.drawImage( backbuffer, 0, 0, this); }

  • import java.applet.*;

    import java.awt.*;

    import java.awt.event.*;

    public class Brush1 extends Applet implements MouseMotionListener{ int width, height; Image backbufferl Graphics backg; public void init(){ width = getSize().width; height = getSize().height; backbuffer = createImage( width, height);

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more