Table [RESOLVIDO]

2 respostas
K

Alguem me ajuda a definir uma table com tamanho especifico?

Se eu faço assim:

float[] widths = {0.1f, 0.1f, 0.05f, 0.75f};
			widths[0] = 10f;
			widths[1] = 10f;
			widths[2] = 10f;
			widths[3] = 10f;
			table = new PdfPTable(4);
			table.setWidths(widths);

ele só altera a largura das células…eu quero reduzir o tamanho da tabela.

Estou utilizando o itext

2 Respostas

facholi

talvez dependa do Layout Manager que vc está usando karen…

para saber sobre Layout Managers:

http://java.sun.com/docs/books/tutorial/uiswing/layout/using.html

:wink:

K

Obrigada Facholi, eu já consegui resolver. =)

Criado 20 de março de 2007
Ultima resposta 20 de mar. de 2007
Respostas 2
Participantes 2