Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Replies
    17
    Views
    1,825

    Re: How to add Image to my JButtons?

    Glad it's working.
  2. Replies
    17
    Views
    1,825

    Re: How to add Image to my JButtons?

    The button you want to change is in the array and has been added to the GUI and is being shown.
    Don't add it to the GUI again unless you want to change its position. You can access the button and...
  3. Replies
    17
    Views
    1,825

    Re: How to add Image to my JButtons?

    Do you understand what your code was doing?
    Are you able to have the program do what you want?
  4. Replies
    17
    Views
    1,825

    Re: How to add Image to my JButtons?

    The button at [0][1] has already been added to the GUI and is being shown. Where will adding it again put it?
  5. Replies
    17
    Views
    1,825

    Re: How to add Image to my JButtons?

    If you want the button at location [0][1] to show an image you need to set the icon for that button to the image.
  6. Replies
    17
    Views
    1,825

    Re: How to add Image to my JButtons?

    What is supposed to happen when the code executes that shows the problem?
    When I execute the code a grid is displayed. There are no images shown.
  7. Replies
    17
    Views
    1,825

    Re: How to add Image to my JButtons?

    Please post the small test program here on the forum so it can be copied for testing.
  8. Replies
    17
    Views
    1,825

    Re: How to add Image to my JButtons?

    So the only button with an image is the last one.
    Strange that the location is [7][7] when the array does not have 8 slots. The max index for a 7 element array is 6.

    Can you post a small...
  9. Replies
    17
    Views
    1,825

    Re: How to add Image to my JButtons?

    Does the image show in any of the buttons? If so, then you need to figure out why the location of the button is not where you want it to be.

    How do the locations of the buttons in the 2D array...
Results 1 to 9 of 9