A C D E F G H I L M N O P R S T U V

A

actionPerformed(ActionEvent) - Method in class net.sf.swinglib.actions.DialogCloseAction
 
addControlled(JComponent) - Method in class net.sf.swinglib.field.FieldWatcher
Adds a controlled component after construction.
addControlled(Action) - Method in class net.sf.swinglib.field.FieldWatcher
Adds a controlled action after construction.
addLayoutComponent(Component, Object) - Method in class net.sf.swinglib.layout.CompactGridLayout
Adds a component to the layout, associating it with the specified constraints object.
addLayoutComponent(String, Component) - Method in class net.sf.swinglib.layout.CompactGridLayout
Deprecated. use addLayoutComponent(Component,Object)
addValidatedField(JTextComponent, FieldValidator) - Method in class net.sf.swinglib.field.FieldWatcher
Adds a validated field to the watch list.
addWatchedField(JComponent) - Method in class net.sf.swinglib.field.FieldWatcher
Adds a field to the watch list.
AsynchronousOperation<T> - Class in net.sf.swinglib
A base class for implementing operations that need to run on their own thread and report back to the event thread.
AsynchronousOperation() - Constructor for class net.sf.swinglib.AsynchronousOperation
 
attach(JComponent, JPopupMenu) - Static method in class net.sf.swinglib.listeners.PopupListener
Creates a new instance and attaches it to the component.

C

center(Window) - Static method in class net.sf.swinglib.SwingUtil
Updates the passed window's position to center it with respect to the screen.
center(Window, Window) - Static method in class net.sf.swinglib.SwingUtil
Updates the first window's position to center it with respect to the second window.
centerAndShow(Window) - Static method in class net.sf.swinglib.SwingUtil
Centers the passed window (dialog or frame) on the screen and makes it visible.
centerAndShow(Window, Window) - Static method in class net.sf.swinglib.SwingUtil
Centers the passed window (dialog or frame) within the second window and makes it visible.
clearProgress() - Method in class net.sf.swinglib.components.ProgressMonitor
Switches the dialog to indeterminate mode.
ClipManager - Class in net.sf.swinglib
Provides a simple mechanism for interacting with the system clipboard, where you want to copy/paste a restricted set of data types and don't want to hook up with a component.
ClipManager() - Constructor for class net.sf.swinglib.ClipManager
 
CompactGridLayout - Class in net.sf.swinglib.layout
A layout manager designed for building input forms.
CompactGridLayout(int) - Constructor for class net.sf.swinglib.layout.CompactGridLayout
Basic constructor, which allows user to specify the number of columns and nothing else.
CompactGridLayout(int, int, int) - Constructor for class net.sf.swinglib.layout.CompactGridLayout
Constructor that allows specification of horizontal and vertical gaps between components.
CompactGridLayout(int, int, int, float, float) - Constructor for class net.sf.swinglib.layout.CompactGridLayout
Constructor that allows specification of horizontal and vertical gaps between components, as well as component alignment within cells.
CursorManager - Class in net.sf.swinglib
This class manages a a stack of cursors for one or more components.
CursorManager() - Constructor for class net.sf.swinglib.CursorManager
 

D

dialogBorder() - Static method in class net.sf.swinglib.UIHelper
The border to be used around a dialog's content.
DialogCloseAction - Class in net.sf.swinglib.actions
When invoked, this action hides or disposes the associated dialog.
DialogCloseAction(JDialog, String) - Constructor for class net.sf.swinglib.actions.DialogCloseAction
Constructs an action that will hide the dialog.
DialogCloseAction(JDialog, String, boolean) - Constructor for class net.sf.swinglib.actions.DialogCloseAction
Constructs an action that will either hide or dispose the dialog.
dialogGroupBorder() - Static method in class net.sf.swinglib.UIHelper
The border to be used around a group of components in a dialog.
dispose() - Method in class net.sf.swinglib.components.ProgressMonitor
Disposes the dialog, allowing the JVM to reclaim all resources.

E

