⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dtablemodel.java

📁 Swing做报表 比较符合国内样式的报表。
💻 JAVA
字号:
package test.table;

import java.util.List;

import javax.swing.table.AbstractTableModel;

class DTableModel extends AbstractTableModel{
	private List<CellData>[] listData;
	private int column;
	public DTableModel(List<CellData>[] listData,int column){
		this.listData=listData;
		this.column=column;
	}
	public int getColumnCount() {		
		return column;
	}

	public int getRowCount() {
		return listData.length;
	}

	public Object getValueAt(int rowIndex, int columnIndex) {
		CellData cellData=listData[rowIndex].get(columnIndex);
		return cellData==null?null:cellData.getValue();
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -