Printable View
Hi everyone, I am trying to insert some unicode into a JTextPane document but i have a concern as to whether the unicode will be recognized on other platform besides windows. This is what i did Code: StyledDocument.insertString(TextPane.getCaretPosition(),"\u25CF" + " ", null); Will my above code be recognised on other platforms besides windows because of the unicode that i am inserting? Any help is greatly appreciated Thank You Yours Sincerely Richard West
StyledDocument.insertString(TextPane.getCaretPosition(),"\u25CF" + " ", null);
If you replace the space character (" ") with an unicode then your code will be work fine everywhere.