Positioning JLabel in JPanel below the image
问题 I want to move the Text below the image and shape in the given example. Please help me to do it. package test; import java.awt.BasicStroke; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import javax.swing.ImageIcon; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; public class TestLabel extends JPanel { private Integer size = 70; private String name; private Image image; public TestLabel(Integer size, String name) { this.name =