public Diax() {
		super("  ");
		addWindowListener(new WindowAdapter() {
			@Override
			public void windowClosing(WindowEvent arg0) {
				Login log= new Login();
			    log.setVisible(true);
			}
		});
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 514, 200);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		
		
		JLabel label = new JLabel("\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03A4\u03AF\u03C4\u03BB\u03BF\u03C5 \u03A0\u03B1\u03C1\u03AC\u03C3\u03C4\u03B1\u03C3\u03B7\u03C2:");
		label.setBounds(24, 11, 354, 22);
		contentPane.add(label);
		
		
		
	    
		button = new JButton("\u039A\u03B1\u03C4\u03B1\u03C7\u03CE\u03C1\u03B7\u03C3\u03B7");
		
		button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				
			
				Connection();
				
				titlospar.setText("");
				wrpar.setText("");
				

			}
		});
		
		
		button.setBounds(266, 11, 222, 63);
		contentPane.add(button);
		button.setEnabled(false);
		
		titlospar = new JTextField();
		titlospar.setBounds(24, 44, 232, 30);
		contentPane.add(titlospar);
		titlospar.setColumns(10);
		
		Document document1 = titlospar.getDocument();
	    document1.addDocumentListener(new JButtonStateController(button));
	    
	
		
		JLabel lblNewLabel = new JLabel("\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u038F\u03C1\u03B1\u03C2 \u03A0\u03B1\u03C1\u03AC\u03C3\u03C4\u03B1\u03C3\u03B7\u03C2:");
		lblNewLabel.setBounds(24, 85, 354, 22);
		contentPane.add(lblNewLabel);
		
		wrpar = new JTextField();
		wrpar.setBounds(24, 118, 232, 30);
		contentPane.add(wrpar);
		wrpar.setColumns(10);
		
		JButton button_1 = new JButton("\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE");
		button_1.setEnabled(false);
		button_1.setBounds(266, 85, 222, 63);
		contentPane.add(button_1);
	
		
		document1.addDocumentListener(new JButtonStateController(button_1));
		
		button_1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				
				Connectiondel();
				
				titlospar.setText("");
				wrpar.setText("");
				
				

			}
		});
		
	    
	    
	}