jQuery in Action, 3rd edition
The moose likes Swing / AWT / SWT and the fly likes draw rect problem? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "draw rect problem?" Watch "draw rect problem?" New topic

draw rect problem?

nick cheng

Joined: Oct 31, 2004
Posts: 11
public void paint(Graphics g) {
if (!buffered){
buffer = createImage(50, 50);


bufferG.drawRect(0, 0, (int) imageSize.getWidth(),
(int) imageSize.getHeight());

in this Applet file ,i set the background colour is "black" in void init()
,then i set some images one the surface,and last i use double buffer draw a rect image,but when i draw the image,the rect become ,a black solid rect ,how to make it become tranparent?
I agree. Here's the link: http://aspose.com/file-tools
subject: draw rect problem?
It's not a secret anymore!