com.compomics.util.gui
Class GuiUtilities

java.lang.Object
  extended by com.compomics.util.gui.GuiUtilities

public class GuiUtilities
extends Object

A class containing simple GUI helper methods.

Author:
Harald Barsnes

Constructor Summary
GuiUtilities()
           
 
Method Summary
static int getPreferredWidthOfCell(JTable table, int rowIndex, int colIndex)
          Returns the preferred width of a given cell in a table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuiUtilities

public GuiUtilities()
Method Detail

getPreferredWidthOfCell

public static int getPreferredWidthOfCell(JTable table,
                                          int rowIndex,
                                          int colIndex)
Returns the preferred width of a given cell in a table.

Parameters:
table - the table
colIndex - the colum index
rowIndex - the row index
Returns:
the prefereed width of the cell


Copyright © 2012. All Rights Reserved.