Hello:
Where can I found Documentation about Database Vaadin User Graphical Interface ?
(Tutorials, code examples …)
Regards,
Hello:
Where can I found Documentation about Database Vaadin User Graphical Interface ?
(Tutorials, code examples …)
Regards,
What do you mean by “Database Vaadin User Graphical Interface”?
Sample code Retrieve rows from mysql to JTable (Swing)–> How to… in Table class Vaadin ???
…
SQLQuery = "SELECT TOP 5 * FROM "+tableName;
Vector dataSet = dbUtils.executeQuery(SQLQuery);
table = createTable(colNames,dataSet);
…
protected JTable createTable(String colNames,Vector dataSet){
int nRows = dataSet.size();
String
rowData = new String[nRows]
[colNames.length]
;
for(int i=0;i<nRows;i++){
Vector row = (Vector)dataSet.elementAt(i);
for(int j=0;j<row.size();j++)
rowData[i]
[j]
=((Object)row.elementAt(j)).toString();
}
JTable table = new JTable(rowData,colNames);
return table;
It is related to http://vaadin.com/forum/-/message_boards/message/82265#_19_message_83845
I hope you understand me…
Regards