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 › Interface
Page Index Toggle Pages: 1
Interface (Read 1103 times)
Interface
Jul 10th, 2006, 12:33pm
 
Hello,

Please check out my recent work on interfaces. Any suggestions?

http://noctis.codebase.se/GUI/
Re: Interface
Reply #1 - Jul 20th, 2006, 6:32am
 
Very nice, clean interface.

One suggestion: you could make the text box smooth scrolling using a PGraphics2 to render the text and then copying the PGraphics2 using copy or pixels

Example:
void setup(){
}

void draw(){
 background(255,0,0);
 PGraphics2 oot=new PGraphics2(128,128,null);
 oot.beginFrame();  //begin the frame
 //oot.textFont(myFont,12);  //that's how you do text
 //oot.text("Heya!",20,20);
 oot.rect(20,20,70,30);  //draw something
 oot.endFrame();  //end the frame
 oot.loadPixels();  //load the pixels array
 PImage tmp=new PImage(oot.pixels, oot.width, oot.height, RGB); //copy into a temporary image
 copy(tmp,mouseX,mouseY,32,32,mouseX,mouseY,32,32);
}
Re: Interface
Reply #2 - Jul 22nd, 2006, 12:52pm
 
Thanks,

I'm one step before you. I've done a class which draws vlw-fonts with clipping. So, the next version will support smooth scrolling. Smiley I'll also put in combo boxes, multi-column listboxes and a few other goodies. Smiley
Re: Interface
Reply #3 - Jul 25th, 2006, 8:03am
 
Das Applet funktioniert leider nicht Sad Folgende Exception wird geworfen:

Laden: Klasse Imagine nicht gefunden
java.lang.ClassNotFoundException: Imagine

at sun.applet.AppletClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.applet.AppletClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.applet.AppletClassLoader.loadCode(Unknown Source)

at sun.applet.AppletPanel.createApplet(Unknown Source)

at sun.plugin.AppletViewer.createApplet(Unknown Source)

at sun.applet.AppletPanel.runLoader(Unknown Source)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.

at sun.applet.AppletClassLoader.getBytes(Unknown Source)

at sun.applet.AppletClassLoader.access$100(Unknown Source)

at sun.applet.AppletClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

... 10 more
Exception in thread "Thread-4" java.lang.NullPointerException

at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)

at sun.plugin.AppletViewer.showAppletException(Unknown Source)

at sun.applet.AppletPanel.runLoader(Unknown Source)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException

at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)

at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)
Page Index Toggle Pages: 1