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