KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > prefuse > demos > applets > Congress


1 package prefuse.demos.applets;
2
3 import prefuse.data.Table;
4 import prefuse.data.io.DelimitedTextTableReader;
5 import prefuse.util.ui.JPrefuseApplet;
6
7
8 public class Congress extends JPrefuseApplet {
9
10     public void init() {
11         // load the data
12
Table t = null;
13         try {
14             t = new DelimitedTextTableReader().readTable("/fec.txt");
15         } catch ( Exception JavaDoc e ) {
16             e.printStackTrace();
17             System.exit(1);
18         }
19         this.getContentPane().add(new prefuse.demos.Congress(t));
20     }
21     
22 } // end of class Congress
23
Popular Tags