Java Swing: Rainbow border for a JComponent
问题 I'm currently designing a title screen for a game. When designing the logo I decided to go with a rainbow border around the edges: I figured after this I would like to implement the rest of my components on the title screen with a similar rainbow border (Specifically JButtons). While looking for ways to do this I came across the AbstractBorder class. My question is, is this even possible to do and if it is, What is the most effective way to use the Abstract border class to generate a rainbow