• 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

Modify the height of rows in swt Table

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

I am fetching how can i modify the height of rows in swt Table.

I used this code :

table.addListener(SWT.MeasureItem, new Listener() {
public void handleEvent(Event event) {
event.gc.setLineWidth(varWidth);
event.height = varHeight;
}


but the problem is that i can just increase the height of rows but not decreasing it.

Can someone help me!


Thanks
 
Marshal
Posts: 79493
379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please read the important administrative private message I just sent you.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This problem is cited as bug in Eclipse:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=154341

Below the source code of the method org.eclipse.swt.widgets.Table#sendMeasureItemEvent



if (event.height > getItemHeight ()) setItemHeight (event.height);


In my opinion, we can only increase the size of the cell.


For more information, see the link below:

http://dev.eclipse.org/newslists/news.eclipse.platform.swt/msg43861.html
 
Sheriff
Posts: 22790
131
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Read the private message Campbell sent you again. The issue is still not resolved.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic