OK. After adding:
In console I get:
Label created javax.swing.JLabel[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=8388608,
maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,horizontalAlignment=LEADING,
horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=cats,verticalAlignment=CENTER,verticalTextPosition=CENTER]
Label created javax.swing.JLabel[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=8388608,
maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,horizontalAlignment=LEADING,
horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=cats,verticalAlignment=CENTER,verticalTextPosition=CENTER]
....
So I come to conclusion that the casting is the problem. I wonder if I can somehow extract "text" attribute or is it better to try to get back before I create an Array of Objects and try somehow to get my desired
string from LinkedHashSet?