Code Cleanup
This commit is contained in:
parent
b345ee0e74
commit
170512023a
2 changed files with 3 additions and 2 deletions
|
@ -14,7 +14,8 @@ import java.util.ArrayList;
|
||||||
* @author http://stackoverflow.com/questions/14968005
|
* @author http://stackoverflow.com/questions/14968005
|
||||||
* @author Konloch
|
* @author Konloch
|
||||||
*/
|
*/
|
||||||
public class ImageRenderer extends DefaultTreeCellRenderer
|
|
||||||
|
public class ResourceListIconRenderer extends DefaultTreeCellRenderer
|
||||||
{
|
{
|
||||||
//called every time there is a pane update
|
//called every time there is a pane update
|
||||||
@Override
|
@Override
|
|
@ -161,7 +161,7 @@ public class ResourceListPane extends TranslatedVisibleComponent implements File
|
||||||
ResourceTreeNode root = new ResourceTreeNode(container.name);
|
ResourceTreeNode root = new ResourceTreeNode(container.name);
|
||||||
treeRoot.add(root);
|
treeRoot.add(root);
|
||||||
|
|
||||||
ImageRenderer renderer = new ImageRenderer();
|
ResourceListIconRenderer renderer = new ResourceListIconRenderer();
|
||||||
tree.setCellRenderer(renderer);
|
tree.setCellRenderer(renderer);
|
||||||
|
|
||||||
if (!container.resourceClasses.isEmpty())
|
if (!container.resourceClasses.isEmpty())
|
||||||
|
|
Loading…
Reference in a new issue