Example 7-1 */ merchandise java awt.*; import java applet. Applet; import java sql.*; public class example71 extends java applet. Applet { String url; String Name; Connection con; TextArea OutputField = new TextArea(10,35); NFBarchartApp bar; // This is the bar chart class from the NetCharts package public void init() { setLayout(new BorderLayout()); url=”jdbc:msql://elanor/jdbctest”; // The URL for the database we desire to cerebrate to ConnectToDB(); // Connect to the database add(”North”. OutputField); // Add the TextArea for showing the data to the user arrange columnData[] = getData(”select * from Employee”); // Run a query that goes and gets the complete delay listing; we can put // any query here and would optimally want to get only the columns we // need. ShowFormattedData(columnData); // Show the data in the TextArea ShowChartData(columnData[3],columnData[2]); // Now go the two data sets and create a bar chart add(”Center” bar); // And add the bar chart to the applet’s panel } public void ShowFormattedData(String[] columnD ) { int i; for ( i=0; i
This entry was posted on Thursday. October 25th. 2007 at 8:00 pmand is filed under. You can follow any responses to this entry through the feed. You can or from your own site.
Forex Groups - Tips on Trading
Related article:
http://jboss.virtualwebstudio.com/2007/10/25/70/
comments | Add comment | Report as Spam
|