Search:

Type: Posts; User: bgroenks96

Search: Search took 0.10 seconds.

  1. Replies
    6
    Views
    1,880

    Re: JButton Auto-changing Reference Variable

    Yeah the API is my second Bible. I could read it all day...

    I just thought that by reassigning the same reference variable you leave the previously assigned object with a reference of null.
  2. Replies
    6
    Views
    1,880

    Re: JButton Auto-changing Reference Variable

    You were right. Thanks for your help.
  3. Replies
    6
    Views
    1,880

    Re: JButton Auto-changing Reference Variable

    But the problem there is that if the reference for b1 keeps getting changed, it's value is set to the last assignment before the button gets pressed. So if any of the other buttons are pressed, they...
  4. Replies
    6
    Views
    1,880

    JButton Auto-changing Reference Variable

    I want the reference variable for a JButton (say... b1) to automatically change with each iteration of a for loop. So:



    for(int i=0;i<12;i++) {
    JButton b1 = mainButtonList.get(b1);
    ...
Results 1 to 4 of 4