-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNewJPanel.java
More file actions
44 lines (30 loc) · 1.15 KB
/
NewJPanel.java
File metadata and controls
44 lines (30 loc) · 1.15 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package hexclock;
import static hexclock.HexClock.formattedDate;
import java.awt.Color;
public class NewJPanel extends javax.swing.JPanel {
public NewJPanel() {
initComponents();
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
setLayout(null);
jLabel1.setFont(new java.awt.Font("Tahoma", 1, 36)); // NOI18N
jLabel1.setText("12:20:14 AM");
add(jLabel1);
jLabel1.setBounds(57, 102, 269, 61);
}// </editor-fold>//GEN-END:initComponents
public void ChageText(){
jLabel1.setText(formattedDate);
jLabel1.setVisible(true);
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JLabel jLabel1;
// End of variables declaration//GEN-END:variables
}