"Code Note" Java Learning one-phase summary

Source: Internet
Author: User

  1. Write notes need to open eclipse write haha haha, otherwise write everything is not clear
  2. ...... You will also need to open the API documentation.
  3. The JFrame form component.
  4. Functions commonly used in JFrame:
    1. setSize Setting the form size
    2. setdefaultcloseoperation Set how the form is closed. 3 is immediately closed.
    3. Setlocationrelativeto Set the form position, NULL for the middle
    4. 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);
    5. settitle The default interface settings.
    6. 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);
  5. I don't know what to write when I write.
  6. Just write a summary.
    1. What has been learned is that there is no fusion.
    2. Learned a lot of things
    3. Thread not skilled
    4. Thread synchronization is not proficient
    5. Throwing exceptions is too complex to be kick.
    6. Other, All right ...

"Code Note" Java Learning one-phase summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.