Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Read objects from Folder

Jet Beray
9 years ago May 25, 2012 5:39am
Charles Anthony
9 years ago May 25, 2012 6:39am

Hi,

Table#addItem creates an item, but does not set any properties on it. Those properties displayed as the contents of the column..

I think you'll want to do something like the following :

for(int i = 0; i < fileList.length; i++){
     Item item = table.addItem( fileList.getName() );
     item.getProperty("Name").setValue(fileList.getName());
        System.out.println(fileList.getName());
    }

Cheers,

Charles.

Last updated on May, 25th 2012
Johannes Häyry
9 years ago May 25, 2012 8:22am