paintComponent(Graphics g) SWT version??

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

paintComponent(Graphics g) SWT version??

Postby goyduyudu » Tue Dec 27, 2005 12:06 pm

I need a method ==>paintComponent(Graphics g)
this is a method of swing JComponent class..do you know a method like this one in swt?????
goyduyudu
 
Posts: 2
Joined: Tue Dec 27, 2005 12:01 pm

Re: paintComponent(Graphics g) SWT version??

Postby Eric Clayberg » Tue Dec 27, 2005 12:32 pm

goyduyudu wrote:I need a method ==>paintComponent(Graphics g)
this is a method of swing JComponent class..do you know a method like this one in swt?????

General questions about SWT should be posted to the Eclipse SWT newsgroup.

There is no equivalent method in SWT. You need to add a PaintListener to your widget and do you painting in the paintControl() method of your PaintListener.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby goyduyudu » Tue Dec 27, 2005 1:57 pm

thank you it works...........
goyduyudu
 
Posts: 2
Joined: Tue Dec 27, 2005 12:01 pm


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest