From b2ac8fc47b9f77648d5872f0589bca8d0a661d04 Mon Sep 17 00:00:00 2001 From: adrian Date: Tue, 9 Sep 2014 13:24:10 +0200 Subject: [PATCH] Blockchain browser rebuilded. --- .../org/ethereum/gui/BlockTableModel.java | 37 ------------------- 1 file changed, 37 deletions(-) delete mode 100644 ethereumj-studio/src/main/java/org/ethereum/gui/BlockTableModel.java diff --git a/ethereumj-studio/src/main/java/org/ethereum/gui/BlockTableModel.java b/ethereumj-studio/src/main/java/org/ethereum/gui/BlockTableModel.java deleted file mode 100644 index 7a114959..00000000 --- a/ethereumj-studio/src/main/java/org/ethereum/gui/BlockTableModel.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.ethereum.gui; - -import org.ethereum.core.Block; - -import javax.swing.table.AbstractTableModel; - -/** - * www.ethereumJ.com - * - * @author: Roman Mandeleil - * Created on: 15/05/14 12:42 - */ -public class BlockTableModel extends AbstractTableModel { - - @Override - public int getRowCount() { - - fireTableDataChanged(); - int rowCount = (int) UIEthereumManager.ethereum.getBlockChain().getSize(); - return rowCount; - } - - @Override - public int getColumnCount() { - return 1; - } - - @Override - public Object getValueAt(int rowIndex, int columnIndex) { - - Block block = UIEthereumManager.ethereum.getBlockChain().getBlockByNumber(rowIndex); - - if (block == null) return ""; - - return block.toString(); - } -}