String text = grid.getValueAt( 1, 1 ).toString();
Object val = grid.getCellValueAt( 1, 1 );
セルを選択して、編集します。
grid.setRow( 1 ); grid.setCol( 2 ); grid.getCell().setFontUnderline( DsConstants.DOUBLE );
grid.setRow( 0 ); grid.setCol( 0 ); grid.setRow2( 1 ); grid.setCol2( 2 ); grid.getCells().setFontStrikeThrough( true );
grid.getCellAt( 1, 2 ).setForeground( Color.blue );
grid.getCells( 1, 2, 2, 3 ).setBackground( Color.yellow );
grid.getRows( 1, 2 ).setVerticalAlignment( DsConstants.BOTTOM );
grid.getColumns( 1, 2 ).setHorizontalAlignment( DsConstants.CENTER );
目次
概要
セルの動作
セルのデータ型と初期設定
セルのブロックの選択と動作
行および列の動作
行および列のヘッダ
データおよびテーブルモデルの読み込みと保存
印刷