This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "help with JFrame program" Watch "help with JFrame program" New topic

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:
subject: help with JFrame program
It's not a secret anymore!