My question: I have two button (either Swing or JavaFX, no matter) new JButton("Text"); and new JButton("Line");
By selecting the "Text" button and clicking on a XYChart I would like to write my custom text via keyboard typing;
By selecting "Line" button I would like to be able to draw lines on XYChart.
How to accomplish these tasks?
Any help greatly appreciated.
Thanks