In that method, you add a button to your frame, as shown in Listing 4.
在该方法,可以向框架添加按钮,如清单4所示。
You don't need to explicitly add the button to the frame; merely identifying the frame as the parent container does the trick.
不必显式地将按钮添加到框架,只要将框架标识为父容器就可以了。
Clicking the button flashes the frame (indicating that the button was depressed).
单击此按钮闪现框架(表明按钮被按下)。
应用推荐