Results 1 to 3 of 3
Thread: polygon-shaped JComponent
- 11-04-2008, 05:45 PM #1
Member
- Join Date
- Nov 2008
- Posts
- 2
- Rep Power
- 0
- 11-04-2008, 05:54 PM #2
If i understand correctly you could have a Polygon interface where you define common values that every polygon will have(like sides,area, etc). From there i'm not really sure. Hope that at least gets you in the water
- 11-04-2008, 06:06 PM #3
Don't know if JComponents can be other than rectangular. I assume that part of the reason for trying to extend JComponent is so that the component will draw itself when in a container.create a class that extends JComponent, but that has any polygonal shape
Perhaps you want to create a lightweight component with its own methods and attributes.
Similar Threads
-
Random Points inside a Polygon
By nidhirastogi in forum Advanced JavaReplies: 1Last Post: 09-23-2008, 03:28 AM -
Ring Shaped Shell in SWT
By Java Tip in forum SWTReplies: 0Last Post: 07-25-2008, 02:28 PM -
How to Fill a Polygon in Java
By Java Tip in forum java.awtReplies: 0Last Post: 06-22-2008, 11:10 PM -
How to Draw a Polygon in Java
By Java Tip in forum java.awtReplies: 0Last Post: 06-22-2008, 11:09 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks