Ok so im using netbeans to create a form that takes user input then puts this data on to a ms access file using a simple sql statement. My class objective is to retrieve the data and show it on the console using this piece of code:
s.execute("SELECT * FROM DOGS");
ResultSet rs = s.getResultSet();
if (rs != null)
while ( rs.next() ) {
System.out.println("Dog Information: Name: " + rs.getString(1) + " Breed: "
+rs.getString (2) +" Age: "+rs.getString(3)
+" Neutered: "+rs.getString(4));
}
All dandy so far. But now what I would like to try is to output the data as a graph on another jform. The data is simple enough, just citys and sales numbers. What I want to ask is if someone could nudge me in the right direction of how to go about turning data into a graph?