Search in sources :

Example 1 with CaptureException

use of io.videofirst.capture.exception.CaptureException in project vft-capture by videofirst.

the class VfCaptureUi method setUiLookAndFeel.

/**
 * Set look and feel (needs to be done before application loads up).
 */
private void setUiLookAndFeel() {
    try {
        BasicLookAndFeel darcula = new DarculaLaf();
        UIManager.setLookAndFeel(darcula);
    } catch (UnsupportedLookAndFeelException ex) {
        throw new CaptureException("Look and feel not supported");
    }
}
Also used : DarculaLaf(com.bulenkov.darcula.DarculaLaf) CaptureException(io.videofirst.capture.exception.CaptureException) UnsupportedLookAndFeelException(javax.swing.UnsupportedLookAndFeelException) BasicLookAndFeel(javax.swing.plaf.basic.BasicLookAndFeel)

Aggregations

DarculaLaf (com.bulenkov.darcula.DarculaLaf)1 CaptureException (io.videofirst.capture.exception.CaptureException)1 UnsupportedLookAndFeelException (javax.swing.UnsupportedLookAndFeelException)1 BasicLookAndFeel (javax.swing.plaf.basic.BasicLookAndFeel)1