DataDisplayTable STATBEAN®

 

Purpose: Displays the data contained in a DataSource StatBean. Allows Statgraphics to perform data tabulation.

DataSource: any. 

datadisplaytable

Read/Write Properties

Name Type Description Possible Values Default Value
columnNames String array The names of the columns to be analyzed. One or more strings. {"*"}
numberOfRowsInDisplay int The number of rows to be displayed in the table. 1+ 10
numberOfColumnsInDisplay int The number of columns to be displayed in the table. 1+ 4

Other properties are inherited from the java.awt.Panel class and from the general TabularStatbean class.  



Code Sample 

//create the FileDataSource bean 
FileDataSource fileDataSource1 = new FileDataSource(); 

//create a bean to display the data 
DataDisplayTable dataDisplayTable1 = new DataDisplayTable(); 
dataDisplayTable1.setBackground(Color.yellow); 

//set the number of rows and columns to display 
dataDisplayTable1.setNumberOfRowsInDisplay(12); 
dataDisplayTable1.setNumberOfColumnsInDisplay(5); 

//add it to the application frame 
add(dataDisplayTable1); 

//set the filename to be read 
fileDataSource1.setFileName("c:\\statbeans\\samples\\cardata.txt"); 

//set the delimiter character used in the file 
fileDataSource1.setDelimiter("tab"); 

//make the data table a listener for changes in the fileDataSource bean 
fileDataSource1.addDataChangeListener(dataDisplayTable1.listenerForDataChange); 

//instruct the fileDataSource bean to read the file 
fileDataSource1.readData();