public class TextPaneResizer extends ComponentAdapter implements LegendSizeListener
| Constructor and Description | 
|---|
TextPaneResizer(JTextPane pane)
Default parameters will be used for the given pane (300 width, 2 offset) 
 | 
TextPaneResizer(JTextPane pane,
               int minsize,
               int offset)
Default constructor with a provided minimal width, an offset to adjust the width coming in and the Pane to resize. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
componentResized(ComponentEvent e)  | 
componentHidden, componentMoved, componentShownpublic TextPaneResizer(JTextPane pane, int minsize, int offset)
pane - The textpane this resizer will be added tominsize - The minimal size to useoffset - The remaining space between this component and the widthpublic TextPaneResizer(JTextPane pane)
pane - The pane to use this Resizer forpublic void componentResized(ComponentEvent e)
componentResized in interface ComponentListenercomponentResized in class ComponentAdapterCopyright © 2018. All rights reserved.