int myInt = (Integer.parseInt(jtextfield1.getText().trim()));
As there is a getText() method available to the jTextPane class via
inheritance, you should be able to use a similar technique.
There's a fair amount going on here: The trim() method removes any leading
and trailing spaces from the string in the object, then the trimmed text is
returned and used as the argument to the parseInt() method, which will
convert the string to an integer using standard Java conversion rules and
store the result in myInt.
HTH!
"Jordi Maycas" <come...@todo-pc.com> wrote in message
news:3e0c67ec$1...@newsgroups.borland.com...
"Peter van der Goes" <pv...@nospam.att.net> wrote in message
news:3e0c...@newsgroups.borland.com...
And Merry Christmas & Happy New Year.
"Peter van der Goes" <pv...@nospam.att.net> escribió en el mensaje
news:3e0c7eba$1...@newsgroups.borland.com...