File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes help with JFrame program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "help with JFrame program" Watch "help with JFrame program" New topic
Author

help with JFrame program

Adewale Adebusoye
Ranch Hand

Joined: Sep 28, 2005
Posts: 118
Hi..i have posted this problem before but i didnt get an appropriate answer..maybe i didnt explain it well enough.

i have to implement a draw method that MUST have this signature:

draw(Point p1, Point p2, Point p3, int n, JFrame, w).

I came up with this code:



Problem with this code is that it flickers when it draws the window. So can anyone help me get it working well..and at the same time adhere to the format of the draw method.
Personally..i could have done this another way but it has to be in this format. Thanks for helping..javaranch has never dissappointed!!!


"Human beings can alter their lives by altering their state of mind" William James
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: help with JFrame program