Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2006

Tip: Looking for answers? Try searching our database.

how to change the background image of Jtable Cell

Thread view: 
get_moumita@yahoo.co.in - 02 May 2006 05:13 GMT
hi,
I want to change the background image of a cell in a JTable,when i
click on it...
plz help...
Rhino - 02 May 2006 16:13 GMT
> hi,
> I want to change the background image of a cell in a JTable,when i
> click on it...
> plz help...

It sounds like you will need to write a custom cell renderer or editor to
accomplish that. This article will give you the basics of how to write cell
renderers and editors:
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html.

This article is more advanced and gives considerably more information on how
cell renderers and editors work:
http://www-128.ibm.com/developerworks/library/j-jtable/. It doesn't actually
talk about how you can change background images within a renderer or editor
but you will probably be able to reason out how to do that from this
article.

--
Rhino


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.