All pastes #2072007 Raw Edit

Unnamed

public text v1 · immutable
#2072007 ·published 2011-05-30 08:59 UTC
rendered paste body
	class ActionPerformedMenuBar implements ActionListener{
		public void actionPerformed(ActionEvent e){
				// this is for the Edit Menu Items - Copy and Paste - to work
				double storeValue;
				storeValue = 0;

				if(e.getSource() == jmenuitemCopy){
					storeValue = Double.parseDouble(getDisplayString());

				}

				if(e.getSource() == jmenuitemPaste){


						setDisplayString(Double.toString(storeValue));

				}
		}