The solution doesn’t really have anything to do with Java FX. Put your cursor where you want to put the getter/setter methods and then right-click menu->Insert Code… and pick creation of getter/setter methods.
Tom > On May 7, 2024, at 7:50 AM, PavelTurk <pavelturk2...@gmail.com> wrote: > > Hello all, > > Could anyone say how create property/getter/setter methods for JavaFX > property? > > For example, if I have: > > private StringProperty test = new SimpleStringProperty(); > > I want NB to generate: > > public StringProperty testProperty() { > return this.test; > } > > public String getTest() { > return this.test.get(); > } > > public void setTest(String test) { > this.test.set(test); > } > > I installed JavaFX plugin but I can't find how to do it. I tried Alt + INS -> > Add property but it seems that it can't do that. > > Best regards, Pavel > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org > For additional commands, e-mail: users-h...@netbeans.apache.org > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists