home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 June: Reference Library / Dev.CD Jun 99 RL Disk 2.toast / Technical Publications / macosxserver / System / Documentation / Developer / YellowBox / TasksAndConcepts / JavaTutorial / 3.JavaDebugging / JavaDebugging-14.gif < prev    next >
Graphics Interchange Format  |  1999-04-12  |  8.2 KB  |  415x349  |  8-bit (48 colors)  |  [GIFf/ogle]
   ocr: Tempcontrolerjava /* TempController */ import com.apple.yellow.application.*, import com.apple.yellow. foundation.* public class TempController extends Java.lang.0bject i Slextrield celsius; NSTextField ranrennelt; TempImageView tempImage; // TemperatureView tempImage; public void convert(Nslextrielo sender) ( if (sender = celslus) i int f == (int)((9.0/5.0 * celslus.intValue() + 32): Tehrerheit.setintvalle(D): I else if (sender == fahrenheit) ( int C == ant)(Fahrenheat.intvalue(0-32) * 5.0/9.0); celsius.setintvalue(C); 3 tempImage.tempDidchange(fahrenheit.intvalue(): )