org.autoplot.datasource.ui.Util

taken from http://www.jguru.com/faq/view.jsp?EID=87579 (see code towards the bottom, view source).


enableComponents

enableComponents( java.awt.Container container, boolean enabled, java.awt.Component exclude ) → void

enable or disable all the components in a container. Thanks to http://stackoverflow.com/questions/10985734/java-swing-enabling-disabling-all-components-in-jpanel

Parameters

container - the container
enabled - true to enable, false to disable
exclude - null, or a component to exclude.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


isRowHeaderVisible

isRowHeaderVisible( javax.swing.JTable table ) → boolean

Parameters

table - a JTable

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc] [view source]


makeJTextFieldLookLikeJLabel

makeJTextFieldLookLikeJLabel( javax.swing.JTextField tf ) → void

make JTextField look like a JLabel. We don't use JLabels because they don't size nicely, and they don't allow user to select text. Note on Linux, this still doesn't quite get it, but at least this provides one place to set the configuration.

Parameters

tf - a JTextField

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


removeRowHeader

removeRowHeader( javax.swing.JTable table ) → void

Creates row header for table with row number (starting with 1) displayed

Parameters

table - a JTable

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setRowHeader

setRowHeader( javax.swing.JTable table ) → void

Creates row header for table with row number (starting with 1) displayed

Parameters

table - a JTable

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]