ExpandingTableModel - Class in net.sf.swinglib.table
A TableModel that can be resized on the fly, tracks whether a cell has been changed, and allows the table to add new rows via edits.
ExpandingTableModel() - Constructor for class net.sf.swinglib.table.ExpandingTableModel
Creates an instance that has no rows and no columns.
ExpandingTableModel(int, int) - Constructor for class net.sf.swinglib.table.ExpandingTableModel
Creates an instance that is pre-sized to the specified number of rows and columns, with all cells containing null.
ExpandingTableModel(Object[][]) - Constructor for class net.sf.swinglib.table.ExpandingTableModel
Creates an instance that is initialized with the passed data.
ExpandingTableModel(Object[][], Object[]) - Constructor for class net.sf.swinglib.table.ExpandingTableModel
Creates an instance that is initialized with the passed data and column headers.
ExpandingTableModel(Object[][], Object[], Class<?>[]) - Constructor for class net.sf.swinglib.table.ExpandingTableModel
Creates an instance that is initialized with the passed data, column headers, and column classes.

F

FieldValidator - Class in net.sf.swinglib.field
Applies a regular expression to a text field to check its validity.
FieldValidator(JTextComponent, String) - Constructor for class net.sf.swinglib.field.FieldValidator
Constructs a "listen-only" instance; you must explicitly call FieldValidator.isValid() to check the field's state.
FieldValidator(JTextComponent, String, Color) - Constructor for class net.sf.swinglib.field.FieldValidator
Constructs a an instance that will change the field's background color when its contents are invalid, and revert to its parent's color when the contents are valid.
FieldValidator(JTextComponent, String, Color, Color) - Constructor for class net.sf.swinglib.field.FieldValidator
Constructs a an instance that will change the field's background color to either a "normal" or a "highlight" color depending on the field's contents.
FieldWatcher - Class in net.sf.swinglib.field
Tracks input field changes.
FieldWatcher(JComponent...) - Constructor for class net.sf.swinglib.field.FieldWatcher
Creates an instance with zero or more controlled components.
FieldWatcher(Action...) - Constructor for class net.sf.swinglib.field.FieldWatcher
Creates an instance with zero or more controlled actions.
FormattingRenderer - Class in net.sf.swinglib.table
A renderer that allows the caller to specify formatter and alignment.
FormattingRenderer(Format) - Constructor for class net.sf.swinglib.table.FormattingRenderer
Creates an instance that is right-aligned (I consider this the most common alignment for special-purpose renderers).
FormattingRenderer(Format, FormattingRenderer.Alignment) - Constructor for class net.sf.swinglib.table.FormattingRenderer
Creates an instance that allows you to specify alignment.
FormattingRenderer.Alignment - Enum in net.sf.swinglib.table
Used to specify the alignment of text within the cell, in a way that is not tied to Swing constants.

G

getChangedComponents() - Method in class net.sf.swinglib.field.FieldWatcher
Returns the components that have changed since construction or the last call to FieldWatcher.reset().
getColumnClass(int) - Method in class net.sf.swinglib.table.ExpandingTableModel
Returns the class of the particular column, Object if no class has been specified for the column.
getColumnCount() - Method in class net.sf.swinglib.table.ExpandingTableModel
Returns the current number of columns in the model.
getColumnName(int) - Method in class net.sf.swinglib.table.ExpandingTableModel
Returns the name of the particular column, empty string if a header has not been defined for the column.
getLayoutAlignmentX(Container) - Method in class net.sf.swinglib.layout.CompactGridLayout
Returns a default horizontal alignment value for this container.
getLayoutAlignmentY(Container) - Method in class net.sf.swinglib.layout.CompactGridLayout
Returns a default vertical alignment value for this container.
getRowCount() - Method in class net.sf.swinglib.table.ExpandingTableModel
Returns the number of rows in the model, including the "phantom" row.
getSwingAlignment() - Method in enum net.sf.swinglib.table.FormattingRenderer.Alignment
 
getValueAt(int, int) - Method in class net.sf.swinglib.table.ExpandingTableModel
Returns the value at a particular cell in the model.

H

