L
L
Leshiy952017-04-20 19:13:34
Java
Leshiy95, 2017-04-20 19:13:34

How to dynamically draw elements in java using graphics2d?

In this example, I simply inherited the JPanel class and overridden the paintComponent method, please tell me how to add the ability to enter a point here and make it draw. I know how to add a button and an input field and get data from there, but how can I make the points draw dynamically?
598956724d7b480a80be9fcf605667a9.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question