Add database Tablenames to the JList in java?

Assuming both snippet is working for you. I mean you are able to print the table names on the console, and you are also able to show some fixed value in your JList. So, why not, instead of System.out.

Println(rsTables. GetString("TABLE_NAME")) use dlmTables. AddElement(rsTables.

GetString("TABLE_NAME")) Where is the problem?

Assuming both snippet is working for you. I mean you are able to print the table names on the console, and you are also able to show some fixed value in your JList. So, why not, instead of System.out.

Println(rsTables. GetString("TABLE_NAME")) use dlmTables. AddElement(rsTables.

GetString("TABLE_NAME")). Where is the problem?

WHAT I NEED HELP WITH - I need help implementing a Jlist which will be filled with fields from a DB column. I tried by searching online for help and the nearest to a solution was what I manage to do above. However I don't know how to do those conversions either.

I would say I am a new beginner in JAVA. Any detailed help is appreciated.

Assuming both snippet is working for you. I mean you are able to print the table names on the console, and you are also able to show some fixed value in your JList. So, why not, instead of System.out.

Println(rsTables. GetString("TABLE_NAME")) use dlmTables. AddElement(rsTables.

GetString("TABLE_NAME")) . Where is the problem?

Thanks for your respond, however result are not displayed in the JList, keep getting an error. "Variable dmlTables location class DBToolSwing". What I did is that in the constructor "DBToolSwing" I have instantiated the JList and then in the void method I'm trying to add a code to add the table name to JList.

I know there is something wrong, not sure about. Please your input is very important to me. Thank you for your time.

Hope to hear from you.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions