This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hello..im trying to implement method called draw1() to draw recursive shapes. Since its for an assignment the function has to be in this format
draw( Point p1, Point p2, Point p3, int n, JFrame w)
My main problem is passing the JFrame as an arguement to this method. How can i draw on JFrame w since im passing it as an arguement? Please help. I mean i know i got to use paintComponent() but i cant access it directly from JFrame w. And im not sure if i can use Graphics g anywhere other than paintComponent(). Thanks
"Human beings can alter their lives by altering their state of mind" William James