How to merging the particular cells in JTable



How to merging the particular cells in JTable..

Answer / chaitanya

TableCellRenderer renderer = aColumn.getHeaderRenderer();
or u can modify the code
TableCellRenderer renderer = header.getDefaultRenderer();

Is This Answer Correct ?    4 Yes 24 No

Post New Answer

More Swing Interview Questions

What is an event and what are the models available for event handling?

0 Answers  


What are tab pans?

3 Answers  


What are heavy weight components ?

0 Answers  


When i m clicking on next another frame is open but i want to hide the previous frame...........but it is not happening....still both frame are visible........how to make one frame to hide.......please help me.......

9 Answers  


What is the corresponding Layout for Card in Swing?

3 Answers   Patni,






Is javafx better than swing?

0 Answers  


What is content pane in swing?

0 Answers  


Why would you use swingutilities.invokeandwait or swingutilities.invokelater?

0 Answers  


Why is model-view-controller architecture used in swing?

0 Answers  


Explain the difference between swing and jsf.

0 Answers  


What is the difference between a scrollbar and a jscrollpane ?

0 Answers  


What class is at the top of the AWT event hierarchy?

0 Answers  


Categories