The parent container then uses these properties to measure itself.
然后,父容器使用这些属性度量它本身。
To compensate for this we added support to allow the parent container to periodically (say every 0.1 second) repaint itself.
为了补偿这一点,我们添加了支持,以允许父容器定期地(比如每隔0.1秒)重新绘制它自己。
This ensures that when the parent container receives a call for a measurement, its children will have been measured already.
这确保当父容器收到度量调用时,已经度量了它的子容器。
You don't need to explicitly add the button to the frame; merely identifying the frame as the parent container does the trick.
不必显式地将按钮添加到框架,只要将框架标识为父容器就可以了。
You need the measurement phase because it helps LayoutManager decide whether there should be scroll bars on the parent container.
您需要使用度量阶段,因为它帮助LayoutManager 确定父容器是否包含滚动条。
Gives directions for assigning existing controls to a new parent container.
给出将现有控件分配到新的父容器的说明。
The parent container should be using a null layout so you can randomly set the location of your Ball panel.
父容器应使用空布局,你可以随意设置你的球面板的位置。
The technique we used to scale and shift the components to show across multiple cells used a parent container, which provided a new Graphics2D object in which to paint the children.
我们用于缩放和平移组件以跨多单元显示的技术,使用了一个父容器,该容器提供一个新的Graphics2D对象,在该对象中绘制子组件。
The technique we used to scale and shift the components to show across multiple cells used a parent container, which provided a new Graphics2D object in which to paint the children.
我们用于缩放和平移组件以跨多单元显示的技术,使用了一个父容器,该容器提供一个新的Graphics2D对象,在该对象中绘制子组件。
应用推荐