How do I develop my code to listen for F5 and F10, so if F5 is pressed run 'runSQL(conn, sqlStatement.getText().trim());' otherwise if F10 is pressed run 'runUpdateQuery(conn,...
Apologies, I meant run jar not create.
Anyway, thanks for the lead - I put the jar in the folder relative to the lib directory and it is now running :-)
Thanks - hadn't noticed that 'forward slash'.
Still can't create my jar file. 2 more screenshots 1)my layout in Eclipse and 2) the latest output from command
The mysql driver is on the build path (as far as I can tell). I added it by right-clicking on the project in Eclipse/build path/configure and under Libraries I can see the mysql driver which...
I am working on a java front-end with a mysql database back-end.
It work's well in Eclipse, however, when I export it to a jar file I get the following 'class not found exception...
If you want to use a free text editor for Java coding take a look at Notepad++. It's a powerful text editor with its own set of plugins etc and I use it for everyday text use - great for copying and...
I have studied this loop but I cannot for the life of me figure out how to print lines at the top of my list.
I am trying method 1 proposed by Norm, i.e. Get the old text,...
I tried your method previously - it doesn't work. I need to print the most recent line at the top of my JTextArea but instead the most recent line prints at the bottom. In effect I need the data...
I was trying different methods with different techniques but none of my my methods prints the line at the top of the JTextArea. I left the code as was...aploogies for the confusion.
I have tried many permutations to concatenate the data to insert the new line at the front v end with no luck so far. I am having problems concatenating old and new data inside a loop. This is...