This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes How do i add a circles without the black corners Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How do i add a circles without the black corners" Watch "How do i add a circles without the black corners" New topic
Author

How do i add a circles without the black corners

frank van schie
Greenhorn

Joined: May 16, 2011
Posts: 7
How do i add a circles without the black corners?

the setBounds(int,int) method creates a square (or rectangular) shape meaning overlapping circles display a small corner.

i tried setting the foreground and/or background color to null and to the actual background.
is there a way to set the colour of setbounds to transparent or something?

frank van schie
Greenhorn

Joined: May 16, 2011
Posts: 7
Try to set the background opaque



like that
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do i add a circles without the black corners
 
Similar Threads
Help in Algorithm Construction
cannot draw graphics
adding graphic objects to JPanel
board not Drawing...
Non-static variable cannot be referenced from static context