Код: Выделить всё
import javax.swing.*;
public class test {
public static void main(String[] args) {
System.out.print("Starting up...");
createWindow();
}
private static void createWindow() {
JFrame frame = new JFrame("Simple GUI");
frame.setSize(400, 400);
//Ask for window decorations provided by the look and feel.
JFrame.setDefaultLookAndFeelDecorated(true);
//Set the frame icon to an image loaded from a file.
frame.setIconImage(new ImageIcon("/Users/orlygurhugason/Örminal/Orminal/src/Public/Backdrop.png").getImage());
frame.add(new JLabel(new ImageIcon("/Users/orlygurhugason/Örminal/Orminal/src/Public/Backdrop.png")));
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true); //Basic setup
}
}

Я в основном смотрел в Интернете
Подробнее здесь: https://stackoverflow.com/questions/784 ... for-window