Once you enter my blog: Smile, or else...

Tuesday, June 15, 2010

Testing 1, 2, 3 (:

Hey There!

Hehe, so happy today. (:

Anyways, I've been testing java for the past hours trying to remember how to use java bean. So, I tested all the function for my last sem project, though i didn't test the change panel function cause correcting the error would take alot of time so I skipped that. Anyways, this is the results for today's self testing (:

So, like how Jun Wei teach me last sem. We used double label. One we put as image, the other as text and ~Tadaa!~, you get a button that says, "Hello" (: . The button, nice right? (: Jun Wei did it himself, I just use it for example.


So after that, I tried with mouseEvent for the label as a revision. And I used that to print out something. Haha, if Jia Jun sees this, he is going to hit me. The output is kinda naughty, I wanted to disturb Jiajun so I critisized his favourite Katekyou Hitman Reborn Anime. Hehe, the anime is nice though, since I watch it too. (:


So basically, I'm going to show this to my team tmr. Its seriously simple. They should be able to do it themselves. Especially Jiajun since he was my project member last sem, so he should know. Well, those who know coding and want to try this can do so. The text of the second label is set as white so thats why it can see through. You have to call in the "Hello" label first before the picture label. If not, the word can't be seen. So its like,

jContentPane.add(jLabelHello, null);
jContentPane.add(jLabelPicture, null);

Lol, who am I kiding right? Those who are reading this might even be better at Java than I do. I'm still a baby in Java (:

Well, tired ah!~~~ So take care (: