Obramowaie JTable

0

Witam. Stworzyłem tabele
tabModel1 = new DefaultTableModel(){

         public boolean isCellEditable(int x, int y) {
                

        	 return false;
         }                       
 };
	
	tabModel1.setColumnCount(6);
	tabModel1.setNumRows(4);
	
	tabela1=new JTable(tabModel1);
	tabela1.setRowHeight(40);
	
	tabela1.setGridColor(Color.black);
	tabela1.setShowHorizontalLines(false);
	tabela1.setSelectionBackground(Color.gray);
	tabela1.setShowVerticalLines(true);
	
	tabela1.setShowGrid(true);
	
	tabela1.getColumnModel().getColumn(0).setPreferredWidth(230);
	tabela1.getColumnModel().getColumn(1).setPreferredWidth(70);
	tabela1.getColumnModel().getColumn(2).setPreferredWidth(210);
	tabela1.getColumnModel().getColumn(3).setPreferredWidth(160);
	tabela1.getColumnModel().getColumn(4).setPreferredWidth(240);
	tabela1.getColumnModel().getColumn(5).setPreferredWidth(220);
	
	
	tabela1.setBounds(10,50,800,500);
	tabela1.setVisible(true);
	add(tabela1);
}

Obramowanie jest na dole tabeli i po prawej stronie. Jak zrobić aby była widoczna?
Dziekuje i pozdrawiam

0

Ok. Już mam
Pozdrawiam

1 użytkowników online, w tym zalogowanych: 0, gości: 1