So, guys, I have a jTextField
that works normally, but when I put it as static
setText
does not work anymore, and I need it static because I do the same for a function, I did it without swing
and it worked out I do not know what's happening right now.
The following is the code below:
//Codigo gerado automaticamento pelo swing
public static javax.swing.JTextField blueBGolem;
blueBGolem.setEditable(false);
blueBGolem.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
blueBGolem.setForeground(new java.awt.Color(255, 255, 255));
blueBGolem.setHorizontalAlignment(javax.swing.JTextField.CENTER);
blueBGolem.setText("5:00");
blueBGolem.setBorder(null);
blueBGolem.setOpaque(false);
Painel.add(blueBGolem);
blueBGolem.setBounds(0, 0, 70, 17);
private void blueBGolemStartActionPerformed(java.awt.event.ActionEvent evt) {
//timerBlueBGolem.start();
blueBGolem.setText("ooi");
}
EDIT
I think it's something in my code but I can not find what ..
follows the complete code