Page 1029 of 1703

Posted: Fri May 05, 2006 7:08 pm
by Ravager
[QUOTE=Lestat][url="http://ohsnap.ytmnd.com/"]This one[/url]'s for Rav.

And now I'm off to sleep.[/QUOTE]
Haha. Thanks so much. That made me jump... :rolleyes: :laugh:
Goodnight Lestat.

Posted: Fri May 05, 2006 7:10 pm
by shana
I jumped, too--my volume is waaayy too loud.

Posted: Fri May 05, 2006 7:13 pm
by Ravager
Glad it wasn't just me caught out then... :D

Posted: Fri May 05, 2006 7:14 pm
by werebeargoddess
So did I- I actually closed out of it, since I was surprised. :o

Posted: Fri May 05, 2006 7:23 pm
by Ravager
Hehe.

Haven't seen you around in a while...how are you WBG? :D

Posted: Fri May 05, 2006 7:29 pm
by werebeargoddess
pretty good- I had a bit of a fever, but it's getting better.

Posted: Sat May 06, 2006 2:29 am
by Gunofgod
The Stronghold needs to be bumped! *BUMP*

Posted: Sat May 06, 2006 2:32 am
by dj_venom
@WBG: Haven't seen you around SYM at all ;) , though I know you're not new. Hi!

@Gog: A man with a sense of right and wrong :p .

Posted: Sat May 06, 2006 3:49 am
by Ravager
[QUOTE=dj_venom]@Gog: A man with a sense of right and wrong :p .[/QUOTE]
Definitely...and I'll do the same... :p

Posted: Sat May 06, 2006 4:11 am
by dj_venom
How dare you bump this thread to the top of the list.

Posted: Sat May 06, 2006 4:12 am
by Ravager
How dare I? Well, I get to the thread, see it shamefully inactive then post to bump it, easy as that. :p ;)

Posted: Sat May 06, 2006 4:14 am
by dj_venom
I didn't ask how did you do it, I asked how you dared do it? :p

Hi Rav.

Posted: Sat May 06, 2006 4:19 am
by Ravager
I know, I just wanted to ignore the question and answer a better one. :laugh: ;)

Hiya! How are you?

Posted: Sat May 06, 2006 4:23 am
by dj_venom
We lost soccer 7-0 :( . Well, we were going alright until our keeper almost passed out, then we changed to someone who wasn't so good... :rolleyes: . 5 goals, all of them a result of poor keeping. But other than that, we went well considering...

Now, I'm java coding, and I have a question. It's to do with applets, and me having no idea how to do them. I have the code and all that is required, but I'm clueless as to implementing it. Also, I'm confused about Applet and JApplet? :confused:

Posted: Sat May 06, 2006 4:31 am
by Ravager
Ouch. Unlucky...

You need to write a little HTML file like the following (if you don't already have it):

Code: Select all

<HTML>
<APPLET code="Class name" WIDTH = 300 HEIGHT = 200 ></APPLET>
</HTML>
As for the JApplet/Applet...the JApplet is the fancier version using Swing stuff, if you haven't learnt about the Swing stuff yet, it's probably just worth leaving it alone for now...

Just looking through my own Java stuff actually, I have an exam in it on Monday.

Posted: Sat May 06, 2006 4:41 am
by dj_venom
I'll give you some more info. Our teacher, being the resourceful person, decided to make our assignment decoding some code she had stuffed up. However she simply copied some code off the internet. A quick search for the name of the game returns the first result of being the correct code :laugh: . So [url="http://www.sun.com/aboutsun/comm_invest/jgp/docs/camel_game.pdf"]here[/url] it is. The final few pages contain the applet code. However I have no idea how to actually get it to work.

And trust me, I'm fine with ignoring it. :D

Posted: Sat May 06, 2006 4:50 am
by Ravager
Heh. I'd still prefer your teacher over my lecturer or to be studying stuff like that over the advanced stuff I have been. :rolleyes:
So, you write that code, that's fine, save it and you should end up with a CamelApplet.java and CamelApplet.class file (among others depending on the used program). Then you write the HTML file in Notepad or something, make sure it's saved as a .HTML file, then you open that file using a browser which will display the applet.
Applets were always designed to be viewed on the Internet anyways.

There's also the shortcut code, add a line like this near the top, just under the imports: //<applet code=Classname.class width=500 height=400></applet>
(Change classname.class to CamelApplet.class etc)
But using the HTML way is the proper way...

Posted: Sat May 06, 2006 4:53 am
by dj_venom
So do I keep any of the original code that the applet file creates? Or do I simply overwrite all?

Code: Select all

/*
 * NewApplet.java
 *
 * Created on 5 May 2006, 09:27
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

package Templates.Classes;

/**
 *
 * @author 4302
 */
public class Applet extends java.applet.Applet {
    
    /** Initialization method that will be called after the applet is loaded
     *  into the browser.
     */
    public void init() {
        // TODO start asynchronous download of heavy resources
    }
    
    // TODO overwrite start(), stop() and destroy() methods
}
That's the original code in an Applet file... where do I place the code?

Posted: Sat May 06, 2006 4:53 am
by Greg.
Greetings people.

Liking the new avatar Ravachu... I have to say your white bunny was better, but still...

Posted: Sat May 06, 2006 4:55 am
by Ravager
@DJV, the original code is fine, you just need to create a new file which uses that code (the webpage html)

@Greg, thanks! :p
I'll probably go back to the bunny eventually.