NetBeans the Definitive User Guide phần 4

Chương 3. Khái niệm và Paradigms Đảng Bảo thủ, lưu trữ hoặc HTTP URL CỦA xem Javadoc được tìm kiếm trong khi tạo ra Javadocs. Chỉ cần nhấp chuột vào biểu tượng Javadoc ở phía trên cùng của chế độ xem Javadoc và chọn một trong hai mục địa phương, Add Lưu Trữ, | Chapter 9. GUI Building Options_ B Options Ì C C Options Building 0 n Code Documentation Debugging and Executing Distributed Application Support 0- Editing IDE Configuration Packaging and Deployment Ọ đ Source Creation and Management Ọ Templates 0- CPP đ Folder JlJnrt o- Filesystems 0 n Services Java Package 0- API Support - Ant Build Scripts Beans Classes Ọ đ GUI Forms Ọ đ testGuiFolder 0- ij myTemplate - JApplet iế Name testGuiFolder Template False properties Sorting Close 2. Create the source to use for your template Start with one of the NetBeans templates then modify it to meet your needs or create completely new source code. 3. Save the source as a template Start in the Explorer window right click the source select Save as Template from the context menu and select the template category from the Save As Template dialog. 170 Chapter 9. GUI Building And here are the steps for making a custom GUI component 1. Optionally create your own Component Palette tab From the main window select Tools- Options. Open nodes IDE Configuration node then Look and Feel. Right click the Component Palette node then select Add Palette Category from context menu. Name the new category and click OK. 2. Create or locate the new component It s just a Java Bean. Use an existing bean or write your own. See the next chapter for more on beans. 3. Add the new component to the Component Palette then customize it. We will take a closer look at adding components to the Component Palette in the next chapter after creating our own Java Bean component. Containers within Containers A JPanel can contain any number of components. Since a JPanel is itself a component it can be contained within a another JPanel a JFrame or any other GUI container. As we will see in the next section this can be a powerful technique for building complex GUIs. But there s a potential editing problem with components in containers within containers. If all the components in all the .

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
112    405    12    30-04-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.