static JPanel panel;
private JFrame frame;
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
tester window = new tester();
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
public tester() {
initialize();
}
private void initialize() {
Image imgBG = new ImageIcon(this.getClass().getResource("/background.png")).getImage();
Image imgAvatar = new ImageIcon(this.getClass().getResource("/blank.png")).getImage();
panel = new JPanel();
panel.setLayout(null);
JLabel lblLabelBG = new JLabel("");
lblLabelBG.setBounds(10, 3, 635, 129);
lblLabelBG.setIcon(new ImageIcon(imgBG));
lblLabelBG.setBackground(new Color(204, 102, 0));
JLabel AvatarImg = new JLabel("");
AvatarImg.setIcon(new ImageIcon(imgAvatar));
AvatarImg.setBounds(5, 4, 100, 111);
panel.add(AvatarImg);
JLabel lblPH = new JLabel();
lblPH.setFont(new Font("Segoe UI", Font.BOLD, 25));
lblPH.setBounds(15, 110, 172, 22);
lblPH.setText("555-555-5555");
panel.add(lblPH);
JLabel lblRX = new JLabel();
lblRX.setFont(new Font("Segoe UI", Font.BOLD, 25));
lblRX.setBounds(55, 170, 157, 22);
lblRX.setText("546211");
panel.add(lblRX);
panel.add(lblLabelBG);
JScrollPane scrollPane = new JScrollPane(panel);
scrollPane.setBackground(new Color(153, 153, 102));
scrollPane.setBounds(10, 11, 743, 156);
scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
JFrame frame = new JFrame("");
frame.getContentPane().setBackground(new Color(240, 240, 240));
frame.getContentPane().setLayout(null);
frame.setSize(785, 291);
frame.getContentPane().add(scrollPane);
frame.setVisible(true);
}