Các câu hỏi phỏng vấn và câu trả lời về phần AWT and SWING
The Window, Frame and Dialog classes use a border layout as their default layout.
The Panel and Applet classes use the FlowLayout as their default layout.
The peerless components are called light weight components.
A Scrollbar is a Component, but not a Container. A ScrollPane is a Container. A ScrollPane handles its own events and performs its own scrolling.
Lightweight components are the one which doesn?t go with the native call to obtain the graphical units. They share their parent component graphical units to render them. For example, Swing components.
For every paint call, there will be a native call to get the graphical units.For Example, AWT.
An applet is a small java program that runs inside the browser and generates dynamic contents.
Yes. Add a main() method to the applet.
Sưu Tầm: Nguyễn Thị Bảo Trang» Tin mới nhất:
» Các tin khác: