use of de.gurkenlabs.utiliti.swing.AssetPanel in project litiengine by gurkenlabs.
the class Program method initAssetsComponent.
private static Component initAssetsComponent() {
JSplitPane split = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
assetTree = new AssetTree();
split.setLeftComponent(assetTree);
assetPanel = new AssetPanel();
JScrollPane scrollPane = new JScrollPane(assetPanel);
split.addPropertyChangeListener(JSplitPane.DIVIDER_LOCATION_PROPERTY, evt -> userPreferences.setAssetsSplitter(split.getDividerLocation()));
split.setDividerLocation(userPreferences.getMainSplitterPosition() != 0 ? userPreferences.getAssetsSplitter() : 200);
split.setRightComponent(scrollPane);
return split;
}
Aggregations