no message

git-svn-id: https://svn.coded.pt/svn/SIPRP@426 bb69d46d-e84e-40c8-a05a-06db0d633741
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Frederico Palma 19 years ago
parent 34f060a45e
commit 06908b7697

@ -56,7 +56,7 @@ abstract public class EstruturaProcessoMutableTreeNode extends DefaultMutableTre
abstract protected String getIconPath(); abstract protected String getIconPath();
public Icon getICon() public Icon getIcon()
{ {
loadIcon(); loadIcon();
return icon; return icon;
@ -64,7 +64,7 @@ abstract public class EstruturaProcessoMutableTreeNode extends DefaultMutableTre
protected void loadIcon() protected void loadIcon()
{ {
if( icon == null ) if( icon == null && getIconPath() != null )
{ {
try try
{ {

@ -40,7 +40,11 @@ public class EstruturaProcessoRenderer extends DefaultTreeCellRenderer
hasFocus); hasFocus);
EstruturaProcessoMutableTreeNode node = ( EstruturaProcessoMutableTreeNode ) value; EstruturaProcessoMutableTreeNode node = ( EstruturaProcessoMutableTreeNode ) value;
//System.out.println( node.getICon() ); //System.out.println( node.getICon() );
setIcon( node.getICon() ); Icon icon = node.getIcon();
if( icon != null )
{
setIcon( icon );
}
return this; return this;
} }

@ -25,6 +25,7 @@ public class TrabalhadorMutableTreeNode extends EstruturaProcessoMutableTreeNode
protected String getIconPath() protected String getIconPath()
{ {
return ICON_PATH; return null;
// return ICON_PATH;
} }
} }

Loading…
Cancel
Save