@edvin @ron Hi again, I almost finished doing, what i wanted, but there is another strange behavior - I want my model to have default value of Occupation. I just added this line
model.item = Occupation(InstrumentSet(Instrument("Nail"), Instrument("Hammer")), Activity("Have fun”)), but it causes an exception right after start
java.lang.Exception: Value has not been assigned yet!
at tornadofx.SynchronizedSingleAssign.getValue(Properties.kt:158)
at func.test.OccupationEditor.getInstrument2Model(Instruments.kt)
at func.test.OccupationEditor.access$getInstrument2Model$p(Instruments.kt:38)
at func.test.OccupationEditor$root$1$1$1$1$1$4.invoke(Instruments.kt:65)
at func.test.OccupationEditor$root$1$1$1$1$1$4.invoke(Instruments.kt:38)