#Custom buttons
23 messages · Page 1 of 1 (latest)
Hey, @swift chasm!
Please remember to /close this post once your question has been answered!
<@&765578700724371486>
It may help to name what kind of graphics library you're using
@swift chasm Hello, I have done this before in swing. In my case I wanted to add a gradient to the buttons in a JTable. Is your use case similar or are you looking for something different? Also, Keep in mind that Swing also has a thing called "mouse listeners" and with this you could have any icon or image be a button when clicked.
i want to make the buttons rounded
but with application.css
i have seen people do that
very similar tho
javaFX or Swing?
swing
This looks promising https://stackoverflow.com/questions/423950/rounded-swing-jbutton-using-java
The top post mentions creating a rounded border class that overrides the border. That's somewhat similar to how I overrided my button for a linear gradient. I don't see any reason why that would not work. If you scroll down there is also a post for paint component. Paint component is very useful for swing, Id try that second if the first one fails.
thanks
I may recommend you 1 youtube channel
wait
he has everything related with swing
just search for "button" and you will find some customization
oh ok
That is one of the youtubers I learned from. Very good!
yea, he is skilled in swing