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);
|
}
|
|
}
|