Re: Is it possible to put a JPanel within a JTable cell?
On May 31, 5:54 am, Nigel <nigelstu...@xxxxxxxxx> wrote:
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
JPanels are blank, so you wouldn't see them, would you?
.
Relevant Pages
- Re: Different component in different cell of a jTable column
... So my need is only to create checkbox or combobox (required from the ... case of string answer the cells of the table are yet ready. ... new JPanel(new BorderLayout(5,5)); ... (comp.lang.java.programmer) - Is it possible to put a JPanel within a JTable cell?
... cells such as Combo boxes, check boxes, etc.. ... Is it possible to add a JPanel to a JTable ... would like to display items of type JPanel.class, ... (comp.lang.java.programmer) - Is it possible to put a JPanel within a JTable cell?
... cells such as Combo boxes, check boxes, etc.. ... Is it possible to add a JPanel to a JTable ... would like to display items of type JPanel.class, ... (comp.lang.java.programmer) - JTable/JTextArea flicker problem
... I have a JTable using a cell renderder which extends JTextArea in order to allow the text within the cells to wrap to the next line and not be tuncated. ... This is achieved by using a MouseMotionListener on the JPanel and then using a fireTableDataChanged method each time the mouse is moved. ... This all works fine, except that within the cells where the text has wrapped to the next line as desired, there is a 'flicker' everytime the mouse is moved. ... I mean it flashes white for a split second before changing back to the desired light-grey background. ... (comp.lang.java.gui) - Having trouble with "vbcr"
... When I use "vbcr" in trying to display text in text boxes and cells, ... Instead of my text being moved to the next line, the carriage return ... (microsoft.public.excel.programming) |
|