Results 1 to 4 of 4
- 04-24-2010, 05:03 PM #1
Member
- Join Date
- Aug 2009
- Posts
- 24
- Rep Power
- 0
using multiple methods for graphics
Hi everyone,
I am trying to create a java package that uses different methods to paint graphics onto the screen. I know all about paintComponent(Graphics g), but I'm trying to get it to work with different methods. I am totally lost :confused:
Can someone please help me with this?
Thanks,
Jordan
-
- 04-25-2010, 05:28 PM #3
Member
- Join Date
- Aug 2009
- Posts
- 24
- Rep Power
- 0
- 04-25-2010, 06:05 PM #4
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,143
- Rep Power
- 5
Well, then stick with what you know, because overriding the paintComponent() method is the proper way to do custom painting.I know all about paintComponent(Graphics g), but I'm trying to get it to work with different methods
Read the section from the Swing tutorial on Custom Painting.
Similar Threads
-
Trouble with static methods and boolean equals() methods with classes
By dreamingofgreen in forum New To JavaReplies: 8Last Post: 04-16-2012, 11:00 PM -
JDBC that multiple methods will use
By evermore in forum JDBCReplies: 3Last Post: 03-16-2010, 07:27 AM -
How to get methods to see variables in other methods
By ejs7597 in forum New To JavaReplies: 4Last Post: 04-03-2009, 06:36 AM -
text box listeners and returning multiple strings from methods
By int80 in forum New To JavaReplies: 5Last Post: 07-18-2008, 04:30 PM -
Trying to use Graphics draw methods
By Lang in forum SWT / JFaceReplies: 5Last Post: 03-26-2008, 05:49 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks