VANET Simulator
 All Classes Functions Variables
Public Member Functions | List of all members
vanetsim.gui.helpers.TextAreaLabel Class Reference
Inheritance diagram for vanetsim.gui.helpers.TextAreaLabel:

Public Member Functions

 TextAreaLabel (String text)
 
Dimension getPreferredSize ()
 

Detailed Description

A class which uses a JTextArea to imitate a JLabel with automatic linewrap.

Constructor & Destructor Documentation

vanetsim.gui.helpers.TextAreaLabel.TextAreaLabel ( String  text)
inline

Instantiates a new JTextArea with automatic linewrap.

Parameters
textthe text

Member Function Documentation

Dimension vanetsim.gui.helpers.TextAreaLabel.getPreferredSize ( )
inline

Return a little bit smaller width than original JTextArea would. This should help to compensate appearing scrollbars on the right side of this area.

Returns
the modified preferred size

The documentation for this class was generated from the following file: