- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflag.java
More file actions
Latest commit
65 lines (55 loc) · 1.58 KB
/
Copy pathflag.java
File metadata and controls
65 lines (55 loc) · 1.58 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* flag.java
*
* Created on Aug 19, 2002, 10:22:14 PM
*/
/**
*
* @author g1.test1
*/
importjava.applet.*;
importjava.awt.*;
publicclassflagextendsjava.applet.Applet {
publicvoidPaint(Graphicsg)
{
/*g.setColor(Color.orange);
g.fillRect(10, 10, 100, 40);
g.setColor(Color.white);
g.fillRect(10, 40, 100, 40);
g.setColor(Color.green);
g.fillRect(10, 80, 100, 40);
g.setColor(Color.blue);
*/
g.drawRect(20, 30, 100, 179);
}
publicvoidinit() {
try {
java.awt.EventQueue.invokeAndWait(newRunnable() {
publicvoidrun() {
initComponents();
}
});
} catch (Exceptionex) {
ex.printStackTrace();
}
}
/** This method is called from within the init() method to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
privatevoidinitComponents() {
jLabel1 = newjavax.swing.JLabel();
setLayout(newjava.awt.BorderLayout());
jLabel1.setText("jLabel1");
add(jLabel1, java.awt.BorderLayout.CENTER);
}// </editor-fold>//GEN-END:initComponents
// Variables declaration - do not modify//GEN-BEGIN:variables
privatejavax.swing.JLabeljLabel1;
// End of variables declaration//GEN-END:variables
}