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.
Page Index Toggle Pages: 1
Frame vs. JFrame (Read 3769 times)
Frame vs. JFrame
Sep 13th, 2006, 5:25am
 
Can anyone tell me why PApplet uses a Frame instead of a JFrame for the sketch?  From what I can tell, the JFrame seems to have the advantage of being able to take advantage of Swing components, as well as special keybindings and other nifty features.  What is the advantage of a Frame over a JFrame?
Re: Frame vs. JFrame
Reply #1 - Sep 13th, 2006, 6:16am
 
because JFrame would make everything run with swing, which is a bloated piece of crap. it would also hose any possibility of ever getting 1.1 support working again.

but more important, there's nothing to prevent you from embedding a PApplet into a JFrame, it's just that the base version uses a regular AWT frame because there's simply no need for swing in that context. if people want to use swing, they can embed themselves as they wish.
Page Index Toggle Pages: 1