Re: About JTextPane, Why "Not equal" ?



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.

.



Relevant Pages

  • Re: Focus on a frame
    ... no problems getting focus (Win XP, Java 6) ... to the second of three JFrames using ... Can you provide an SSCCE that shows ... Andrew T. ...
    (comp.lang.java.programmer)
  • Re: eclipse & java 5
    ... I'm not Andrew. ... I have not installed the Sun JDK on my new FC4 on AMD64 ... box for fear that it might mess up the Java stuff from FC4. ... >!MESSAGE Missing required bundle ...
    (Fedora)
  • Re: eclipse & java 5
    ... > I'm not Andrew. ... I have not installed the Sun JDK on my ... > box for fear that it might mess up the Java stuff ... For instructions about how to install the last version ...
    (Fedora)
  • Re: Fastest way to run DELETE on a large table
    ... First off I know little of Java and hope to never have to use it again. ... Andrew J. Kelly SQL MVP "Reik" wrote in message ... > SET ROWCOUNT 200 -- Or what ever your system can handle> ...
    (microsoft.public.sqlserver.programming)
  • Re: Time to ditch "SSCCE"?
    ... > used, it was by Andrew himself, and c.) in most instances where Andrew ... "SSCCE" has failed to enter the programmers' lexicon. ... > "SSCCE" does not roll off the tongue, like a pronouncable acronym ... > Although I have no specific suggestion for a replacement, ...
    (comp.lang.java.programmer)