My code here:
but it doesn't work. How can I do that? I have a list table name in jcombobox get from database, and when I choose one of them, this frame will display all column and information of table.
Try putting empty space after the FROM statement. However, what you are doing is just a string manipulation and might create an injection risk. You should at least use paratmetrized strings with placeholders.
You can check the link below: