@Override
	public void actionPerformed(ActionEvent arg0) {
		int orderId = -1;
		
        JTextField field1 = new JTextField("");
        JPanel panel = new JPanel(new GridLayout(0, 1));
        panel.add(new JLabel("Order id:"));
        panel.add(field1);
 
        int result = JOptionPane.showConfirmDialog(frame, panel, "Order state window",
            JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);
        if (result == JOptionPane.OK_OPTION && !field1.getText().equals("")) {
        	
        	
			try {
				orderId = Integer.parseInt(field1.getText());
				
				String query = "select order_status,order_handler from orders where order_id ="+orderId;
				
				PreparedStatement ps = orders.getConnection().prepareStatement(query);
				
				ResultSet results = ps.executeQuery();
				
				String state = results.getString("order_status");
				String handler = results.getString("order_handler");	
					
					
	
				JOptionPane.showMessageDialog(frame, "Order: "+orderId+"\n"+
													 "state: "+state+"\n"+
													 "handler: "+handler );
				
			} catch (NumberFormatException e) {
				JOptionPane.showMessageDialog(frame, "This is not correct order id.");
			} catch (SQLException e) {
				JOptionPane.showMessageDialog(frame, "Couldn't find this id.");
				
			}
		}
        else if (result == JOptionPane.CANCEL_OPTION) {
        }
	}