after take a few days get famaly with hecl , i now dev a code editor .
now . i can edit the the editor source code and test it .
press left right to change page , up down to select line .ok to insert
text to current line .
s to save code , b to backup code , d to delete a line , y to copy a
line , p to paste a line , T to test current code .
it is base on canvas .
now i am dev a text editor using canvas replace the textbox .
I'm impressed! More later....
> is it possiable to test the code using computer ? write code using
> computer and test it on emulator ?
Yes, you can use the emulator included here:
http://www.oracle.com/technetwork/java/javame/downloads/sdk30-jsp-139759.html
Or, you can get Microemulator:
Which is quite good, and open source.
--
David N. Welton
private static void checkOffsetAndLength(int offset,int len,int max) {
if(offset < 0 || offset > len)
throw new ArrayIndexOutOfBoundsException("Invalid offset.");
if(offset+len > max)
throw new ArrayIndexOutOfBoundsException("Invalid length.");
that offset > len is ok. stringwidth $s offset len.
offset < 0 || offset >= max
second condition should be ok
--
Wolfgang Kechel mailto:wolfgan...@data2c.com
data2c GmbH http://www.data2c.com
Bierstadter Straße 7 Fax: +49-(0)611-1731-31
D-65189 Wiesbaden Phone: +49-(0)611-1731-611/+49-(0)174-3454260
Ok, I went ahead and committed that to git. Thanks for catching it,
方志 (I hope that prints ok), and the fix, Wolfgang.
The fixed version should show up as the latest build sometime tomorrow.