⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 e572. getting the child components of a container.txt

📁 这里面包含了一百多个JAVA源文件
💻 TXT
字号:
This example retrieves all of a container's children in an array: 
    // Get children
    Component[] components = container.getComponents();
    
    for (int i=0; i<components.length; i++) {
        // Get the component's bounds
        Rectangle bounds = components[i].getBounds();
    }

This example retrieves all components individually: 
    // Get number of children
    int count = container.getComponentCount();
    
    for (int i=0; i<count; i++) {
        Component c = container.getComponent(i);
    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -