Jaysri
asked on
java swing- create scrollable table
I need to display a table with persons names that have been entered.(using TabelModel and Tablecellrenderer)The table must include a column for person's first and last name, country, salary expectations. It must have column headers. If salary expected is above 100,000, must be displayed in red.
The table must have buttons to create, modify and delete entries. Also same functionalities must be possible thro a menu bar. When Sreate and Modify is selected, there should be a dialog box apperaring to input text. If entered item is already existing, should display appropriate message. Table must be updated appropriately. Also an Exit button/menu should be there.
Thanks in advance.
The table must have buttons to create, modify and delete entries. Also same functionalities must be possible thro a menu bar. When Sreate and Modify is selected, there should be a dialog box apperaring to input text. If entered item is already existing, should display appropriate message. Table must be updated appropriately. Also an Exit button/menu should be there.
Thanks in advance.
ASKER
Thanks for the links, expecially the www.objects.com.au is very good. But i am in a last minute rush, and not much time to look thro for the right soln. Pls. send some source code.
Thanks.
Thanks.
ASKER
The EditableListExample is what i am looking for with the buttons and manu bar.
theres a link to the source on the page
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi Jaysri,
Thnaks a lot for those valuable points...
- Anindya
Thnaks a lot for those valuable points...
- Anindya
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
Some examples here:
http://www.javaalmanac.com/cgi-bin/search/find.pl?words=jtable
and here:
http://www.objects.com.au/java/examples.do