The Fourth Path

CSC203 Second Lab

Posted in Courses, NTU, Programming, Singapore by nmutiara on 2008/09/05

I spent a night without sleep because of finishing this thing!! The days before I was like sleeping the whole days and skipped all lectures and tutorials actually.

I was really really afraid that I’d get an F for this lab. I was nervous while waiting my lab work to be assessed. I thought the supervisor would suddenly approach me and give me hundreds of unbelievable questions about my code. I heard some other students commented “Good”, “Ok, good”, “Neat”, “Hao”, or “Exception here…” Ewwww! I was really really scared if exceptions occurred!

Ok, I had to check again. I have put the speed bar, the optimization as in the manual, applet version of my program, ComponentListener [for window resizing], opening and closing elevator door, and an image when the door was completely opened. Hmm… my only one Timer object didn’t seem to cause any problem. What else?

Oh yeah, I should not mention I couldn’t put the image in the applet [so I omitted it in the applet]. Also, somehow setForeground didn’t work in the desktop application version. So I had to change some colors… Ah, the speed bar seemed to have unnoticable effect when the speed was increased. But I’ve tried it in my own laptop and it worked very well! I suspected that problem was related with the CPU specification… [when the speed was increased, the Timer's delay was decreased]

And then, when the application window was resized,… I couldn’t imagine if there would be unexpected change in the coordinate values! Ahhhh!!!

Err… at least my program, hopefully, still worked… And I had something nice that was not included in the lecture notes. But I wasn’t sure if it’s nice though… :( My program was very crappy…

I waited until the lab session was almost over. I was wondering [for more than half an hour] why the supervisor didn’t approach me to check my code… And.. guess what? Actually the supervisor would approach me if I called him. *gubrak mode on*

So I called him lah. Then he saw my program. Fortunately, when he started to increase the speed of the elevator, I remembered telling him, “Sir, you can use your mouse wheel.” [ err sorry for my bad English hehehee :P ]

I thought MouseWheelListener would just be a simple feature that everybody could use. But anyway, my thought was wrong. He said that it’s a neat [neat or new? I'm not sure what he said anyway...] feature. And he would like to see my implementation regarding that feature. :D
[ stupidly, I didn't show him the method overriden... :( ]

Phew… At least there wasn’t any crazy question :)

Hearing his comment, I felt very excited. XD

Soon after that, I left the lab and also the next lectures.

[Note: I use java 1.6.0_03 in my lappy, while the lab uses the old 1.4.2]

Tagged with: , , ,

One Response

Subscribe to comments with RSS.

  1. silentknight20 said, on 2008/09/09 at 7:35 pm

    ck ck ck…
    aduh niaa..

    tobat donk XDD


Leave a Reply