[Thinlet-development] thinlet/src/thinlet Thinlet.java,1.12,1.13
Brought to you by:
bajzat
From: <ab...@us...> - 2003-04-15 20:18:19
|
Update of /cvsroot/thinlet/thinlet/src/thinlet In directory sc8-pr-cvs1:/tmp/cvs-serv31782 Modified Files: Thinlet.java Log Message: API setter for "font" property on a component. Index: Thinlet.java =================================================================== RCS file: /cvsroot/thinlet/thinlet/src/thinlet/Thinlet.java,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- Thinlet.java 15 Apr 2003 20:13:08 -0000 1.12 +++ Thinlet.java 15 Apr 2003 20:18:07 -0000 1.13 @@ -166,6 +166,16 @@ } /** + * Set custom font on a component + * + * @param component component to use the custom font + * @param font custom font to use, or null to reset component to use default font + */ + public void setFont(Object component, Font font) { + if (component != null) set(component, "font", font); + } + + /** * */ private void doLayout(Object component) { |