public void initializeForView(AutomatonPane view){
		myView = view;
		setLocationManually(myAutoPoint);
        this.setDisabledTextColor(Color.BLACK);
		this.setBackground(new Color(255, 255, 150));
		this.addMouseMotionListener(new MouseMotionListener(){
			public void mouseDragged(MouseEvent e) {
				if (e.isPopupTrigger())
					return;
				if(!((Note)e.getSource()).isEditable()){					
					int diffX = e.getPoint().x - initialPointClick.x; 
					int diffY = e.getPoint().y - initialPointClick.y;

					int nowAtX = initialPointState.x+ diffX;
					int nowAtY =  initialPointState.y +diffY;
					((Note)e.getSource()).setLocationManually(new Point(nowAtX, nowAtY));
					initialPointState = new Point(((Note)e.getSource()).getAutoPoint());
				}
				else {
					//do normal select functionality
				}
				myView.repaint();
			}
			public void mouseMoved(MouseEvent e) {
				// TODO Auto-generated method stub
				
			}				
		});
		this.addMouseListener(new MouseListener(){

			public void mouseClicked(MouseEvent e) {
                if (myView.getDrawer().getAutomaton().getEnvironmentFrame() !=null)
                    ((AutomatonEnvironment)myView.getDrawer().getAutomaton().getEnvironmentFrame().getEnvironment()).saveStatus();
				((Note)e.getComponent()).setEnabled(true);
				((Note)e.getComponent()).setEditable(true);
				((Note)e.getComponent()).setCaretColor(null);
			}

			public void mousePressed(MouseEvent e) {
                if (myView.getDrawer().getAutomaton().getEnvironmentFrame() !=null){
                    ((AutomatonEnvironment)myView.getDrawer().getAutomaton().getEnvironmentFrame().getEnvironment()).saveStatus();
                    ((AutomatonEnvironment)myView.getDrawer().getAutomaton().getEnvironmentFrame().getEnvironment()).setDirty();
                }

				initialPointState = new Point(((Note)e.getSource()).getAutoPoint());
				initialPointClick = new Point(e.getPoint().x, e.getPoint().y);
				
				//delete the text box
				EditorPane pane = myView.getCreator();
				Tool curTool = pane.getToolBar().getCurrentTool();
				if(curTool instanceof DeleteTool){
					myView.remove((Note)e.getSource());
					myView.getDrawer().getAutomaton().deleteNote((Note)e.getSource());
					myView.repaint();
				}
				
			}


			public void mouseReleased(MouseEvent e) {
				// TODO Auto-generated method stub
				
			}

			public void mouseEntered(MouseEvent e) {
				// TODO Auto-generated method stub
				
			}

			public void mouseExited(MouseEvent e) {
				// TODO Auto-generated method stub
				
			}
			
		});
        myView.add(this);
		setEnabled(true);
		setEditable(true);
		setCaretColor(null);
		this.setSelectionStart(0);
		this.setSelectionEnd(this.getColumnWidth());
		this.requestFocus();
	}