dongyukun
2024-11-05 e8ad669f7c97d45cd23630dc101180a130d6c17e
提交 | 用户 | 时间
ce910c 1 package com.iailab.module.data.dev.dahua.frame;
H 2
3 import com.netsdk.common.BorderEx;
4 import com.netsdk.common.Res;
5
6 import javax.swing.*;
7 import javax.swing.border.EmptyBorder;
8 import java.awt.*;
9
10 /**
11  * @author PanZhibao
12  * @Description
13  * @createTime 2024年04月15日
14  */
15 public class DHCapturePictureFrame extends JFrame {
16     private static final long serialVersionUID = 1L;
17
18     public DHCapturePictureFrame(Panel realPlayWindow) {
19         setTitle(Res.string().getCapturePicture());
20         setLayout(new BorderLayout());
21         pack();
22         setSize(800, 560);
23         setResizable(false);
24         setLocationRelativeTo(null);
25
26         this.realPlayWindow = realPlayWindow;
27         realPanel = new RealPanel();
28         this.realPlayWindow.setEnabled(true);
29
30         add(realPanel, BorderLayout.CENTER);
31     }
32
33     /*
34      * realplay show and control panel
35      */
36     private class RealPanel extends JPanel {
37         private static final long serialVersionUID = 1L;
38
39         public RealPanel() {
40             BorderEx.set(this, Res.string().getRealplay(), 2);
41             setLayout(new BorderLayout());
42
43             realplayPanel = new JPanel();
44             add(realplayPanel, BorderLayout.CENTER);
45
46             /************ realplay panel **************/
47             realplayPanel.setLayout(new BorderLayout());
48             realplayPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
49             //realPlayWindow = new Panel();
50             realPlayWindow.setBackground(Color.GRAY);
51             realplayPanel.add(realPlayWindow, BorderLayout.CENTER);
52
53             realPlayWindow.setEnabled(false);
54
55         }
56     }
57
58     private RealPanel realPanel;
59     private JPanel realplayPanel;
60     private Panel realPlayWindow;
61 }