From 20ee1e23854a85545f49c3ebe3f7622eae647dcc Mon Sep 17 00:00:00 2001 From: Jared Gould Date: Mon, 19 Feb 2007 17:48:02 +0000 Subject: [PATCH] Removed file/folder git-svn-id: http://svn.3splooges.com/romraider-arch/trunk@526 d2e2e1cd-ba16-0410-be16-b7c4453c7c2d --- src/enginuity/newmaps/swing/Table.java | 59 ------------- src/enginuity/newmaps/swing/TableFrame.java | 94 --------------------- 2 files changed, 153 deletions(-) delete mode 100644 src/enginuity/newmaps/swing/Table.java delete mode 100644 src/enginuity/newmaps/swing/TableFrame.java diff --git a/src/enginuity/newmaps/swing/Table.java b/src/enginuity/newmaps/swing/Table.java deleted file mode 100644 index 675fa754..00000000 --- a/src/enginuity/newmaps/swing/Table.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * - * Enginuity Open-Source Tuning, Logging and Reflashing - * Copyright (C) 2006 Enginuity.org - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - * - */ - -package enginuity.newmaps.swing; - -import javax.swing.*; -import javax.swing.event.ListSelectionListener; - -public class Table extends JTable implements ListSelectionModel { - - private int width = 0; - private int height = 0; - - public Table (Object[][] dataValues, Object[] columnNames) { - super(dataValues, columnNames); - } - - public static void main( String args[] ) { - TableFrame mainFrame = new TableFrame(); - } - - public void setSelectionInterval(int index0, int index1) { } - public void addSelectionInterval(int index0, int index1) { } - public void removeSelectionInterval(int index0, int index1) { } - public int getMinSelectionIndex() { return 0; } - public int getMaxSelectionIndex() { return 0; } - public boolean isSelectedIndex(int index) { return false; } - public int getAnchorSelectionIndex() { return 0; } - public void setAnchorSelectionIndex(int index) { } - public int getLeadSelectionIndex() { return 0; } - public void setLeadSelectionIndex(int index) { } - public boolean isSelectionEmpty() { return false; } - public void insertIndexInterval(int index, int length, boolean before) { } - public void removeIndexInterval(int index0, int index1) { } - public void setValueIsAdjusting(boolean valueIsAdjusting) { } - public boolean getValueIsAdjusting() { return false; } - public int getSelectionMode() { return 0; } - public void addListSelectionListener(ListSelectionListener x) { } - public void removeListSelectionListener(ListSelectionListener x) { } - -} \ No newline at end of file diff --git a/src/enginuity/newmaps/swing/TableFrame.java b/src/enginuity/newmaps/swing/TableFrame.java deleted file mode 100644 index 2990a582..00000000 --- a/src/enginuity/newmaps/swing/TableFrame.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * - * Enginuity Open-Source Tuning, Logging and Reflashing - * Copyright (C) 2006 Enginuity.org - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - * - */ - -package enginuity.newmaps.swing; - -import javax.swing.*; -import java.awt.*; - -class TableFrame extends JFrame { - // Instance attributes used in this example - private JPanel topPanel; - private Table table; - private JScrollPane scrollPane; - - private String columnNames[]; - private String dataValues[][]; - - // Constructor of main frame - public TableFrame() { - // Set the frame characteristics - setTitle("Advanced Table Application"); - setSize(300, 200); - setBackground(Color.gray); - // remove when i make a JInternalFrame - setDefaultCloseOperation(EXIT_ON_CLOSE); - - // Create a panel to hold all other components - topPanel = new JPanel(); - topPanel.setLayout(new BorderLayout()); - getContentPane().add(topPanel); - - // Create columns - CreateColumns(); - CreateData(); - - // Create a new table instance - table = new Table(dataValues, columnNames); - - // Configure some of Table's paramters - table.setColumnSelectionAllowed(false); - table.setRowSelectionAllowed(false); - - // Change the selection colour - table.setSelectionForeground(Color.white); - table.setSelectionBackground(Color.red); - - // Add the table to a scrolling pane - scrollPane = new JScrollPane(table); - topPanel.add(scrollPane, BorderLayout.CENTER); - setVisible(true); - } - - public void CreateColumns() { - // Create column string labels - columnNames = new String[8]; - - for( int iCtr = 0; iCtr < 8; iCtr++ ) { - columnNames[iCtr] = "Col:" + iCtr; - } - } - - public void CreateData() { - // Create data for each element - dataValues = new String[100][8]; - - for (int iY = 0; iY < 100; iY++) { - for(int iX = 0; iX < 8; iX++) { - dataValues[iY][iX] = "" + iX + "," + iY; - } - } - } - - public static void main( String args[] ) { - TableFrame mainFrame = new TableFrame(); - } -}