I had thought of something.
If you're planning to use that JList for something to do that makes the value of playervalue1 change, then perhaps you should add a ListSelectionListener to it.
See...
Type: Posts; User: javapenguin
I had thought of something.
If you're planning to use that JList for something to do that makes the value of playervalue1 change, then perhaps you should add a ListSelectionListener to it.
See...
Well, before, your code wouldn't even compile.
I moved some things to initComponents() so that it would at least compile.
I've gotten it to compile and show some stuff now.
package match.bonus.calculator;
import java.util.Timer;
import java.util.TimerTask;
import javax.swing.*;
import java.awt.*;...
A button turn the timer on?
Perhaps add an ActionListener to the Toggle Button.
I think I found that a bunch of code appears in the middle of nowhere outside any methods.
Where does this go:
private javax.swing.JLabel jLabel1;
public javax.swing.JList jList1;...
Wait, playerscore1 is a double.
You'll have to make it a Double and then call a toString() as you must set the text to a String.
Double ps1 = playerscore1;
String text = ps1.toString();
...
What is playscore1?
Could you try using the setText() method?
If playscore1 is a JLabel or something like that, can't do something like this
JTextArea area = new JTextArea(100,100);...