• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SWT - grid/matrix with selection

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am trying to find the best way to implement the following in SWT:

I need to have a grid with elements, that the user can select, optimally by click and drag.

Imagine I have a grid / matrix of 15x10 elements. The user should be able to start dragging from one element towards another, and select a range. Then if the user wants to add extra elements to the selection, can click pressing ctrl at the same time, to form a group of elements.

I have tried doing something like that with a table, but I am not sure it is really what I need...

Can you suggest an implementation and provide some code examples maybe?

Thanks!
 
reply
    Bookmark Topic Watch Topic
  • New Topic