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.
IndexDiscussionExhibition › Resizable Applet
Page Index Toggle Pages: 1
Resizable Applet (Read 1936 times)
Resizable Applet
Nov 20th, 2007, 9:37am
 
http://www.metaportaldermedienpolemik.net/processing.org/applet_resize

Please use this thread for comments and feedback.
Re: Resizable Applet
Reply #1 - Nov 20th, 2007, 9:42am
 
After resizing Anti-Aliasing stops working. So far this happened with every OS/Browser combination I tested this with (Ubuntu/WinXP/Firefox/IE6).
Re: Resizable Applet
Reply #2 - Nov 20th, 2007, 2:06pm
 
just for the sake of findability, I repost my statement from here:
http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Syntax;action=display;num=1191000808

looks promising, but unfortunately does not work on Mac Firefox and Safari. The box resizes, but if I release the mouse the applet appears with it's initial size. The html below it stays resized, covered by the applet...
Re: Resizable Applet
Reply #3 - Nov 23rd, 2007, 12:18pm
 
I can't speak to the Mac issues (maybe it's because Java on the Mac sucks in general? Tongue), but the fix for smooth()ing the applet after resizing is simple -- does it work for others? Just add this to your .pde:

Code:

void resize(int w, int h)
{
super.resize(w,h);
if (g != null)
smooth();
}


This is a very cool idea, though, and I'm impressed with how well it works (at least on my machine). Do you have any plans for further work / improvements? I'd love to see this combined with fjen's appletobject stuff (http://bezier.de/processing/xhtml/).

greg
Re: Resizable Applet
Reply #4 - Nov 23rd, 2007, 1:02pm
 
hi this is great.

for me (os-x 10.4 powerbook-g4) it works sometimes in safari 2.x and same issues as patrick (extrapx) has with firefox 2.x.

i'd love to see it integrated in appletobject ..


best
F
Re: Resizable Applet
Reply #5 - Nov 23rd, 2007, 3:49pm
 
Excellent! You beat me to it. Smiley I've been meaning to implement this since I saw some of my work running on a friend's screen set to 1600x1200 or something nuts like that...
Page Index Toggle Pages: 1