Click here to Skip to main content
15,888,610 members
Home / Discussions / Java
   

Java

 
QuestionError Diplaying TIFF in Applet through JSP Pin
riteshsv17-Nov-08 23:37
riteshsv17-Nov-08 23:37 
QuestionCreating Vectors Pin
sudany_zool14-Nov-08 23:01
sudany_zool14-Nov-08 23:01 
AnswerRe: Creating Vectors Pin
toxcct16-Nov-08 21:42
toxcct16-Nov-08 21:42 
QuestionHow do i go about doing this Pin
nothingfights13-Nov-08 8:20
nothingfights13-Nov-08 8:20 
AnswerRe: How do i go about doing this Pin
toxcct13-Nov-08 21:46
toxcct13-Nov-08 21:46 
AnswerRe: How do i go about doing this Pin
Naruki3-Dec-08 17:15
Naruki3-Dec-08 17:15 
Question[Message Deleted] Pin
Saturday3AM12-Nov-08 9:47
Saturday3AM12-Nov-08 9:47 
QuestionPolygon Union Pin
bangbangbogi9-Nov-08 19:24
bangbangbogi9-Nov-08 19:24 
Hi to all, I need some help in getting the union of of 2 interacting polygons.

Currently I have managed to draw 2 polygons p1 and p2, and I got stuck on getting the unions between the 2 polygons. I have tried using the java.awt.geom, but later realized that the geom package can only be used for regular shapes.

This is part of my code:

Polygon p1 = new Polygon();
for (int i = 0; i < 5; i++)
p1.addPoint((int) (200 + 50 * Math.cos(i * 2 * Math.PI / 5)),
(int) (100 + 50 * Math.sin(i * 2 * Math.PI / 5)));

g.drawPolygon(p1);

Polygon p2 = new Polygon();
for (int i = 0; i < 5; i++)
p2.addPoint((int) (160 + 50 * Math.cos(i * 2 * Math.PI / 6)),
(int) (60 + 50 * Math.sin(i * 2 * Math.PI / 6)));

g.drawPolygon(p2);

Please help. Thanks.
Question[Message Deleted] Pin
trump1016-Nov-08 11:47
trump1016-Nov-08 11:47 
AnswerRe: Help with java programming Pin
toxcct6-Nov-08 21:47
toxcct6-Nov-08 21:47 
GeneralRe: Help with java programming Pin
TannerB7-Nov-08 8:40
TannerB7-Nov-08 8:40 
GeneralRe: Help with java programming Pin
toxcct8-Nov-08 0:03
toxcct8-Nov-08 0:03 
GeneralRe: Help with java programming Pin
TannerB8-Nov-08 7:46
TannerB8-Nov-08 7:46 
GeneralRe: Help with java programming Pin
HosamAly19-Nov-08 6:23
HosamAly19-Nov-08 6:23 
QuestionNeed a tad of help [modified] Pin
TannerB3-Nov-08 8:43
TannerB3-Nov-08 8:43 
Questionexe file Pin
sunil_jvfrm1-Nov-08 1:55
sunil_jvfrm1-Nov-08 1:55 
AnswerRe: exe file Pin
toxcct1-Nov-08 3:52
toxcct1-Nov-08 3:52 
AnswerRe: exe file Pin
jrsk1-Nov-08 23:20
jrsk1-Nov-08 23:20 
AnswerRe: exe file Pin
lixiqiang4-Nov-08 20:24
lixiqiang4-Nov-08 20:24 
Questionproject doubt Pin
ramakrishnudu31-Oct-08 8:29
ramakrishnudu31-Oct-08 8:29 
QuestionSet Represntation, please help !!!!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
sudany_zool29-Oct-08 16:19
sudany_zool29-Oct-08 16:19 
AnswerRe: Set Represntation, please help !!!!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
daniel_at_work2-Nov-08 22:21
daniel_at_work2-Nov-08 22:21 
QuestionHow to find the coordinates of a JList item Pin
nkadivar29-Oct-08 11:50
nkadivar29-Oct-08 11:50 
QuestionCompiling Java Code Pin
Kevin Marois29-Oct-08 6:29
professionalKevin Marois29-Oct-08 6:29 
AnswerRe: Compiling Java Code Pin
nkadivar29-Oct-08 11:52
nkadivar29-Oct-08 11:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.