Interesting Java swing

Source: Internet
Author: User

I am looking for an intern. I will review the Java basics. I personally feel that the books about Java are too technical, which is not conducive to memory and mastery. You can learn according to your habits. For example, if we are studying Java swing, we will not be tired of memorizing the number of containers, contentpane, menu, and menuitem in swing.

We can think like this. For example, we want to draw a picture. What do you need first for painting? We certainly cannot draw in the air, so we need a blackboard. There must be a frame on the blackboard. This is a jframe, an external frame. If there is a frame, there is still a board. This board is contentpane, a container used to place the painting content. Now there is just a container. We can't draw images directly on the board. (Of course, if we want to draw an oil painting, we need a canvas for painting, the canvas is canvas. Okay. Prepare the blackboard and canvas. What else do you need? You also need painting tools. This is the tool panel. The tool panel must not be placed directly on the canvas. We will add a panel next to the canvas for storing various tools. This is the panel. Now let's take a look at these contentpane, canvas, and panel. Because they can all be placed on top, we can regard them as container, that is to say, we can declare them as iner for use.

This is my personal understanding. It is very simple and technically flawed. I hope you can give me some advice.

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.