houzhongjian
2024-10-30 a28ca3f36d0ace05966a8c0fac1e4b5fe921f882
提交 | 用户 | 时间
ce910c 1 package com.netsdk.common;
H 2
3 import java.awt.BorderLayout;
4 import java.awt.event.WindowAdapter;
5 import java.awt.event.WindowEvent;
6
7 import javax.swing.JDialog;
8
9 /*
10  * 智能交通列表双击展示图片框架
11  */
12 public class ListPictureShowDialog extends JDialog {
13     private static final long serialVersionUID = 1L;
14     public ListPictureShowDialog() {
15         setLayout(new BorderLayout());
16         setModal(true);   
17         pack();
18         setSize(800, 600);
19         setResizable(false);
20         setLocationRelativeTo(null);
21         setDefaultCloseOperation(DISPOSE_ON_CLOSE);   // 释放窗体
22
23         
24         listPanel = new PaintPanel();
25         add(listPanel, BorderLayout.CENTER);
26         
27         addWindowListener(new WindowAdapter() {
28             public void windowClosing(WindowEvent e) {
29                 dispose();        
30             }
31         });
32     }
33     
34     public PaintPanel listPanel;
35 }