MCPcopy Index your code
hub / github.com/AnthonyZabs/SimpleJavaLoginMD / initComponents

Method initComponents

src/com/login/Login.java:13–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 }
12
13 @SuppressWarnings("unchecked")
14 // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
15 private void initComponents() {
16
17 bg = new javax.swing.JPanel();
18 logo = new javax.swing.JLabel();
19 logoname = new javax.swing.JLabel();
20 citybg = new javax.swing.JLabel();
21 header = new javax.swing.JPanel();
22 exitBtn = new javax.swing.JPanel();
23 exitTxt = new javax.swing.JLabel();
24 favicon = new javax.swing.JLabel();
25 title = new javax.swing.JLabel();
26 userLabel = new javax.swing.JLabel();
27 userTxt = new javax.swing.JTextField();
28 jSeparator1 = new javax.swing.JSeparator();
29 passLabel = new javax.swing.JLabel();
30 passTxt = new javax.swing.JPasswordField();
31 jSeparator2 = new javax.swing.JSeparator();
32 loginBtn = new javax.swing.JPanel();
33 loginBtnTxt = new javax.swing.JLabel();
34
35 setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
36 setLocationByPlatform(true);
37 setUndecorated(true);
38 setResizable(false);
39
40 bg.setBackground(new java.awt.Color(255, 255, 255));
41 bg.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
42
43 logo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
44 logo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/images/logo.png"))); // NOI18N
45 bg.add(logo, new org.netbeans.lib.awtextra.AbsoluteConstraints(550, 90, 290, 140));
46
47 logoname.setBackground(new java.awt.Color(255, 255, 255));
48 logoname.setFont(new java.awt.Font("Roboto Medium", 0, 18)); // NOI18N
49 logoname.setForeground(new java.awt.Color(255, 255, 255));
50 logoname.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
51 logoname.setText("NOMBRE EMPRESA");
52 bg.add(logoname, new org.netbeans.lib.awtextra.AbsoluteConstraints(554, 250, 290, 20));
53
54 citybg.setBackground(new java.awt.Color(0, 134, 190));
55 citybg.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/images/city.png"))); // NOI18N
56 bg.add(citybg, new org.netbeans.lib.awtextra.AbsoluteConstraints(548, 0, -1, 500));
57
58 header.setBackground(new java.awt.Color(255, 255, 255));
59 header.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
60 public void mouseDragged(java.awt.event.MouseEvent evt) {
61 headerMouseDragged(evt);
62 }
63 });
64 header.addMouseListener(new java.awt.event.MouseAdapter() {
65 public void mousePressed(java.awt.event.MouseEvent evt) {
66 headerMousePressed(evt);
67 }
68 });
69
70 exitBtn.setBackground(new java.awt.Color(255, 255, 255));

Callers 1

LoginMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected