The basic layout of the graph FlowLayout (flow layout) The components that are placed are automatically arranged from left to right from top to bottom
Boerlayout (Border layout) is divided into the upper and lower left and right five parts
GridLayout (Grid layout) input the number of rows and columns required creates a grid-like layout
Bxolayout (box layout) Vertical or horizontal layout components are limited to the ' box '
Common components: JButton (Button) JLabel (note strip) Jcheckbox (tick bar) JPanel (panel) JTextField (input box)
JPasswordField (Password box)
Listening to a target requires creating a class and then inheriting the listener method and then new in the program to listen to the class given the name
The object to listen on. Add Listener Class (new method (listener name))
Common listening Mouslistener (mouse) focus (focus) Adjustmenelistener (regulator) KeyListener (keyboard)
Window (interface)
2016/4/22 Graphical User Interface 2