在类class1中怎样使用Frame1类。具体目的是(在jbuilder中,怎样使class1的design-UI设计视图中拥有与Frame1一样的design-UI设计视图)   希望大家能详细的解释这样用的原因,谢谢!其中,Frame1的代码如下:import java.awt.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;public class Frame1
    extends JFrame {
  JPanel contentPane;
  BorderLayout borderLayout1 = new BorderLayout();  public Frame1() {
    try {
      setDefaultCloseOperation(EXIT_ON_CLOSE);
      jbInit();
    }
    catch (Exception exception) {
      exception.printStackTrace();
    }
  }
public static void main(String[] args){
  Frame1 frame = new Frame1();
  frame.addWindowFocusListener(new WindowAdapter() {
  public void windowclosing(WindowEvent e) {
      System.exit(0);
    }  });
  System.out .println("skldfjsdflkjdflkjfdlsdkfj");
  frame.setVisible(true);
}
  
  private void jbInit() throws Exception {
    contentPane = (JPanel) getContentPane();
    contentPane.setLayout(borderLayout1);
    setSize(new Dimension(400, 300));
    setTitle("Frame Title");}
}