₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,049 members, 8,420,057 topics. Date: Thursday, 04 June 2026 at 10:27 AM

Toggle theme

Java Project Problem !! Help - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingJava Project Problem !! Help (1147 Views)

1 Reply (Go Down)

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:
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
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:
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.
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:
Yes it’s on Swing .. i’ll check the action performed again and even paste the code here .. thanks
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:
How are you building your GUI, by hand or Netbeans ?
Netbeans
Re: Java Project Problem !! Help by Nobody: 4:48pm On May 18, 2018
sweetguy10:
Yes it’s on Swing .. i’ll check the action performed again and even paste the code here .. thanks
Use an online code editor and link here, its stressful reading code here.
1 Reply

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.234

Proudly9ja! Please Install And Rate Our Mobile App My Fellow ProgrammersWho Can Create This...?Payfist App