【发布时间】:2014-04-21 06:59:59
【问题描述】:
在我的一门课程中出现错误,“找不到符号”。我在这里做错了什么? 我需要事先声明吗?
在我的一门课程中出现错误,“找不到符号”。我在这里做错了什么? 我需要事先声明吗?
试着让它看起来像这样:
package userInterface;
import javax.swing.JPanel;
import java.awt.*;
import javax.swing.JButton;
/**
*
* @author
*/
public class AddAirport {
private JPanel mainPane;
public AddAirport(JPanel mainPane){
GridBagLayout gridBagLayout;
gridBagConstraints constraints;
JPanel buttonPane;
JPanel dataPane;
BorderLayout borderLayout;
JButton addBtn;
JButton canxBtn;
JLabel newAirport;
JLabel enterName;
JTextField airportName;
JLabel enterCity;
JTextField airportCity;
JLabel selectState;
JComboBox airportState;
JLabel enterCode;
}
}
【问题讨论】:
标签: java swing user-interface layout