帮忙看下Jbuilder做出来的java代码

来源:百度知道 编辑:UC知道 时间:2024/06/03 18:01:01
package test;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.*;

/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2009</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class Frame1 extends JFrame {
JPanel contentPane;
BorderLayout borderLayout1 = new BorderLayout();
JToolBar jToolBar = new JToolBar();
JButton jButton1 = new JButton();
JButton jButton2 = new JButton();
JButton jButton3 = new JButton();
ImageIcon image1 = new ImageIcon(test.Frame1.class.getResource(
"openFile.png"));
ImageIcon image2 = new ImageIcon(test.Frame1.class.getResource(
"closeFile.png"));
ImageIcon image3 = new ImageIcon(test.Frame1.class.

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;

import javax.swing.*;

public class Frame1 extends JFrame {
JPanel contentPane;

BorderLayout borderLayout1 = new BorderLayout();

JToolBar jToolBar = new JToolBar();

JButton jButton1 = new JButton();

JButton jButton2 = new JButton();

JButton jButton3 = new JButton();

ImageIcon image1 = new ImageIcon(test.Frame1.class
.getResource("openFile.png"));

ImageIcon image2 = new ImageIcon(test.Frame1.class
.getResource("closeFile.png"));

ImageIcon image3 = new ImageIcon(test.Frame1.class.getResource("help.png"));

JLabel statusBar = new JLabel();

public Frame1() {
try {
setDefaultCloseOperation(EXIT_ON_CLOSE);
jbInit();
} catch (Excepti