Tiled Image Gallery in Java
问题 I was wondering how to go about making an image gallery like this one: All I would need is for it to display images in a 5x5 square like above with a click event for each image (I know how to do ActionEvents) I tried making a GridLayout with the constructor 5, 5 , then adding images with panel.add(image, 0, 0); and so on, but to no avail. Here's that code: imagelayout = new GridLayout(5, 5, 5, 5); imagepanel = new JPanel(imagelayout); JLabel image = new JLabel(LogoManager.getInstance()