Skip to content

Instantly share code, notes, and snippets.

Created December 5, 2016 14:02
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
tree.setCellRenderer(new DefaultTreeCellRenderer() {
public IRendererComponent getTreeCellRendererComponent(ULCTree tree, Object value, boolean selected, boolean expanded, boolean leaf, boolean hasFocus) {
IRendererComponent renderer = super.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, hasFocus);
if (value != null && value instanceof ApplicationMetadata) {
setText(((ApplicationMetadata) value).getName());
return renderer;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment