i using java library requires objects used awt event dispatch thread. create interface program using library. far have this.
public abstract class iprogram implements runnable { public static void main(string[] args) { } public void run() { start(); } public abstract void start(); }
in main method run whatever subclass made. example, if program:
public class myprogram implements iprogram { public void start() { //code run program here... } }
i run myprogram , have run runnable. possible? if is, put in main method of iprogram?
edit: call runnable use swingutilities.invokelater(new runnableimplementation());
Comments
Post a Comment