final WebScrollPane filesView = new WebScrollPane ( fileTree, false );
filesView.setMinimumWidth ( 200 );
filesView.setPreferredHeight ( 0 );
// filesView.setBorder ( BorderFactory.createMatteBorder ( 0, 0, 0, 1, WebToolBarStyle.borderColor ) );
final WebSplitPane previewSplit = new WebSplitPane ( WebSplitPane.HORIZONTAL_SPLIT );
previewSplit.setLeftComponent ( createEditorPanel () );
previewSplit.setRightComponent ( createPreviewPanel () );
previewSplit.setOneTouchExpandable ( true );
previewSplit.setContinuousLayout ( true );
previewSplit.setResizeWeight ( 1 );
final WebSplitPane filesSplit = new WebSplitPane ( WebSplitPane.HORIZONTAL_SPLIT );
filesSplit.setLeftComponent ( filesView );
filesSplit.setRightComponent ( previewSplit );
filesSplit.setOneTouchExpandable ( true );
filesSplit.setContinuousLayout ( true );
filesSplit.setResizeWeight ( 0 );
add ( filesSplit, BorderLayout.CENTER );
final Integer fsl = SettingsManager.get ( "NinePatchEditor", "filesSplitLocation", ( Integer ) null );
filesSplit.setDividerLocation ( fsl != null ? fsl : 230 );
filesSplit.addPropertyChangeListener ( WebSplitPane.DIVIDER_LOCATION_PROPERTY, new PropertyChangeListener ()
{
@Override
public void propertyChange ( final PropertyChangeEvent pce )
{
SettingsManager.set ( "NinePatchEditor", "filesSplitLocation", filesSplit.getDividerLocation () );
}
} );
final Integer psl = SettingsManager.get ( "NinePatchEditor", "splitLocation", ( Integer ) null );
if ( psl != null )