EDIT: Well some of my code was lost when I pasted it here, but hopefully they were just small details.
When I run my program (which isn't finished), I don't get a 700x700 window as specified. It just gives me a small grey box. I assumed the problem was in setup() or draw(), but it didn't reach any println() statements I tried so I think the problem is in one of my other methods or my private class. Basically, I'm looking for where my problem is: why my applet doesn't have the specified values. Here is the code:
import java.io.*;
import java.net.URL;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
BufferedReader reader;
class GeoTrends extends PApplet{
TwitterSearcher ts = new TwitterSearcher();
//GoogleSearcher gs = new GoogleSearcher();
void setup(){
println("here");
size(700, 700);
println("got here");
background(255);
println("and here!");
fill(0);
PFont f = loadFont("Calibri-20.vlw");
textFont(f);
}
void draw(){
println("rawr");
text("Searching Twitter for #" + ts.loc + "...", 50, 50);
text(ts.url, 50, 100);
}
private class TwitterSearcher {
String loc, url;
ArrayList<String> tweetList;
public TwitterSearcher(){
loc = makeURLFriendly(JOptionPane.showInputDialog("location to search for"));
url = "http://search.twitter.com/search.json?q=%23" + loc + "&max_results=10";