JPanel not showing up
问题 Why is the UI not showing up in my code below: public class GUI extends JPanel{ public GUI(String name, String address, List<String> reviews, Icon icon){ setSize(600,600); setLayout(new BorderLayout()); JLabel iconLabel = new JLabel(icon); JLabel nameLabel = new JLabel(name); JLabel addressLabel = new JLabel(address); JPanel southReviewPanel = new JPanel(); southReviewPanel.setLayout(new BoxLayout(southReviewPanel, BoxLayout.Y_AXIS)); for (String review: reviews) { southReviewPanel.add(new