[SPOUT] Listing MySQL results in a label

Discussion in 'Plugin Development' started by grichecth, Nov 26, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    grichecth

    Hi All,

    Me again..

    I'm trying to get the output of a mysql query & put it into a label. In my DB I have two rows and just one column.

    If I system.out.println(resultvar); it shows the two records in the console great but if I do results.setText(resultsvar); it just layers the two rows ontop of each other. I've attached a screen shot to better demonstrate what I mean.

    Is there a better way than using a label? Is that the problem?

    Edit:
    I used a:
    for (int i=0; i <columnCount ; i++){
    resultz += rs.getString(1).toString() + "\n";
    }
    To try to solve it as well, same results.

    ss.png
     
Thread Status:
Not open for further replies.

Share This Page