📜  getcontentpane().setlayout java 代码示例

📅  最后修改于: 2022-03-11 14:52:17.200000             🧑  作者: Mango

代码示例1
public void show(){
  frame = new JFrame("HDR View");
  label = new JLabel(new ImageIcon(image));
  frame.getContentPane().add(label);
  frame.setLayout(new FlowLayout());
  frame.pack();
  frame.setVisible(true);
}