Example usage for weka.gui JTableHelper setOptimalColumnWidth

List of usage examples for weka.gui JTableHelper setOptimalColumnWidth

Introduction

In this page you can find the example usage for weka.gui JTableHelper setOptimalColumnWidth.

Prototype

public static void setOptimalColumnWidth(JTable jtable, int col) 

Source Link

Document

sets the optimal column width for the given column

Usage

From source file:meka.gui.dataviewer.DataPanel.java

License:Open Source License

/**
 * calculates the optimal column width for the current column
 *//*from   ww w .j  a  v a2 s. co m*/
public void setOptimalColWidth() {
    // no column selected?
    if (m_CurrentCol == -1) {
        return;
    }

    JTableHelper.setOptimalColumnWidth(getTable(), m_CurrentCol);
}