blob: 6c77e079b7ed989a9d9d02edbcee932b43c44c02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
package UI;
import UI.Components.InputBox;
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import java.awt.*;
public class SettingsPopupWindow extends JFrame {
public InputBox hostnameInput;
public JButton saveButton;
public SettingsPopupWindow() {
this.setTitle("Settings - Library Management System");
this.setSize(350, 200);
this.setResizable(false);
this.setLocationRelativeTo(null);
this.hostnameInput = new InputBox("Hostname:");
this.hostnameInput.setBorder(new EmptyBorder(0, 10, 0, 10));
this.add(this.hostnameInput);
saveButton = new JButton("Save");
JPanel buttonPanel = new JPanel();
buttonPanel.setBorder(new EmptyBorder(0, 0, 0, 12));
buttonPanel.add(saveButton);
this.add(buttonPanel);
this.setLayout(new FlowLayout(FlowLayout.TRAILING));
}
}
|