#Custom buttons

23 messages · Page 1 of 1 (latest)

swift chasm
#

can someone send me code for custom buttons or can instruct me hwo to make custom buttons

rapid valveBOT
#

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

#

<@&765578700724371486>

Requested by Nielsen#3534
heavy kestrel
#

It may help to name what kind of graphics library you're using

hard shuttle
#

@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.

swift chasm
#

i want to make the buttons rounded

#

but with application.css

#

i have seen people do that

hard shuttle
#

javaFX or Swing?

swift chasm
#

swing

hard shuttle
#

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.

swift chasm
#

thanks

quaint island
#

I may recommend you 1 youtube channel

#

wait

#
#

he has everything related with swing

#

just search for "button" and you will find some customization

swift chasm
#

oh ok

hard shuttle
quaint island
#

yea, he is skilled in swing