-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathToolbar.java
More file actions
26 lines (20 loc) · 748 Bytes
/
Copy pathToolbar.java
File metadata and controls
26 lines (20 loc) · 748 Bytes
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
import java.awt.*;
import javax.swing.*;
import javax.swing.border.Border;
public class Toolbar extends JPanel {
private final int height = 80;
private JLabel title = new JLabel("GENERIC MANGA VIEWER");
public Toolbar() {
FlowLayout layout = new FlowLayout(FlowLayout.LEFT, 20, 20);
Border border = BorderFactory.createMatteBorder(0, 0, 5, 0, Color.BLACK);
setBorder(border);
setLayout(layout);
setPreferredSize(new Dimension(WIDTH, height));
setBackground(Pallet.nearBlack);
title.setFont(FontManager.COMIC_FONT.deriveFont(Font.BOLD, 35f));
title.setForeground(Pallet.bitterSweet);
add(title);
add(new UtilButton("Add Manga", UtilButton.UPLOAD_CBZ));
add(new UtilButton("Export Manga", UtilButton.EXPORT_CBZ));
}
}