Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    7
    Views
    1,554

    [SOLVED] Re: Layout Manager and Keyboard Panel

    Using static can be a problem sometimes. Pass a reference (use "this") to the constructor when you create the class that needs the reference and have the constructor save it in a class variable. ...
  2. Replies
    7
    Views
    1,554

    [SOLVED] Re: Layout Manager and Keyboard Panel

    Are you asking how to get the values for component2 when executing a method in component1?

    You need a reference to component2 in component1 so that the methods in component1 can use that reference...
  3. Replies
    7
    Views
    1,554

    [SOLVED] Re: Layout Manager and Keyboard Panel

    I was referring to the massive list of assignment statements for the map array:


    int[][] map = new int[32][12];
    map[0][0] = 1;
    map[1][0] = 0; //<<<<<<<<<<<<< NOT NEEDED
    ...
  4. Replies
    7
    Views
    1,554

    [SOLVED] Re: Layout Manager and Keyboard Panel

    The default value for an element in an int array is 0. You only need to set the non-zero entries.
Results 1 to 4 of 4