Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Replies
    16
    Views
    5,349

    Re: Checking the Status of a checkbox

    If you're still having a problem, can you make a small program that compiles and executes and demonstrates the problem.
  2. Replies
    16
    Views
    5,349

    Re: Checking the Status of a checkbox

    Possibly. Read the API doc for the class to see if it can have listeners.


    What value? Set or unset?
  3. Replies
    16
    Views
    5,349

    Re: Checking the Status of a checkbox

    If getChecked() never returns true, then "this.mChecked" must always be false when getChecked() is called.

    Try debugging your code by adding println("mChecked=" + mChecked); at every place...
  4. Replies
    16
    Views
    5,349

    Re: Checking the Status of a checkbox

    How is does the code see if "it is checked"?
    How does it see the name?

    Where is cbla given a value? Does the code only give it a value one time?
  5. Replies
    16
    Views
    5,349

    Re: Checking the Status of a checkbox

    You don't need to make all the variables and methods static. If you use the Singleton pattern, you only need a static varible to hold a reference to the one instance of the class and a static method...
  6. Replies
    16
    Views
    5,349

    Re: Checking the Status of a checkbox

    If the checkboxes are in prefWindow, the only way to access them is by having a reference to prefWindow. You wouldn't need to create a new instance. You would need a way to get a reference. Passing...
  7. Replies
    16
    Views
    5,349

    Re: Checking the Status of a checkbox

    class prefWindow {
    // Define bunch of checkboxes
    mCheckbox cb1 = ...

    // Get the status of our cb1
    public boolean get_cb1() {
    return cb1.getStatus();
    }
    ..
Results 1 to 7 of 7