Search:

Type: Posts; User: javapenguin

Search: Search took 0.26 seconds.

  1. Re: just one more error that i cannot figure out please help me.

    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...
  2. Re: just one more error that i cannot figure out please help me.

    Well, before, your code wouldn't even compile.

    I moved some things to initComponents() so that it would at least compile.
  3. Re: just one more error that i cannot figure out please help me.

    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.*;...
  4. Re: just one more error that i cannot figure out please help me.

    A button turn the timer on?

    Perhaps add an ActionListener to the Toggle Button.
  5. Re: just one more error that i cannot figure out please help me.

    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;...
  6. Re: just one more error that i cannot figure out please help me.

    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();
    ...
  7. Re: just one more error that i cannot figure out please help me.

    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);...
Results 1 to 7 of 7