Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Replies
    6
    Views
    1,878

    Re: JButton Auto-changing Reference Variable

    Many times its faster to write some test code and see what happens.

    But you should always read the API doc so you know what the choices are.
  2. Replies
    6
    Views
    1,878

    Re: JButton Auto-changing Reference Variable

    The button objects that were pointed to by b1 (each in turn) still exist. Changing the value of b1 does NOT change the existence of the object that it pointed to. If the buttons are added to a GUI,...
  3. Replies
    6
    Views
    1,878

    Re: JButton Auto-changing Reference Variable

    The value of b1 could be changed every time the assignment statement is executed:
    JButton b1 = mainButtonList.get(b1);
    depending on what the get() method returns.
    For each new value (a reference...
Results 1 to 3 of 3