File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is it possible to design your own background 4 jbuttons

 
john mattucci
Ranch Hand
Posts: 331
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was wondering if it was possible to design
a background for JButton; that way I can use
it as a parameter to setBackground. Because I
want to design a metal look and place this as
backgroung rather than using the plain colours
eg black, red. And also I dont want to use setIcon
because I would like to place an Icon on top eg
an arrow for previous or next
Thank u for your time
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got this to work...

Here's the class....


And here's a tester to show how it works...


Hope this helps,
-nate
 
john mattucci
Ranch Hand
Posts: 331
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank u so much for your time
Yesterday I went to this site http://www.izforge.com/izpack
and downloaded free software and I was really impressed with his
L & F . At first I thought he used a gif for his buttons ,but when I unzipped the jar there was no gif that matched his background for his buttons. Would someone have a minute to look at the programme? Is there a L& F which produces such an affect or is it something he customized himself.
Thanx s again
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following was taken from the creators source code. It is on your hard drive in the folder where you installed the program. This came from the file "installer.java".


------------------
Happy Coding,
Gregg Bolinger
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic