polygon « Graphics « Java Swing Q&A





1. java swing : Polygon fill color problem    stackoverflow.com

Could any body diagnose the problem I am facing? As you run the demo you can see the middle part left blank, I need to fill the entire area..

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import ...

2. How to draw an incomplete Polygon using Java    stackoverflow.com

What I am looking to do is to draw an incomplete polygon using Java. I have figured out how to draw only the polygon in one shot, or even fill the ...

3. exception on drawing polygon using java swing    stackoverflow.com

hey i am writing a simple java swing program. but when i draw the frame with polygons drawn from a for loop an exception occurs. the for loop:

for (int i=0;i<k;i++)
  { ...

4. Polygon lasso drawing    coderanch.com

I am trying to use Java to implement a feature that is very like to polygon lasso tool in any image processing software, like FireWords, PhotoShop. Basically, when a user clicks the polygon lasso icon I provided, he is ready to start to draw a polygon lasso. When he clicks anywhere in a drawing area, a dot will show up there; ...

5. Trying to draw Polygon to no avail    coderanch.com

This is kind of embarrassing but for some reason I'm getting this error message:"The method add(int, int) is undefined for the type Polygon". Its annoying because I know it must be something small but I can't figure it out. Any help would be appreciated import javax.swing.* ; import java.awt.* ; import java.awt.event.* ; public class KanjiInterface extends JFrame { JMenuBar menuBar ...