首页 / 词典 / good

JFrame

  • 网络窗口;窗体;窗口类
JFrameJFrame
  1. In the example application , the main window extends JFrame .

    在这个例子应用中,主窗口继承了JFrame。

  2. Now we are ready to create the JFrame that will become our application frame .

    现在已准备好创建即将成为应用程序框架的JFrame了。

  3. Select the JFrame control so that you can look at the Recognition properties for the dialog .

    选择JFrame控件,以便您可以看到对话框的Recognition属性。

  4. Of course , any MainFrame objects I create would also share the properties and methods of the JFrame instance .

    当然,我创建的任何MainFrame对象都会与这个JFrame实例共享属性和方法。

  5. As you may know , you don 't add things directly to a JFrame , but instead to its content panel .

    您可能知道,并不直接向JFrame添加组件,而是将组件添加到它的内容面板。

  6. Alternatively , since this is a JFrame , you can also run Test as a Java application by completing the main () method as follows

    另一个方法是,由于这是一个JFrame,您还可以通过像下面这样完成main()方法,来将Test作为一个Java应用程序运行

  7. The interesting part of the example isn 't the JFrame itself but how it handles the interaction with the system tray .

    这个示例中有趣的部分不是JFrame本向,而是它如何处理与系统托盘的交互。

  8. This statement causes the properties and methods of the newly instantiated JFrame object to be shared with your MainFrame object .

    该语句将导致与MainFrame对象共享新实例化的JFrame对象的属性和方法。

  9. Typically , you would create a JPanel to contain your application 's UI elements , then add this panel to a JFrame .

    一般情况下,您将创建一个JPanel来包含应用程序的UI元素,然后将该面板添加到JFrame。

  10. Finally , I create the buttonPanel and the buttons and add everything to the content pane of the JFrame .

    最后,我创建了buttonPanel和按钮,并添加了一些JFrame的内容面板。

  11. It is the JFrame object with which you share properties and methods & I do not inherit or subclass the JFrame class .

    您将与JFrame对象共享属性与方法&我并没有继承JFrame类。

  12. The constructor sets the visibility of the JFrame to true , which is not permitted by Swing when running in the application 's main thread .

    构造器将JFrame的可视度设置为true,当Swing运行在应用程序的主线程上是,这是不被允许的。

  13. For every XUIComponent created in memory , a GUI peer , such as a javax . swing . JFrame , must be created .

    对于在内存中创建的每个XUIComponent,必须创建一个GUI对等物,比如javax.swing.JFrame。

  14. Now you can add the treeTable to any Swing container , such as a JPanel or a JFrame 's content pane .

    现在,您可以将treeTable添加到任何Swing容器,比如JPanel或者JFrame的内容面板。