My first attempt at changing the background color of the JPanel failed.
我第一次尝试更改JPanel背景颜色时遭到失败。
Finally, you register the component with the segments container (a JPanel).
最后,将组件注册到段容器(JPanel)。
Rather, one of its members is a JPanel that I can access via the infoPanel member.
它是其成员之一,是一个JPanel,可以通过infoPanel成员对其进行访问。
The output method only reports the specified component (often a JFrame, JDialog, or JPanel).
out put方法仅报告指定的组件(通常是J Frame、JDialog或JPanel)。
As you can see, the JPanel consists of a number of text fields, labels, and two radio buttons.
正如您看到的一样,JPanel由一些文本字段、标签和两个单选按钮组成。
The actual image painting is done in a JPanel subclass called ImagePaintDelegate, as shown in Listing 12.
实际的图像绘制是在一个叫做ImagePaintDelegate的jpanel子类中实现的,如清单12所示。
In Listing 17 you see how each server segment USES a JPanel subclass to delegate the painting of its background.
在清单17中,您可以看到每个服务器段是如何使用jpanel子类来委派背景的绘制的。
Typically, you would create a JPanel to contain your application's UI elements, then add this panel to a JFrame.
一般情况下,您将创建一个JPanel来包含应用程序的UI元素,然后将该面板添加到J Frame。
For the most part, it contains the same functions as a JPanel, letting you change the layout and add and remove components.
它包含的功能大部分与JPanel相同,并且允许改变布局,添加和删除组件。
This is especially convenient when you are testing a component such as a JPanel separate from the application that will eventually include it.
当您正在测试一个组件(比如jpanel),而该组件与最终将要包含它的应用程序相分离的时候,这会特别方便。
I the context of an application, that might be via making the clock graphic display a JComponent or JPanel, and instantiating the Clip when instantiating the container for the graphic.
我的应用程序中,可以通过使时钟图形显示的组件或JPanel,并实例化剪辑时实例化容器的图形。
I the context of an application, that might be via making the clock graphic display a JComponent or JPanel, and instantiating the Clip when instantiating the container for the graphic.
我的应用程序中,可以通过使时钟图形显示的组件或JPanel,并实例化剪辑时实例化容器的图形。
应用推荐