You are on page 1of 1

super("Welcome");

Container c = getContentPane();
c.setLayout(new FlowLayout());
c.setBackground(new Color(41, 137, 216));
img = new ImageIcon("C:\\Users\\user7\\Desktop\\feedstir\\facebook-circl
e.png");
setIconImage(img.getImage());
file = new File(Image);
try {
boolean found=true;
BufferedReader data = new BufferedReader (new FileReader
("Accounts.txt"));
String line = data.readLine();
image = ImageIO.read(file);
pic = new ImageIcon(image);
lblWelcome = new JLabel("Welcome");
lblWelcome.setFont(new Font("Verdana", Font.PLAIN, 30));
lblPP = new JLabel();
lblPP.setIcon(pic);
}
catch(IOException e) {
System.out.println(e);
}
c.add(lblWelcome);
c.add(lblPP);
setSize(500, 500);
setVisible(true);
setLocationRelativeTo(null);
setResizable(false);

You might also like