|
|
|
|
Re: Problem in Canvas Redraw [message #719971 is a reply to message #719947] |
Mon, 29 August 2011 15:26 |
Balaji Messages: 17 Registered: August 2011 |
Junior Member |
|
|
Thanks again Grant...
This time I tried in this way but the result is same.
Public GC gc; // ADDED NEW
{
...
gc = new GC(canvas); // ADDED NEW
...
...
canvas.addPaintListener(new StartScribble());
..
..
}
private class MYPAINT implements PaintListener {
public void paintControl( PaintEvent e) {
gc.drawRectangle(100,200 ,width,height);
// gc.dispose // REMOVED
}
}
[Updated on: Mon, 29 August 2011 15:29] Report message to a moderator
|
|
|
|
Re: Problem in Canvas Redraw [message #720195 is a reply to message #719971] |
Tue, 30 August 2011 05:42 |
Eclipse User |
|
|
|
Originally posted by:
On 2011-08-29 17:26, Balaji wrote:
> Thanks again...
> This time I tried in this way but the result is same.
>
>
>
> Public GC gc;
>
> {
> ..
> gc = new GC(canvas);
> canvas.addPaintListener(new StartScribble());
> .
> .
> }
>
> private class MYPAINT implements PaintListener {
> public void paintControl( PaintEvent e) {
> gc.drawRectangle(100,200 ,width,height);
> // gc.dispose
>
> }
> }
You have not really read Grant's description, which was very clear.
- Daniel Krügler
|
|
|
|
Powered by
FUDForum. Page generated in 0.04571 seconds