Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » What is the correct way to resize a TableView?(How to resize tableView after content is updated.)
What is the correct way to resize a TableView? [message #1060549] Sun, 26 May 2013 15:47
Erwin Hogeweg is currently offline Erwin HogewegFriend
Messages: 37
Registered: July 2009
Member
Hi,

What is the proper way to resize a TableView? I am experimenting with resizing a tableView after entries are added or deleted.

The shell.layout() in the snippet below does what I want, but I wonder if there is an easier/better way to accomplish the same thing.

    public void setThingies(List<Thingy> thingies) {
        unselectAll();
        viewer.getTable().clearAll();
        this.thingies = thingies;
        viewer.setInput(thingies);
        shell.layout();
    }


Kind Regards,

Erwin
Previous Topic:What is the proper way to determine initial jface dialog size?
Next Topic:[2.1] add a project to multiuser workspace
Goto Forum:
  


Current Time: Thu Mar 28 18:22:42 GMT 2024

Powered by FUDForum. Page generated in 0.02930 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top