i have a class that adds some user input to my database. i have many other classes that add to the DB and this one is nothing special. i have a very small swing application that i use to test to make sure the entries are stored properly and the code for the database works. However in my actual program the input is put into a JFrame that displays when a button is pushed(setVisible(true) when button is pushed. the Class name is OptionFrame. If i try to setVisible directly to OptionFrame is says non static method setVisible cannot be accessed from static content. So i instantiate my own static version of the frame and set that Visible to true. So the window pops up, when i press enter it says database locked rather than entering the information. Like i said, i tested the database code without the pop up frame and it works...why am i having this issue. Here is the code for the class...
Here is the code for the instantiation and the action event
Here is the code to insert into databse, as ive said before though i know that this code works outside of this OptionFrame.
Here is the code for the instantiation and the action event
Here is the code to insert into databse, as ive said before though i know that this code works outside of this OptionFrame.