Search:

Type: Posts; User: andbin

Search: Search took 0.07 seconds.

  1. Replies
    13
    Views
    1,258

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

    The following can serve you as a good "lesson":


    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;

    public class CounterTimer {
    public static void main(String[] args) {
    ...
  2. Replies
    13
    Views
    1,258

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

    Just after the timer() method there is ActionListener counting = .... that the compiler interprets as an instance variable. But this declaration doesn't close correctly. And I suppose it's not what...
  3. Replies
    13
    Views
    1,258

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

    I have not analyzed all the code (there can be other bad things) but one thing is clear: your timer() method is never invoked. So remains the new Timer(delay, null) object that does nothing.
Results 1 to 3 of 3