Alejandro Acuña
2025-04-29 d1d736e487d9eb104dcae9def948066037afd2f0
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
36
37
38
39
40
41
42
package art.servers.rtzserver.gui;
 
import art.client.GUI.components.devices.window.colors.rtz32.realtime.RTZ32_PanelRealtime_Colors;
import art.library.model.devices.colors.controller.RTZ32.RTZ32_Controller;
import java.awt.BorderLayout;
import java.util.Timer;
import java.util.TimerTask;
import javax.swing.JFrame;
 
public class RTZ32_Window_Realtime extends JFrame
{
    private RTZ32_Controller rtz32 = null;
    private RTZ32_PanelRealtime_Colors panel = null;
    
    public RTZ32_Window_Realtime(RTZ32_Controller rtz32)
    {
        this.rtz32 = rtz32;
        RTZ32_PanelRealtime_Colors panel = new RTZ32_PanelRealtime_Colors(rtz32);
        this.getContentPane().setLayout(new BorderLayout());
        this.getContentPane().add(panel, BorderLayout.CENTER);
        
        Timer timer = new Timer();
        timer.scheduleAtFixedRate(new TimerTask() 
        {
            public void run () 
            {
                try
                {
                    panel.timer();
                }
                catch (Exception exception)
                {
                }
            }
 
        }, 0, 1000);    
 
        this.setSize(1920, 1080);
        this.setLocation(1920, 0);
    }
    
}