All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.owasp.jbrofuzz.fuzz.ui.OutputTable Maven / Gradle / Ivy

/**
 * JbroFuzz 2.5
 *
 * JBroFuzz - A stateless network protocol fuzzer for web applications.
 * 
 * Copyright (C) 2007 - 2010 [email protected]
 *
 * This file is part of JBroFuzz.
 * 
 * JBroFuzz 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 3 of the License, or
 * (at your option) any later version.
 * 
 * JBroFuzz 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 JBroFuzz.  If not, see .
 * Alternatively, write to the Free Software Foundation, Inc., 51 
 * Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 * 
 * Verbatim copying and distribution of this entire program file is 
 * permitted in any medium without royalty provided this notice 
 * is preserved. 
 * 
 */
package org.owasp.jbrofuzz.fuzz.ui;

import java.awt.Color;
import java.awt.Font;

import javax.swing.JTable;
import javax.swing.table.TableColumn;

/**
 * 

Class for representing output table within the * Fuzzing panel.

* * @author [email protected] * @version 2.3 * @since 1.8 */ public class OutputTable extends JTable { private static final long serialVersionUID = 4638431854344279853L; public OutputTable(final OutputTableModel model) { super(model); getTableHeader().setReorderingAllowed(false); // Set the column widths TableColumn column = null; for (int i = 0; i < model.getColumnCount(); i++) { column = getColumnModel().getColumn(i); if (i == 0) { column.setPreferredWidth(30); } if (i == 1) { column.setPreferredWidth(150); } if (i == 2) { column.setPreferredWidth(60); } if (i == 3) { column.setPreferredWidth(60); } if (i == 4) { column.setPreferredWidth(20); } if (i == 5) { column.setPreferredWidth(20); } if (i == 6) { column.setPreferredWidth(60); } } } @Override public final boolean isCellEditable(int row, int column) { return false; } @Override public final boolean getColumnSelectionAllowed() { return false; } @Override public final boolean getRowSelectionAllowed() { return true; } @Override public final Font getFont() { return new Font("Monospaced", Font.BOLD, 12); } @Override public final boolean getDragEnabled() { return false; } @Override public final Color getBackground() { return Color.BLACK; } @Override public final Color getForeground() { return Color.WHITE; } @Override public final boolean getSurrendersFocusOnKeystroke() { return true; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy