how to color a button Tuesday, 09-Mar-99 16:35:34 207.172.206.232 writes:I tried setForeColor and setBackColor with Visual J++ (Microsoft) but that did not color my button (no bug either); any idea?
herve
Re: how to color a button Wednesday, 10-Mar-99 13:53:40 152.206.123.160 writes:Here are some examples:
btnX.setBackground(Color.white); btnY.setBackground(Color.gray); btnZ.setBackground(Color.green); MikeD
Re: Unfortunately, ... Wednesday, 10-Mar-99 14:42:29 207.172.207.223 writes:this does not work with Microsoft Visual J++. Instead of setBackground and setForeground, it has setBackColor and setForeColor. I typed
button1.setForeColor(Color.RED); but the button color did not changed !! herve
Re: Re: Unfortunately, ... Wednesday, 10-Mar-99 22:24:53 171.209.208.39 writes:You'll notice that my examples used setBackground(). If MS VJ++ doesn't use the standard Java API's, there's a problem. But you might want to try
btnX.setBackColor(Color.RED);
Setting the foreground color changes the color of any text that's on the button.
MikeD