| Author |
is it possible to design your own background 4 jbuttons
|
john mattucci
Ranch Hand
Joined: Nov 03, 2000
Posts: 331
|
|
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
Joined: Oct 18, 2000
Posts: 4121
|
|
I got this to work... Here's the class.... And here's a tester to show how it works... Hope this helps, -nate
|
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
|
 |
john mattucci
Ranch Hand
Joined: Nov 03, 2000
Posts: 331
|
|
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
Ranch Hand
Joined: Jul 11, 2001
Posts: 15230
|
|
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
|
 |
 |
|
|
subject: is it possible to design your own background 4 jbuttons
|
|
|