Design and implement a graphical user interface to work the following main points:
• (1) Create a component (Component) • Creating an interface composed of various elements, such as buttons, text boxes and so on.
• (2) specify the layout (Layout) • the arrangement according to the specific needs of their positional relationship.
• (3) in response to the event (Event) • Event-defined graphical user interface and various interface elements respond to different events in order to achieve the graphical user interface and user interaction function.
IDE in the form design:
Right on the project
• New—Other—Windows Builder
• —Swing Designer—Jframe
• top switchable source / design pattern
right on the form, Layout
• (absolute represents an absolute layout)
add buttons and other components
• set its properties
Add an event
• Right on the component, Add New Event Handler