상세 컨텐츠

본문 제목

How to increase JTable cell size ? (jtable 셀사이즈)

JAVA/JAVA UI

by AlrepondTech 2011. 9. 21. 16:26

본문

반응형

 

 

 

 

=================================

=================================

=================================

 

 

 

 

 

출처: http://www.coderanch.com/t/335845/GUI/java/increase-JTable-cell-size

  1. table.setRowHeight( int row, int height );  
  2. table.getColumnModel().getColumn( int column ).setWidth( int width ); 



To make your table uneditable, you'll need to extend DefaultTableModel and override the isCellEditable() method to always return false.

  1.         public boolean isCellEditable( int row, int col ) {  
  2.             return false;  
  3.         } 



=================================

=================================

=================================

 

 

 

 

반응형


관련글 더보기

댓글 영역