Search:

Type: Posts; User: StaticHS

Search: Search took 0.10 seconds.

  1. Replies
    13
    Views
    1,251

    [SOLVED] Re: GUI button not linking back to code

    Thankyou so much dude. It took me a while to figure that out. :)
  2. Re: please help me with this I don't know where is my problem.

    Can you please format your code?
    Announcements - What's Wrong With My Code?
  3. Replies
    13
    Views
    1,251

    [SOLVED] Re: GUI button not linking back to code

    This should work but it does not delay -.-

    JButton btnStartTiming = new JButton("Start Timing");
    btnStartTiming.addActionListener(new ActionListener(){
    public void...
  4. Replies
    13
    Views
    1,251

    [SOLVED] Re: GUI button not linking back to code

    The problem is that the delay doesn't actually occur.
  5. Replies
    13
    Views
    1,251

    [SOLVED] Re: GUI button not linking back to code

    Basically, when the button is pressed, it should delay these commands for one second

    System.out.println(counter);
    txtCounter.setText(counter + "");
    counter++;
    ...
  6. Replies
    13
    Views
    1,251

    [SOLVED] Re: GUI button not linking back to code

    This is the code that I came up with,

    JButton btnStartTiming = new JButton("Start Timing");
    btnStartTiming.addActionListener(new ActionListener(){
    Timer timer = new Timer(delay,...
  7. Replies
    13
    Views
    1,251

    [SOLVED] Re: GUI button not linking back to code

    I think i have figured out the problem,

    //--- Button "Start Timing" created ---

    JButton btnStartTiming = new JButton("Start Timing");
    btnStartTiming.addActionListener(new...
  8. Replies
    13
    Views
    1,251

    [SOLVED] Re: GUI button not linking back to code

    As soon as I think I've fixed it, the whole code dies on me. It requests me to put in some } at the end to fix syntax errors and all of the code basically becomes corrupt and dependent on other...
  9. Replies
    13
    Views
    1,251

    [SOLVED] GUI button not linking back to code

    Hello, I have started coding recently and been working on a simple java timer. My problem is that the button does not show any response even though an action has been done via actionlistener....
Results 1 to 9 of 9