#Is there a way to add rounded boarder to frame

11 messages · Page 1 of 1 (latest)

quaint ridge
#

i want to add rounded corners to my java gui

shadow talonBOT
#

Hey, @quaint ridge!
Please remember to /close this post once your question has been answered!

runic frost
#

Are you using swing ?

quaint ridge
#

yes

quaint ridge
#

i mean't the actual frame

#

the java frame

#

and the rounded corners are pixelated

runic frost
#

Changing the shape of the actual JFrame is more complicated than you might think. It requires you to set JFrame#setUndecorated to true which basically means that you have to provide everything yourself. No movement, no close button, no maximise button and no minimise. You need to decide if you think its worth it to implement all this logic or if you can think of another way to solve your problem

quaint ridge
#

oh ok