JMultiLineLabel 1.0
Swing JavaBean
WILDCREST ASSOCIATES

Main Page  Sample Program   User Manual     Javadoc Documentation     Installation & Compatibility     License & Contact Information

JMultiLineLabel is a Swing (JFC) component for displaying multiple line text labels.

JMultiLineLabel provides a simple but very useful feature in Java, the ability to display blocks of text appropriate for longer labels, dialog and about boxes, status reports and instructions, help and splash screens, etc. 
 

View source code for this applet
Alternatives:

The standard Swing JLabel only displays a single line of text.  Using multiple JLabels is cumbersome, especially for wrapping lines of text.  Solutions like the Symantec WrappingLabel fail to support line breaks, tabs, or insets.  Swing JTextArea and JTextPane were designed for different purposes with UI characteristics that make them hard to use as multiple-line labels.

In addition, all these components have a fixed height and clip text unexpectedly, especially in cross-platform applications where font differences cause text to rewrap.  Plus, all these components lack a JavaBean property editor that eases entry of text on multiple lines and with embedded tabs and quotation marks.

Features:
  • line wrap
  • line breaks
  • variable tab expansion
  • variable line spacing
  • insets
  • font selection
  • height autosizing
  • multiple line property sheet editor
  • Swing component compatibilities:
    • accessibility support
    • pluggable look-and-feel
    • transparency/opacity
    • enabled/disabled appearance

 

Benefits:

  • Simple to use, with the features needed to make it really useful.
  • Works great as a bean in visual application builders and also as a simple class for programmatic use.
  • Line wrap and height autosizing ensure all text will always display, regardless of layout or cross-platform font differences.
  • The Free Version of JMultiLineLabel displays "Evaluation Use Only" in the label and is licensed for evaluation, development, and non-commercial use.  Product and Source Code Versions are also available.

© Copyright 1999, Wildcrest Associates (http://www.wildcrest.com)