Re: My Problem With Jtable
Data for JTable is held in a TableModel. You should create a TableModel for your data (subclass AbstractTableModel) and add it to the table.
See How To Use Tables and Creating A Table Model.
Today, most software exists, not to solve a problem, but to interface with other software...
I.O. Angell
Re: My Problem With Jtable
can u give me simple update on the previous code?
Re: My Problem With Jtable
Quote:
Originally Posted by ahmed17
can u give me simple update on the previous code?
No. Why would we write your code for you? If you want to learn, follow the tutorial. If you get stuck, or don't understand something, ask and we'll try to help you.
Teachers open the door, but you must enter by yourself...
Chinese proverb.
Re: My Problem With Jtable
thanks for you, but i will say to you why i want simple example , first i spend 5 days in this problem , i take object from jtable and take row in array and pass array with array of column name to the constructor of jtable but not work and i do the same idea before with jtable to test how jtable work and i do the following , make 2 array one array strore not from db but in array itself and another stroe coulmn name so it work and in this case not work so wat is the problem ?
Re: My Problem With Jtable
I can't tell what your problem is from that garbled description. I suggest you follow the tutorial and get one of the tutorial examples working, then you can modify it for your own requirements.
If you want help on something specific, post up the relevant code and the full text and stack trace of any error messages, and explain what the code was trying to do, what the expected result was, and what happened. Saying your code 'did not work' is just a waste of time without the details above.
They know enough who know how to learn...
J. Adams
Re: My Problem With Jtable
Wow, I think that is the longest run-on sentence in the history of man.