public void focusGained(FocusEvent arg0) {
JTextField componente = (JTextField) arg0.getComponent();
componente.setBackground( new Color(Integer.parseInt("FFE87C", 16)) );
}
ja tentei trocar a cor no setBackground para Color.BLACK por exemplo..mas nao deu certo...
percebi q é após eu usar o LookAndFeel do sistema.. se eu retiro essa parte:try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
SwingUtilities.updateComponentTreeUI(this);
setLocationRelativeTo(null);
setResizable( isHabilitaMaximizar() );
} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (InstantiationException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (UnsupportedLookAndFeelException e) {
e.printStackTrace();
}
o q pode ser?
obrigado...