Buttons in Java [closed]

0

There is some way of styling or modeling a button on netbeans, I do not know if I explain myself. So the Button does not look with the simple style by default

    
asked by PartyHard 04.06.2017 в 03:39
source

2 answers

1

Yes, there are several ways, mainly you can try to change the LOOK AND FEEL of java, this will allow you not only to change the design of the buttons, but also windows, ComboBox, etc ...

Well the look and feel can be changed from the class that contains the JFrame, down to the main method and expand the hidden methods ... if you look well you will notice that it says "Nimbus" that is the LOOK AND FEEL by defect, try writing "Metal" instead of Nimbus ...: D (there are several more)

and the other can be customizing the Borders, changing background, using an OPAQUE button, putting an image on the button, etc, etc ... !!! luck

    
answered by 04.06.2017 в 04:24
0

If what you need are personalized buttons and you do not want to use lookanfeels you can take a look at these libraries that have many buttons and other very interesting graphic components one is edisoncorSx you can download it at the following link here or SwingX here

I hope that it helps you

    
answered by 04.06.2017 в 17:46