| java.lang.Object com.jgoodies.binding.tutorial.TutorialUtils
TutorialUtils | final public class TutorialUtils (Code) | | Consists only of static methods that return instances
reused in multiple examples of the JGoodies Binding tutorial.
author: Karsten Lentzsch version: $Revision: 1.21 $ |
createAlbumListCellRenderer | public static ListCellRenderer createAlbumListCellRenderer()(Code) | | Creates and returns a renderer for Albums in a list.
a renderer for Albums in lists. |
createAlbumTableModel | public static TableModel createAlbumTableModel(ListModel listModel)(Code) | | Creates and returns a TableModel for Albums with columns
for the title, artist, classical and composer.
Parameters: listModel - the ListModel of Albums to display in the table a TableModel on the list of Albums |
createDebugPropertyChangeListener | public static PropertyChangeListener createDebugPropertyChangeListener()(Code) | | Returns a listener that writes bean property changes to the console.
The log entry includes the PropertyChangeEvent's source, property name,
old value, and new value.
a debug listener that logs bean changes to the console |
getCloseAction | public static Action getCloseAction()(Code) | | Creates and returns an Action that exists the system if performed.
an Action that exists the system if performed See Also: System.exit(int) |
locateOnOpticalScreenCenter | public static void locateOnOpticalScreenCenter(Component component)(Code) | | Locates the given component on the screen's center.
Parameters: component - the component to be centered |
|
|