All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dua3.utility.swing.SwingLogFrame Maven / Gradle / Ivy

package com.dua3.utility.swing;

import com.dua3.cabe.annotations.Nullable;
import com.dua3.utility.logging.LogBuffer;

import javax.swing.JFrame;

public class SwingLogFrame extends JFrame {
    public SwingLogFrame() {
        this("Log");
    }

    public SwingLogFrame(String title) {
        this(title, null);
    }

    public SwingLogFrame(String title, @Nullable LogBuffer buffer) {
        super(title);

        setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        setContentPane(new SwingLogPane(buffer));
        setSize(800, 600);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy