- Write notes need to open eclipse write haha haha, otherwise write everything is not clear
- ...... You will also need to open the API documentation.
- The JFrame form component.
- Functions commonly used in JFrame:
- setSize Setting the form size
- setdefaultcloseoperation Set how the form is closed. 3 is immediately closed.
- Setlocationrelativeto Set the form position, NULL for the middle
- Flow layout
FlowLayout fl = new FlowLayout ();
This.setlayout (FL);
Grid left and right layout
GridLayout gl = new GridLayout ();
This.setlayout (GL);
Central layout
GridBagLayout GBL = new GridBagLayout ();
This.setlayout (GBL);
- settitle The default interface settings.
- 7. Set User name
JLabel JL = new JLabel ();
Jl.settext ("User name:");
Jf.add (JL);
8. Set User name Input box
JTextField JTF = new JTextField ();
Jtf.setcolumns (10);
Jf.add (JTF);
- I don't know what to write when I write.
- Just write a summary.
- What has been learned is that there is no fusion.
- Learned a lot of things
- Thread not skilled
- Thread synchronization is not proficient
- Throwing exceptions is too complex to be kick.
- Other, All right ...
"Code Note" Java Learning one-phase summary