[3695] in java-interest

home help back first fref pref prev next nref lref last post

Re: Awt.Component, paint and update in Beta1

daemon@ATHENA.MIT.EDU (michel meyer)
Wed Nov 22 12:56:09 1995

Date: Sun, 19 Nov 1995 22:01:28 -0100
To: Jonathan Payne <jpayne@starwave.com>
From: michel@mmania.com (michel meyer)
Cc: java-interest@java.sun.com

>I think it;s your Applet that's doign it.  Your canvas
>subclass isn't doing, but your Applet class is.  I could
>be completely wrong about this.  Try overriding paint and
>update in TestApplet or whatever you called it.
>
>
>

Ok, I thought of that and I tryed overiding paint and update of TestApplet.

class testCanvas extends Canvas {
	testCanvas () {
		setBackground(Color.pink);
		resize(50,50);
		}

	public void paint(Graphics g) {
		System.out.println("Canvas.paint");
		}

	public void update(Graphics g) {
		System.out.println("Canvas.update");
		}

	}

But no dice, it doesn't change anything.

And I tryed under Solaris, NT and 95, could it be the peer which is drawing ?

Michel (michel@mmania.com)

####################################################
## The (virtual) Baguette: http://www.mmania.com  ##
####################################################
##############################
#   MultiMania Production    #
#    1.rue de Paradis        #
#      75010 Paris           #
#    Tel: 45-23-08-19        #
#  E-mail: info@mmania.com   #
##############################


-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post