Hi Tomas, I think I may have found a bug.
I type in a text area, something: "TESTING".
Then I get list of paragraphs, in this case its only one paragraph.,
segmentList = textArea.getDocument().getParagraphs().get(0).getSegments();
then I iterate over segments from this one paragraph
for (StyledText segment : segmentList) {
System.out.println("Start at " + styleStart + " and ending at: " + segment.length() + "for segment: " + segment.toString() + " with style" + segment.getStyle());
}
I get 4 print statements..
Start at 0 and ending at: 7for segment: TESTING with style-fx-font-family:Arial;-fx-font-size:16;-fx-font-weight:normal;-fx-fill:rgb(0,0,0);-fx-font-style:normal;-fx-underline:false;
Start at 0 and ending at: 7for segment: TESTING with style-fx-font-family:Arial;-fx-font-size:16;-fx-font-weight:normal;-fx-fill:rgb(0,0,0);-fx-font-style:normal;-fx-underline:false;
Start at 0 and ending at: 7for segment: TESTING with style-fx-font-family:Arial;-fx-font-size:16;-fx-font-weight:normal;-fx-fill:rgb(0,0,0);-fx-font-style:normal;-fx-underline:false;
Start at 0 and ending at: 7for segment: TESTING with style-fx-font-family:Arial;-fx-font-size:16;-fx-font-weight:normal;-fx-fill:rgb(0,0,0);-fx-font-style:normal;-fx-underline:false;
Hi Tomas, I think I may have found a bug.
I type in a text area, something: "TESTING".
Then I get list of paragraphs, in this case its only one paragraph.,
segmentList = textArea.getDocument().getParagraphs().get(0).getSegments();
then I iterate over segments from this one paragraph
I get 4 print statements..