Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help with JFrame program
 
Similar Threads
Drawing/moving problem: how to define destination? (code included)
DistanceFinder
Scrollbar not working
flicker in my program
Intersection points not being determined accurately- java awt