hide() - Method in class net.sf.swinglib.components.ProgressMonitor
Hides the dialog, but does not dispose it; also resets progress data.
HIGHLIGHT_COLOR - Static variable in class net.sf.swinglib.UIHelper
The highlight color for invalid fields.

I

interButtonSpace() - Static method in class net.sf.swinglib.UIHelper
A horizontal strut between buttons on the same line.
invalidateLayout(Container) - Method in class net.sf.swinglib.layout.CompactGridLayout
Invalidates the current cached information for this layout, and recalculates the row heights and column widths.
isCellEditable(int, int) - Method in class net.sf.swinglib.table.ExpandingTableModel
 
isValid() - Method in class net.sf.swinglib.field.FieldValidator
Determines whether the document is currently valid (note: this may be called within an event handler, as long as the update has been applied to the document).

L

layoutContainer(Container) - Method in class net.sf.swinglib.layout.CompactGridLayout
Lays out the container.

M

MainFrame - Class in net.sf.swinglib.components
A JFrame that adds some commonly-used features: By default, clicking the close box will exit the application (an alternate constructor allows an explicit listener).
MainFrame(String) - Constructor for class net.sf.swinglib.components.MainFrame
The basic frame.
MainFrame(String, WindowListener) - Constructor for class net.sf.swinglib.components.MainFrame
A frame that has an explicit window listener, and does nothing itself the user clicks the "close" button.
maximumLayoutSize(Container) - Method in class net.sf.swinglib.layout.CompactGridLayout
Returns the maximum size of this layout, which is the same as its preferred size.
minimumLayoutSize(Container) - Method in class net.sf.swinglib.layout.CompactGridLayout
Returns the minimum size of this layout, based on its components.
mousePressed(MouseEvent) - Method in class net.sf.swinglib.listeners.PopupListener
 
mouseReleased(MouseEvent) - Method in class net.sf.swinglib.listeners.PopupListener
 

N

net.sf.swinglib - package net.sf.swinglib
 
net.sf.swinglib.actions - package net.sf.swinglib.actions
 
net.sf.swinglib.components - package net.sf.swinglib.components
This package contains extensions of standard Swing components.
net.sf.swinglib.field - package net.sf.swinglib.field
This package contains objects for managing a user's interaction with various "field level" Swing components.
net.sf.swinglib.layout - package net.sf.swinglib.layout
This package contains layout managers.
net.sf.swinglib.listeners - package net.sf.swinglib.listeners
This package contains objects that listen to other components and perform some defined action.
net.sf.swinglib.table - package net.sf.swinglib.table
This package contains tools specific to JTable.
newModalDialog(JFrame, String, JPanel, JButton...) - Static method in class net.sf.swinglib.UIHelper
Builds a standard modal input dialog, with content and buttons to accept or cancel that content.
newModalDialog(JFrame, String, JPanel, Action...) - Static method in class net.sf.swinglib.UIHelper
Builds a standard modal input dialog, with content and buttons to accept or cancel that content.

O

onComplete() - Method in class net.sf.swinglib.AsynchronousOperation
This method is invoked on the event thread when the operation completes, regardless of whether it succeeded or failed.
onFailure(Throwable) - Method in class net.sf.swinglib.AsynchronousOperation
This method is invoked on the event thread if performOperation() threw an exception.
onSuccess(T) - Method in class net.sf.swinglib.AsynchronousOperation
This method is invoked on the event thread after a successful call to performOperation().

P

performOperation() - Method in class net.sf.swinglib.AsynchronousOperation
The concrete class implements this method, which is executed on the non-event thread.
popCursor(JComponent) - Method in class net.sf.swinglib.CursorManager
Pops the last saved cursor for the specified component, replacing whatever it's currently displaying.
PopupListener - Class in net.sf.swinglib.listeners
A mouse listener that will attach a popup menu to a given component.
PopupListener(JComponent, JPopupMenu) - Constructor for class net.sf.swinglib.listeners.PopupListener
 
