Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Retrived data from database and showing in JOptionPane  RSS feed

Dinesh Merugumilli
Posts: 2
Android Java Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to retrieve data from phpMyAdmin>Database and show it in on JOptionPane on click a button.

I write the below code for button actionListener.

This code is for retrieving data from database. My aim is here to show the Sum of values of a column(Amount) in a JOptionPane

When i'm clicking on button, console screen showing some errors, as shown as screenshot in the attachments.

Please guide me to achieve it.
[Thumbnail for Runtime-Error.png]
When i
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!