tan kian

Ranch Hand
+ Follow
since Apr 24, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by tan kian

the link is for j2se. i'm using j2me(j2me wireless toolkit ktoolbar) sadly.
17 years ago
i just copied the bit shifting off somewhere else as for nextInt, the method does not allow me to put any parameters in it, which was why i tried putting it when i created randcolor. i checked the API for that already. anyway i took out the numbers when i created randcolor and it works fine so far. thanks!!!
[ May 22, 2006: Message edited by: tan kian ]
17 years ago
havent tried it yet, but if i use that, wont it return a value more than 255?
17 years ago
i'm using this code to generate the color values, but it sucks =( everytime i open the emulator, it gives me the same color combination. i guess there must be something wrong with my code. can someone help? thanks.

17 years ago
stupid me i placed the repaint() in the wrong place haha got it working now
17 years ago
hi all, i want to draw out a different shape depending on what key the user pressed, but how do i draw outside of the paint() method? for example, when the user presses 1 on the handphone(emulator), i draw out a rectangle. i tried to check for the key been pressed in paint(), but its like paint() is only been called when the MIDlet starts up, and i can only press a key after everything has been drawn, so nothing gets drawn out.

17 years ago
oh..........stupid mistake haha. thanks =)
17 years ago
this is my class for a jlabel that implements ActionListener, but it doesnt seem to work at all =( can anyone tell me what i'm doing wrong?

17 years ago
i got these errors when i tried to run my code:

package javax.swing.* does not exist
package javax.swing.table does not exist
package java.awt.* does not exist

does it mean that j2me has no support for these pacakges???
17 years ago
is there any place on this forum to post J2ME related questions?
17 years ago
yeah i forgot to come here. its solved now.
17 years ago
i scaled an image, but i cant scale it back down >_< does anyone know how? i'm using AffineTransform.getScaleInstance for both scaling up and down btw.
17 years ago
hi all, i nd to have some sort of zoom function where i will enlarge the whole jtable and cells. i'm thinking of just setting the size by using jtable.setSize, but nothing happens. what am i doing wrong? and if the size of the jtable is succesfully set, what happens to the size of the cells? do they get increased in porpotion to the jtalbe as well?
17 years ago
every topic i searched on replied to the poster that he is reading it twice. i didnt know y before, but now i know the reason. =) thanks guys!!!
17 years ago