public CarDialog(JFrame mainFrame,JPanel mainPanel){
		super(mainFrame,true);
		this.mainFrame=mainFrame;
		this.mainPanel=mainPanel;
		initGUI();
		this.setLocationRelativeTo(null);
		this.setVisible(true);
		
	}