-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAddBrands.java
29 lines (26 loc) · 904 Bytes
/
AddBrands.java
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
package bootathon;
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.File;
import java.io.IOException;
import java.io.Serializable;
import java.util.ArrayList;
public class AddBrands extends JFrame implements Serializable{
public AddBrands() {
setLayout(null);
setContentPane(new JLabel(new ImageIcon("/root/Downloads/bg1.jpg")));
setBounds(625,260,660,610);
setBackground(new Color(242, 254, 255));
}
void makeUI() {
JLabel nameOfBrand = new JLabel("ENTER BRAND NAME");
nameOfBrand.setForeground(Color.red);
nameOfBrand.setFont(new Font("Times New Roman", Font.BOLD, 20));
//nameOfBrand.setForeground(Color.red);
nameOfBrand.setBounds(230,50,300,50);
nameOfBrand.setBackground(new Color(242, 254, 255));
add(nameOfBrand);
}
}