2

How can I add a custom look to my buttons? I'm using Netbeans and programming in Java. I mainly want to customize my buttons.

1 Answer 1

2

Do you want to just change the look of the buttons or actually draw new buttons yourself? If you just want to change the appearance ot something a bit nicer, then you probably just want to change the look and feel as detailed here: http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html

There's also a number of 3rd party look and feel's you can use such as substance that look pretty swish.

If you actually want to customise the appearance of the JButton itself and you just want to customise the JButtons then you can override paintComponent() in JButton to draw whatever you want as oppose to the default image.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.