Search in sources :

Example 1 with DarculaLaf

use of com.bulenkov.darcula.DarculaLaf 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)

Example 2 with DarculaLaf

use of com.bulenkov.darcula.DarculaLaf in project vft-capture by videofirst.

the class HideToSystemTray method main.

public static void main(String[] args) throws Exception {
    BasicLookAndFeel darcula = new DarculaLaf();
    UIManager.setLookAndFeel(darcula);
    new HideToSystemTray();
}
Also used : DarculaLaf(com.bulenkov.darcula.DarculaLaf) BasicLookAndFeel(javax.swing.plaf.basic.BasicLookAndFeel)

Aggregations

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