This week's book giveaway is in the Other Languages forum. We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line! See this thread for details.
I am doing a program where I use a JWindow as sticky notes. I give each note and ID using code like this.
When I run some tests I get some of the ID numbers printed with a minus sign preceding the number. I would like to be able to not have a minus sign there. What should I do. Thanks.
posted 8 years ago
The real question is why are you using a random number generator to assign an ID? What happens if you happen to assign the same ID to two different objects. [ July 19, 2008: Message edited by: Garrett Rowe ]
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter