Hi all,
I tried to create a project with table item. my table have three columns, but the third column can not display, because the width of mobile screen just enough to display two column.
So, i want to create a vscroll, so user can pull this to see third column.
I has searched in internet, but i can not found the way to create a vscroll, my table just show hscrool.
Thanks for any help!
My code here:
[CODE]
if (myTable == null) {
myTable = new TableItem(getDisplay(), "mytable");
myTable.setModel(getMyTableModel());
}
if (myTableModel == null) {
myTableModel = new SimpleTableModel(new java.lang.String[][] {
new java.lang.String[] { "", "", "" },
new java.lang.String[] { "", "", "" },
new java.lang.String[] { "", "", "" },
new java.lang.String[] { "", "", "" },
new java.lang.String[] { "", "", "" },
new java.lang.String[] { "", "", "" },
}, new java.lang.String[] { "col1", "col2", "" });
}
[/CODE]