V
V
Volodar Znatsky2021-08-28 20:33:48
Java
Volodar Znatsky, 2021-08-28 20:33:48

How to create a window with nice rounded corners?

The following code makes the fillets pixel by pixel. Looks ugly

frame.setShape(new RoundRectangle2D.Double(0, 0, 880, 495, 30, 30));

The option to make the frame transparent and place a panel with rounded edges on it using Graphics tools did not satisfy due to the fact that the contents of the window "twitch". Defects appear
Can rounds be rendered smooth and nice, without pixels, using RoundRectangle2D? Maybe there are other options? In which direction to dig?))

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