• Post Reply Bookmark Topic Watch Topic
  • New Topic

pass selectedItem in connexion mysql java  RSS feed

 
wafa khan
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi i have jComboBox that can display all of my databases that i have this is the code


so i want when i select an database from the combobox and clique on the botton the connection mysql will be done about this database selected
like in place of jdbc:mysql://localhost/information_schema
here the database is the information_schema it's the database of all databases in server
so i don't think how can i pass the database selected in the URL of connexion java
Please help me
thank you
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!