Stats: 3,192,076 members, 7,946,673 topics. Date: Thursday, 12 September 2024 at 12:17 AM |
Nairaland Forum / Science/Technology / Programming / Java Project Problem !! Help (1086 Views)
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)
Java Project Problem !! Help by sweetguy10(m): 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(m): 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(m): 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. |
(1) (Reply)
Predict When You'll Die With 95 Percent Accuracy, Researchers Say / Opencart Spin And Win Newsletter Subsrciption Popup Extension by Knowband / Can You Code A Simple Android Phone/screen Lock App With Logging?
Viewing this topic: 1 guest(s)
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 16 |