portaview
Class WidgetFactory

java.lang.Object
  extended byportaview.WidgetFactory

public class WidgetFactory
extends java.lang.Object

Factory class to generate common swing widgets.

Author:
William Lee

Constructor Summary
WidgetFactory()
           
 
Method Summary
static javax.swing.JLabel createCenteredLabel(java.lang.String txt)
          Generates a label that is centered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WidgetFactory

public WidgetFactory()
Method Detail

createCenteredLabel

public static javax.swing.JLabel createCenteredLabel(java.lang.String txt)
Generates a label that is centered.

Parameters:
txt - text for the label
Returns:
a JLabel that is centered.


Copyright © 2003 The PortaView Team. All Rights Reserved.