#JavaFX TextArea ObservableList

9 messages · Page 1 of 1 (latest)

nocturne cairn
#

I’ve got a TextArea from JavaFX, and I’m getting the lines from the ObservableList the getParagraphs returns

Is there any way to check if the item in the list is just the new line?
Getting the size of a “blank” line returns 1, which is not what I need, I need 0 for that

I’ve been looking at this for the last half hour, I can’t figure anything out on it
I can’t even figure out what exactly the blank line’s contents is, it just prints empty.

hearty epochBOT
#

This post has been reserved for your question.

Hey @nocturne cairn! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

lime agate
nocturne cairn
#


How did I not see that method
That ALONE fixes this issue

#

It ends up being c.getList().get(i).toString().isEmpty()

lime agate
#

Ah

nocturne cairn
#

Thank you so much @lime agate !

lime agate
#

Np