Re: About JTextPane, Why "Not equal" ?
- From: "SadRed" <cardinal_ring@xxxxxxxxxxx>
- Date: 31 Mar 2007 02:00:47 -0700
On Mar 31, 5:14 pm, "Andrew Thompson" <andrewtho...@xxxxxxxxx> wrote:
On Mar 31, 6:08 pm, "SadRed" <cardinal_r...@xxxxxxxxxxx> wrote:
On Mar 31, 4:50 pm, "Red Orchid" <windfollowcl...@xxxxxxxxx> wrote:
See this code.
I prefer SadRed's SSCCE (I had prepared one
of my own, but SR beat me to the punch!).
..
...I expected that "true" is printed. But the code above prints "false".
It does print "true".
Not here. Using your code (or mine),
Java 1.6.0, on WinXP, I get 'false'.
I suspect it has something to do with the 'null'
character attribute set, but am not sure.
What OS/Java are you running?
Andrew T.
Linux + Java 1.6.0
Were your two string different on print out?
.
- Follow-Ups:
- Re: About JTextPane, Why "Not equal" ?
- From: Andrew Thompson
- Re: About JTextPane, Why "Not equal" ?
- References:
- About JTextPane, Why "Not equal" ?
- From: Red Orchid
- Re: About JTextPane, Why "Not equal" ?
- From: SadRed
- Re: About JTextPane, Why "Not equal" ?
- From: Andrew Thompson
- About JTextPane, Why "Not equal" ?
- Prev by Date: Desktop Java app: 3D photo-sharing
- Next by Date: Re: Jframe
- Previous by thread: Re: About JTextPane, Why "Not equal" ?
- Next by thread: Re: About JTextPane, Why "Not equal" ?
- Index(es):
Relevant Pages
|