JavaFX Tip 4: Have the Final Word
When developing custom controls for JavaFX I would highly recommend to follow in the footsteps of the core JavaFX controls and to make the API of your controls as final as possible and to put the "final" keyword in front of all your method declarations. Example In FlexGanttFX I have a lot of code that looks like this: public final Activity getActivityAt(double x, double y) { ... } public final Row getRowAt(double y) { ... } public final void setShowLinks(boolean show) { ... } Why? When you design a control you have a specific behaviour of the control in [...]