We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › applet to java application!
Page Index Toggle Pages: 1
applet to java application?! (Read 1098 times)
applet to java application?!
Jun 25th, 2005, 1:34pm
 
hi...

i want to convert my papplet to an java application but i don't get it started up...

my code:
public class SoundAnm extends PApplet implements
ActionListener{

//vars
public PApplet pa;
public JFrame jf;

public SoundAnm() {


jf = new JFrame();


pa = new PApplet();


pa.setup();


pa.draw();


jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);//for closing window



jf.setContentPane(pa);


jf.pack();


jf.setVisible(true);

}

public static void main(String[] args) {


SoundAnm sa = new SoundAnm();

}

public void setup() {



size(dim, dim);

}

public void draw() {


background(255);


}
}

whats wrong with this code? is it possible to convert a papplet to an application anyway?!

thx, h4nni
Page Index Toggle Pages: 1