Search in sources :

Example 1 with RecordPanel

use of io.videofirst.capture.ui.panels.RecordPanel in project vft-capture by videofirst.

the class VfCaptureFrame method init.

// Private methods
private void init() {
    this.getContentPane().add(new RecordPanel(captureService), BorderLayout.CENTER);
    // Set size / position
    Dimension size = new Dimension(width, height);
    Point location = getCentredLocation(this, size);
    this.setSize(size);
    this.setLocation(location.x, location.y);
    this.setIconImage(Toolkit.getDefaultToolkit().getImage(CAPTURE_ICON_16));
    this.setVisible(true);
    this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
Also used : RecordPanel(io.videofirst.capture.ui.panels.RecordPanel) Dimension(java.awt.Dimension) Point(java.awt.Point)

Aggregations

RecordPanel (io.videofirst.capture.ui.panels.RecordPanel)1 Dimension (java.awt.Dimension)1 Point (java.awt.Point)1