E
E
Egor Lepikhin2019-12-20 15:31:18
Java
Egor Lepikhin, 2019-12-20 15:31:18

How to draw a nested Jpanel through the paint method in Java Swing?

I need to make a small app where some background will have multiple dials with changing values.
I can arrange these dials using GridBagLayout, but I do not know how to make a background image for the panel in this case.
I can also draw this background image manually through the paint method, but in this case I don’t know how to draw these dials (they are JPanel).
In extreme cases, you can draw everything in one paint method, but it will be just monstrous

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