dcsimg
Colored buttons on a Mac?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Bob_Somerville
Posted On:   Wednesday, May 9, 2001 03:52 AM

I am unable to produce colored buttons on a Mac but not a PC. Can anyone comment on the applet below?

import java.awt.*;
import java.awt.event.*;
import java.applet.*;
public class OneButton extends Applet {

public void init(){
Button testBut = new Button("BUTTON");
testBut.setBackground(Color.blue);
testBut.setForeground(Color.red);
add(testBut);
}
}
On a PC it produces a button with a red foreground and blue backgound. On a mac the button is gray on gray.

About | Sitemap | Contact