[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui/attrview StringAttribute.java, 1.12, 1.1
Status: Pre-Alpha
Brought to you by:
henryml
|
From: Nikolaj B. <nbr...@us...> - 2007-03-29 22:02:38
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv5073/src/net/sourceforge/bprocessor/gui/attrview Modified Files: StringAttribute.java Log Message: Made alot changes regarding DBK, and energycalc Index: StringAttribute.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview/StringAttribute.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** StringAttribute.java 4 Nov 2006 16:54:53 -0000 1.12 --- StringAttribute.java 29 Mar 2007 22:02:37 -0000 1.13 *************** *** 79,82 **** --- 79,93 ---- component.add(createValueLabel(attribute.getValue())); this.add(component); + JLabel ext; + if (attribute.getName().equalsIgnoreCase("Density")) { + ext = new JLabel(" kg/m3"); + ext.setFont(AttributeView.FONT_PLAIN); + this.add(ext); + } + if (attribute.getName().equalsIgnoreCase("U-value")) { + ext = new JLabel(" W/m2K"); + ext.setFont(AttributeView.FONT_PLAIN); + this.add(ext); + } this.add(Box.createHorizontalGlue()); } |