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 2007

Tip: Looking for answers? Try searching our database.

Is it possible to put a JPanel within a JTable cell?

Thread view: 
Nigel - 31 May 2007 13:54 GMT
I have been able to add many different types of components to JTabel
cells such as Combo boxes, check boxes, etc..  but when I try adding a
JPanel I am unsuccessful.  Is it possible to add a JPanel to a JTable
cell?  I accomplish adding comboboxes, checkboxes, etc by telling the
custom table manager the type of class that should be displayed in
that particular column. (i.e: to display a combo box I specify
JComboBox.class)  when I specify in the custom table manager that I
would like to display items of type JPanel.class, I am unable to see
the JPanel.

Has anyone been able to add a JPanel to a JTable or am shooting myself
in the foot?

Thanks for any advice.

- Nigel
Daniel Pitts - 31 May 2007 15:07 GMT
> I have been able to add many different types of components to JTabel
> cells such as Combo boxes, check boxes, etc..  but when I try adding a
[quoted text clipped - 12 lines]
>
> - Nigel

JPanels are blank, so you wouldn't see them, would you?


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



©2008 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.