Replacement of a JPanel element without adding to the end of the panel?
问题 I posted a question earlier about this but the solution never worked and now it's under different circumstances. I'm making a "penny pitch" program, that, when the "confirm" button is pressed, a randomized number will dictate which spot on the board(the board is fill with image icons) the "penny" will fall, and in the process it removes the image icon that use to occupant the chosen space. I set up a GridBagLayout to constrain each icon down, and my button has no problem removing the chosen