Re: About JTextPane, Why "Not equal" ?



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?

.



Relevant Pages

  • Re: Java and Linux environment
    ... I've a Java application that allows to perform a Linux system via ... Runtime.exec(string). ... My problem is that during the syscall the Linux environment is unknown, ...
    (comp.lang.java.help)
  • Re: Why no SSCCEs?
    ... posting code *answers*, since I do not recall you asking ... code involving external Java packages, including JMF, ... groups asking how to solve basic problems for which an ... SSCCE is impractical or impossible. ...
    (comp.lang.java.help)
  • Re: java.lang.runtime.exec cannot resolve symbol
    ... >>>a very short snippet, or an SSCCE. ... but it's misunderstanding like this that call for a group FAQ ... and no that wasn't a troll. ... > in the Java mini-FAQ posted regularly to this, ...
    (comp.lang.java.programmer)
  • Re: nullPointerException in abstract class
    ... You might have seen this as worth mentioning in the first place. ... Had you provided an SSCCE that would ... Perhaps I should rethink this with Java; ... Generally, the very least you should do is show every line in the stack trace up to the point where *your* code is mentioned, and then present that entire section of your source code. ...
    (comp.lang.java.programmer)
  • Java and Linux environment
    ... I've a Java application that allows to perform a Linux system via ... Runtime.exec(string). ... My problem is that during the syscall the Linux environment is unknown, ...
    (comp.lang.java.programmer)