public class SwingTableColumn extends Object
DefaultTableModel
.Constructor and Description |
---|
SwingTableColumn(Object[] values,
int preferredWidth,
int minWidth,
int maxWidth,
boolean resizable)
Constructs a column.
|
Modifier and Type | Method and Description |
---|---|
int |
getMaxWidth()
Returns the maximum width of this column or 0 if not specified.
|
int |
getMinWidth()
Returns the minimum width of this column or 0 if not specified.
|
int |
getPreferredWidth()
Returns the preferred width of this column or 0 if not specified.
|
boolean |
getResizable()
Returns whether the user is allowed to resize this column.
|
Object[] |
getValues()
Returns the allowed values of this column or
null . |
public SwingTableColumn(Object[] values, int preferredWidth, int minWidth, int maxWidth, boolean resizable)
public Object[] getValues()
null
.
A JComboBox
is used as cell editor if a column has values.public int getPreferredWidth()
public int getMinWidth()
public int getMaxWidth()
public boolean getResizable()
Copyright (C) 2004-2019 FormDev Software GmbH. All rights reserved.