各位大哥办我看看,
Exception in thread "main"
java.lang.Error: 无法解析的编译问题:
Exception in thread "main "
java.lang.Error: 无法解析的编译问题:
无法解析 MainWindow
at MainWindow.main(MainWindow.java:201)
我把代码分批贴出来
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
public class MainWindow extends JFrame implements ActionListener
{
JPanel panel1;
Container c;
JMenuBar MenuB;
JMenu FundamentalMenu,ContractMenu,BusinessMenu,OtherMenu,UserMenu,CargoReceiverMenu,TruckMenu,PilotMenu,ConsignorMenu,GoodsMenu,
ContractRegisterMenu,ContractSearchMenu,FreightInformationMenu,FreightSearchMenu,AccidentManagedMenu,WeZhanMenu;
JMenuItem CargoReceiverTableMenuItem,CargoReceiverInMenuItem,CargoReceiverFileTableMenuItem,//收货人档案
TruckTableMenuItem,TruckInMenuItem,TruckFileTableMenuItem,//车辆档案
PilotTableMenuItem,PilotInMenuItem,PilotFileTableMenuItem,//驾驶员档案
ConsignorTableMenuItem,ConsignorInMenuItem,ConsignorFileTableMenuItem,//托运人档案
GoodsTableMenuItem,GoodsInMenuItem,GoodsFileMenuItem,//货品档案
ContractRegisterTableMenuItem,ContractRegisterInMenuItem,ContractFileTable,//合同登记
ContractSearchCargoMenuItem,ContractSearchSyntheticalMenuItem,ContractSearchConsigorMenuItem,ContractSearchGoodsMenuItem,//合同查寻
FreightInformationTableMenuItem,FreightInformationInMenuItem,FreightInformationFileMenuItem,//货运信息
FreightSearchPilotMenuItem,FreightSearchGoodsMenuItem,FreightSearchConsignorMenuItem,FreightSearchDanHaoMenuItem,
FreightSearchLicenseMenuItem,//货运查询
AccidentManagedTableMenuItem,AccidentManagedinMenuItem,AccidentManagedPrinterMenuItem,//交通事故管理
WeZhanTableMenuItem,WeZhanInMenuItem,WeZhanFileMenuItem,//驾驶员违章登记
UserLoginMenuItem,UserAddMenuItem,UserModifyMenuItem,UserDeleteMenuItem;//用户管理
JLabel titleLabel,AuthorLabel,DateLabel;
public MainWindow()
{
MenuB=new JMenuBar();
//--基本资料管理--
FundamentalMenu=new JMenu( "基本资料 ");
CargoReceiverMenu=new JMenu( "收货人档案 ");
CargoReceiverTableMenuItem=new JMenuItem( "表格界面 ");
CargoReceiverInMenuItem=new JMenuItem( "收货人档案录入 ");
CargoReceiverFileTableMenuItem=new JMenuItem( "收货人档案表 ");
TruckMenu=new JMenu( "车辆档案 ");
TruckTableMenuItem=new JMenuItem( "表格界面 ");
TruckInMenuItem=new JMenuItem( "车辆登记录入 ");
TruckFileTableMenuItem=new JMenuItem( "车辆档案表 ");
PilotMenu=new JMenu( "驾驶员档案 ");
PilotTableMenuItem=new JMenuItem( "表格界面 ");
PilotInMenuItem=new JMenuItem( "驾驶人员登记录入 ");
PilotFileTableMenuItem=new JMenuItem( "打印 ");
ConsignorMenu=new JMenu( "托运人档案 ");
ConsignorTableMenuItem=new JMenuItem( "表格界面 ");
ConsignorInMenuItem=new JMenuItem( "托运人档案录入 ");
ConsignorFileTableMenuItem=new JMenuItem( "托运人档案表 ");