This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Canvas,SWT,addPainListener... questions  RSS feed

Oleg Glizerin
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am very new at java.
I want to understand what some functions do:
I am using SWT.

1)What (its a canvas function in SWT)

actually do? and how can i draw on it...

2)Lets suppose i have a canvas in my gui..
how would i get actions from user? for example, if he press arrow key, the function will bring some int, lets say 1 for up arrow, and 2 for down arrow key?

Thank you
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!