// // on the off chance that this works, bear in mind that this is a // port from kaosfire.c written by Dr.Kaos Matthew Pearce // to java by the Dustman // // import java.awt.*; import java.applet.*; import kaosfire; public class testkaosfire extends Applet { Button btn_start, btn_stop; kaosfire thing; public void init() { Panel south; this.setLayout( New BorderLayout()); thing = new kaosfire(); this.add("Center", thing); South = new Panel(); btn_start = new Button("Start"); btn_stop = new Button("Stop"); South.add(btn_start); South.add(btn_stop); this.add("South", south); } public boolean action(Event evt, Object what) { if (evt.target == btn_start) { thing.start(); return true; } else if (evt.target == btn_stop) { thing.stop(); return true; } return false; } }
file: /Techref/language/java/nosugar/graphics/pall/code/testkaosfire.java, 0KB, , updated: 1997/8/25 13:45, local time: 2024/11/17 20:15,
3.135.184.127:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://techref.massmind.org/techref/language/java/nosugar/graphics/pall/code/testkaosfire.java"> language java nosugar graphics pall code testkaosfire</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to techref.massmind.org! |
.