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 & HelpPrograms › multiple displays how find file in Data Folder
Page Index Toggle Pages: 1
multiple displays how find file in Data Folder (Read 279 times)
multiple displays how find file in Data Folder
Nov 18th, 2008, 9:39am
 
I use it
public class ExampleFrame extends Frame {

    public ExampleFrame() {
        super("Embedded PApplet");

        setLayout(new BorderLayout());
        PApplet embed = new Embedded();
        add(embed, BorderLayout.CENTER);

        // important to call this whenever embedding a PApplet.
        // It ensures that the animation thread is started and
        // that other internal variables are properly set.
        embed.init();
    }
}

public class Embedded extends PApplet {

    public void setup() {
        // original setup code here ...
        size(400, 400);

        // prevent thread from starving everything else
        noLoop();
    }

    public void draw() {
        // drawing code goes here
    }

    public void mousePressed() {
        // do something based on mouse movement

        // update the screen (run draw once)
        redraw();
    }
}
in class Embedded i use PFont
font=loadFont("AmerigoBT-BoldA-48.vlw");
but it say "Could not load font AmerigoBT-BoldA-48.vlw",in data have this font.
Re: multiple displays how find file in Data Folder
Reply #1 - Nov 18th, 2008, 9:40am
 
I use  processing 156 beta
Page Index Toggle Pages: 1