|
-
December 5th, 2010, 02:48 AM
#1
Get array from JFrame class to Applet
Hi,
I'm writing an applet, where I have multiple instances of a JFrame class that all have mouseinputs. I use the JFrames to draw on and store the pixels values in an array within the JFrame class. My question is; how do I get this array of pixel values into my applet class? I've tried retreiving it by
array=jframeInstance.pixelarray
But the values returned are all zeros. The values are read into pixelarray in my class when I change pixelvalues with my mouse and i can print them out to my console inside the JFrame class.
Any suggestions or ideas are welcome!
Thanks!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|