Como centralizar Mensagem de JOptionPane?

Já tentei colocar html entre a mensagem e não posso setar o label como null.

JPanel panel = new JPanel();

contentPane.add(panel);

JInternalFrame internalFrame = null;

panel.add(internalFrame);

JLabel label = new JLabel();

internalFrame.getContentPane().add(label);

JOptionPane.showInternalMessageDialog(label,
					"Faça Upload do Arquivo!", "Aviso:",
					JOptionPane.INFORMATION_MESSAGE);

Meiryellen vc pode fazer isso com as tags de HTML

,

, entre outros. Porém é necessário vc definir a largura, do contrário não irá funcionar.

Segue exemplo:

JOptionPane.showInternalMessageDialog(label,"<html><body><p width='200px' align='center'>This is some text!</p></body></html>" , "Aviso:", JOptionPane.INFORMATION_MESSAGE);

Funcionou :). Obrigada urbgames, eu estava definindo a largura mesmo.

eu não estava definindo a largura