Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Java applets

Name: Anonymous 2007-06-01 19:18 ID:yPagbrMh

can someone help me maybe? i need to test some applets we're working on in class, but i can't remember the HTML code to launch an applet. there was one given to us in class, it was three lines at the beginning and end (opening and terminating command type things), with a line where we put the name of the applet in the middle.

Name: Anonymous 2007-06-01 19:22 ID:yPagbrMh

whoops, nevermind, my editing environment thingy makes it for me. thanks anyway /prog/, i'm sure you would have pulled through

Name: Anonymous 2007-06-01 19:29 ID:r3FvkLGk

JFGI

Name: Anonymous 2007-06-01 21:13 ID:yPagbrMh

whats that mean (JFGI)?

anyway, i got another question, if anyone feels like helping. how the fuck do you animate using "repaint();"? i have two classes, one of which contains the actual code to draw  my objects (stick figures) as a void (void draw), and another that creates the object and calls the "draw();" function. this is the class that i must animate in.

to this end i have created another void command (in the stick figure class) that changes the coordinates to draw the stick figures (void move();). this command is also used in the other class (not StickFigure), in the paint(); command

my problem is that, without using repaint(); (and instead just using a for loop with move(); and draw(); commands), all my objects leave trails of themselves (and my stick figures make big blocks), because the screen never clears. when i do use repaint(); , any of the stick figures i move don't appear at all, and the others are afflicted with a nasty flicker.

if someone can link me to that neat site where you can upload code (i lost the link when i had to reinstall firefox), i'd be very appreciative, and could probably give a better idea of my problem. thanks in advance for any help.

Name: Anonymous 2007-06-01 21:17 ID:r3FvkLGk

JFG JFGI

Name: Anonymous 2007-06-01 21:19 ID:KukeuGKC

JFGI

Name: Anonymous 2007-06-01 21:21 ID:yPagbrMh

i did, can't find shit. it took me a half hour just to find the API file for repaint();, and that wasn't any help. i figure somebody here must know this (this is an introductory java course...).

Name: Anonymous 2007-06-01 21:58 ID:RqG8LKdj

10 DRAW
20 MOVE
30 ERASE ORIGINAL
40 GOTO 10

Name: Anonymous 2007-06-01 22:00 ID:yPagbrMh

yes, but HOW do i erase the original? i have to use repaint(); and the dual class setup, that's the point of the exercise.

Name: Anonymous 2007-06-01 22:09 ID:yPagbrMh

is there a way to use repaint(); outside of the objects paint function? (i think) the problem i have is that whenever i try to do that, it won't compile, and when i do include repaint(); inside of the paint command, it created a type of infinite loop, and produces all the effects i am trying to avoid (flickering of still images and the vanishing of any moving ones).

Name: Anonymous 2007-06-02 1:38 ID:Heaven

Stop using Java.

Name: Anonymous 2007-06-02 5:43 ID:Heaven

Name: Anonymous 2007-06-02 15:58 ID:2btkMbJU

>>12
i'd like to thank you, but i have no idea what anything on that link means. seeing as the rest of the front page is pretty much all spam, i figured i might bump this, in hope of not failing this assignment.

Name: Anonymous 2007-06-02 16:29 ID:Heaven

Stop using Java. Seriously.

Name: Anonymous 2007-06-02 18:13 ID:2btkMbJU

It's for a class (school) assignment. Seriously.

Name: Anonymous 2007-06-02 19:39 ID:Heaven

>>15
Drop the class. Seriously.

Name: Anonymous 2007-06-03 0:00 ID:Heaven

>>13
if you can't figure how to do it from that page, you shouldn't be anywhere near a computer.

Name: Anonymous 2007-06-03 0:08 ID:DZ7ELQFI

how to use repaint():
ClassThatHasRepaint.repaint();

i wait your reward of 50 internets in my electronic mailbox.

Name: Anonymous 2007-06-03 14:23 ID:ce/HDopZ

thanks, but i already knew that... i've advanced further toward getting this thing to work, i think, and but still have pretty much the same problem

    public void paint (Graphics page)
    {
        figure1.draw (page);
        figure2.draw (page);
        figure3.draw (page);
        figure4.draw (page);
        figure1.move(1,0);
        figure2.move(-1,0);
    }
   
    public void animate()
    {
        for (int time = 0; time <50; time++)
        {
            repaint();
        }
    }

this doesn't work. i have no idea why.

Name: Anonymous 2007-06-03 16:33 ID:zEQtam1C

>>19
use threads

Name: Anonymous 2007-06-03 16:35 ID:ce/HDopZ

>>20
hat are threads?

Name: Anonymous 2007-06-03 18:11 ID:Heaven

Hats are made of thread, yes.

Name: Anonymous 2007-06-03 18:28 ID:iz6SIrED

>>4
Jewish Federation of Greater Indianapolis

Name: Anonymous 2007-06-03 20:33 ID:1RsmxA0p

Asshats subclass both hats and anus

Name: Anonymous 2007-06-03 21:41 ID:ce/HDopZ

>>19
>>20
WWWWWWWWWhat are threads?

Name: Anonymous 2007-06-03 21:43 ID:Heaven

>>25
You're a Java programmer, Java programmers don't know the essentials of programming and OSes, so don't worry about it! :)

Name: Anonymous 2007-06-03 21:51 ID:ce/HDopZ

>>26
this is a fucking high-school class. i'm not an ANYTHING programmer. somebody here has gotta know.

Name: Anonymous 2007-06-04 1:16 ID:NU+G7G0d

I think it's the embed tag or applet tag. google it.

Name: Anonymous 2007-06-04 13:49 ID:BXW//SSi

If you don't understand the page that has been linked. We can't help you. You obviously don't know what the fuck to do in general in Java.

Name: xfnxbff 2007-06-04 19:35 ID:z2SrntHr

Name: Anonymous 2007-06-04 20:08 ID:XpVwrqeu

I'd fuck princess Ruto.

Name: Anonymous 2007-06-05 9:37 ID:ZZmkgWo0

>>31
and drink her salty cum right off her slit underwater

Name: Anonymous 2007-06-05 17:16 ID:XKD1NyOn

>>31
Hmmm... I always wondered if she'd be nasty in bed, she gives me kinky vibes. Every time I play Zelda 64 I have to stop after saving her to fap to Princess Ruto lemon fanfiction and hentai.

Name: Anonymous 2009-01-14 14:17

BBCODE Failure

Name: Anonymous 2009-08-16 23:08

Lain.

Name: Anonymous 2011-02-03 3:45

Name: Anonymous 2011-02-03 8:05

Name: Anonymous 2011-02-04 16:11

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List