preferredLayoutSize(Container) - Method in class net.sf.swinglib.layout.CompactGridLayout
Returns the preferred size of this layout, based on its components.
ProgressMonitor - Class in net.sf.swinglib.components
Creates and manages a standardized progress dialog.
ProgressMonitor(JFrame, String, String, Action, ProgressMonitor.Options...) - Constructor for class net.sf.swinglib.components.ProgressMonitor
Base constructor, allowing customization of the dialog's appearance and behavior.
ProgressMonitor(JFrame, String, String, ProgressMonitor.Options...) - Constructor for class net.sf.swinglib.components.ProgressMonitor
Convenience constructor for a dialog that does not have an action button.
ProgressMonitor.Options - Enum in net.sf.swinglib.components
Options to control the dialog's appearance.
pushBusyCursor(JComponent) - Method in class net.sf.swinglib.CursorManager
Pushes the current cursor for the specified component onto the stack, and sets the standard "busy" cursor.
pushCursor(JComponent, Cursor) - Method in class net.sf.swinglib.CursorManager
Pushes the current cursor for the specified component onto the stack, and sets the specified cursor.
putString(String) - Static method in class net.sf.swinglib.ClipManager
Puts the specified string on the system clipboard.

R

removeLayoutComponent(Component) - Method in class net.sf.swinglib.layout.CompactGridLayout
Removes a component from the layout.
reset() - Method in class net.sf.swinglib.field.FieldValidator
Call this method if you change the document on the component.
reset() - Method in class net.sf.swinglib.field.FieldWatcher
Resets this watcher: clears the list of changed fields, and disables any controlled components.
run() - Method in class net.sf.swinglib.AsynchronousOperation
 

S

setColumnClass(int, Class<?>) - Method in class net.sf.swinglib.table.ExpandingTableModel
Updates the name of a column with the passed value.
setColumnName(int, Object) - Method in class net.sf.swinglib.table.ExpandingTableModel
Updates the name for a column with the passed value.
setDialog(JDialog) - Method in class net.sf.swinglib.actions.DialogCloseAction
Sets the dialog associated with this action.
setProgress(int, int, int) - Method in class net.sf.swinglib.components.ProgressMonitor
Sets the dialog's progress indicator to the given values.
setRelativeColumnWidths(JTable, int...) - Static method in class net.sf.swinglib.table.TableUtil
Sets the preferred widths of the columns of a table to the specified percentages of the current width.
setStatus(String) - Method in class net.sf.swinglib.components.ProgressMonitor
Sets the status text, if the dialog was constructed with that option.
setValue(Object) - Method in class net.sf.swinglib.table.FormattingRenderer
 
setValueAt(Object, int, int) - Method in class net.sf.swinglib.table.ExpandingTableModel
Stores the passed value in the specified cell.
setWidth(int) - Method in class net.sf.swinglib.table.ExpandingTableModel
Sets the width (column count) of the model.
show() - Method in class net.sf.swinglib.components.ProgressMonitor
Displays the dialog, constructing it if necessary.
STANDARD_SPACE - Static variable in class net.sf.swinglib.UIHelper
An "inter-component" horizontal space, also used as the standard inset from a frame to its content.
SwingUtil - Class in net.sf.swinglib
A collection of static methods that don't really fit anywhere else.
SwingUtil() - Constructor for class net.sf.swinglib.SwingUtil
 

T

TableUtil - Class in net.sf.swinglib.table
A collection of static utility methods for working with tables.
TableUtil() - Constructor for class net.sf.swinglib.table.TableUtil
 

U

UIHelper - Class in net.sf.swinglib
Static methods and constants that help build UI objects with a consistent appearance.
UIHelper() - Constructor for class net.sf.swinglib.UIHelper
 

V

valueOf(String) - Static method in enum net.sf.swinglib.components.ProgressMonitor.Options
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.sf.swinglib.table.FormattingRenderer.Alignment
Returns the enum constant of this type with the specified name.
values() - Static method in enum net.sf.swinglib.components.ProgressMonitor.Options
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum net.sf.swinglib.table.FormattingRenderer.Alignment
Returns an array containing the constants of this enum type, in the order they're declared.

A C D E F G H I L M N O P R S T U V