Java Project Problem !! Help - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › Java Project Problem !! Help (1147 Views)
| Java Project Problem !! Help by sweetguy10(op): 10:13pm On May 16, 2018 |
Pls I’m having a problem getting result set rows from database to display in a new frame/panel . I have created a loop for(I=0; I<rs.getString(); i++)//Or maybe while rs.next();{ //Statement code } But there seems to be some error as the button is not responding to the action event . The query statement using prepared statement is pst=con.preparedStatement(“select * from ticketing where Urgency=?”) pst.executeQuery(); /*ticketing is the name of the table where the query is searching from the database */ Please is the error coming frm the query or the loop through the resultSet? Thanks |
| Re: Java Project Problem !! Help by Nobody: 9:58pm On May 17, 2018 |
sweetguy10:No idea if you are referring to Swing, Android or JavaFX, sorry which is it ? But since you mentioned frame and panel I will assume swing, did you implement the ActionListener and provided the action performed method and check the event and the control if its your button. |
| Re: Java Project Problem !! Help by sweetguy10(op): 8:34am On May 18, 2018 |
pcguru1:Yes it’s on Swing .. i’ll check the action performed again and even paste the code here .. thanks |
| Re: Java Project Problem !! Help by Nobody: 3:16pm On May 18, 2018 |
sweetguy10:How are you building your GUI, by hand or Netbeans ? |
| Re: Java Project Problem !! Help by sweetguy10(op): 3:43pm On May 18, 2018 |
pcguru1:Netbeans |
| Re: Java Project Problem !! Help by Nobody: 4:48pm On May 18, 2018 |
sweetguy10:Use an online code editor and link here, its stressful reading code here. |
How Do I Get Java Development Kit On My System? • Java EE Developer And Spring Developer In Here. • Java Programmers ,I Need Help Fixing This Code. • 2 • 3 • 4
Proudly9ja! Please Install And Rate Our Mobile App My Fellow Programmers • Who Can Create This...? • Payfist App