M
M
mr-ZA2019-07-11 01:33:34
Java
mr-ZA, 2019-07-11 01:33:34

Question on Java - swing?

Good evening, make me think not for the sake of crutches, but for the correctness of the implementation. In general, there is an image of the keyboard (I attach it below), I want the indicator to somehow circle this key in the picture at a certain point in time and compare it with what the user presses. Tried to create a grid around the image with

https://stackoverflow.com/questions/34036216/drawi...
, but it is not clear how to interact with a specific cell so that the program circles the desired key (any letter on the keyboard image). Tell me in which direction to at least dig, thanks

5d2667ba793ab110312368.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Cheremisin, 2019-07-11
@leahch

Why not take javafx? There you can quite use CSS to frame the label. Well, with events, it seems to me, it's easier there.
Actually, there is a suggestion, if on javafx, then make (draw) the keyboard in SVG, and show it either through webview, or through SVGPath, or even render through batic. Well, make an array with the coordinates of each button!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question