[b]LookAndFeel JInternalFrame[/b]

1 resposta
A

Por favor.
Gostaria de saber como faço pra alterar o LookAndFeel do meu JInternalFrame, pois o meu JFrame esta com o Look do windows e minha InternalFrame com Metal.

Desde já agradeço.

1 Resposta

R

e ai blz…
tenta isso…

private javax.swing.UIManager.LookAndFeelInfo looks[];


public void mudaLookAndFeel() {
	looks = javax.swing.UIManager.getInstalledLookAndFeels();
		try {
                                                                 //1 metal					                // 2 window
javax.swing.UIManager.setLookAndFeel( looks[2].getClassName() );
			javax.swing.SwingUtilities.updateComponentTreeUI( this );
		} catch (Exception e) {
			JOptionPane.showMessageDialog(null, 
					"EXCEPTION NO MUDALOOKANDFEEL ", 
					"Tela",JOptionPane.WARNING_MESSAGE);
		}
	}

falou…

Criado 16 de agosto de 2005
Ultima resposta 16 de ago. de 2005
Respostas 1
Participantes 2