src/wagemaker/co/uk/main/Launcher.java
// Add icons and friendly names to actions we care about.
Add icons and friendly names to actions we care about.
Add icons and friendly names to actions we care about .
protected void makeActionsPretty() {
	 Action a;
	 a = textComp.getActionMap().get(DefaultEditorKit.cutAction);
	 a.putValue(Action.SMALL_ICON, new ImageIcon(getClass().getResource("/cut.png")));
	 a.putValue(Action.NAME, labels.getString("label017"));
	 a.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke("control X"));
	 a = textComp.getActionMap().get(DefaultEditorKit.copyAction);
	 a.putValue(Action.SMALL_ICON, new ImageIcon(getClass().getResource("/copy.png")));
	 a.putValue(Action.NAME, labels.getString("label019"));
	 a.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke("control C"));
	 a = textComp.getActionMap().get(DefaultEditorKit.pasteAction);
	 a.putValue(Action.SMALL_ICON, new ImageIcon(getClass().getResource("/paste.png")));
	 a.putValue(Action.NAME, labels.getString("label018"));
	 a.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke("control P"));
	 a = textComp.getActionMap().get(DefaultEditorKit.selectAllAction);
	 a.putValue(Action.SMALL_ICON, new ImageIcon(getClass().getResource("/all.png")));
	 a.putValue(Action.NAME, labels.getString("label021"));
	 a.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke("control A"));
	 a = textComp.getActionMap().get(DefaultEditorKit.selectWordAction);
	 a.putValue(Action.SMALL_ICON, new ImageIcon(getClass().getResource("/text.png")));
	 a.putValue(Action.NAME, labels.getString("label022"));
	 a.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke("control W")); 
	 a = textComp.getActionMap().get(DefaultEditorKit.backwardAction);
	 a.putValue(Action.SMALL_ICON, new ImageIcon(getClass().getResource("/undo.png")));
	 a.putValue(Action.NAME, labels.getString("label023"));
	 a.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke("control U")); 
	}
protected void makeActionsPretty ( ) { Action a ; a = textComp . getActionMap ( ) . get ( DefaultEditorKit . cutAction ) ; a . putValue ( Action . SMALL_ICON , new ImageIcon ( getClass ( ) . getResource ( "/cut.png" ) ) ) ; a . putValue ( Action . NAME , labels . getString ( "label017" ) ) ; a . putValue ( Action . ACCELERATOR_KEY , KeyStroke . getKeyStroke ( "control X" ) ) ; a = textComp . getActionMap ( ) . get ( DefaultEditorKit . copyAction ) ; a . putValue ( Action . SMALL_ICON , new ImageIcon ( getClass ( ) . getResource ( "/copy.png" ) ) ) ; a . putValue ( Action . NAME , labels . getString ( "label019" ) ) ; a . putValue ( Action . ACCELERATOR_KEY , KeyStroke . getKeyStroke ( "control C" ) ) ; a = textComp . getActionMap ( ) . get ( DefaultEditorKit . pasteAction ) ; a . putValue ( Action . SMALL_ICON , new ImageIcon ( getClass ( ) . getResource ( "/paste.png" ) ) ) ; a . putValue ( Action . NAME , labels . getString ( "label018" ) ) ; a . putValue ( Action . ACCELERATOR_KEY , KeyStroke . getKeyStroke ( "control P" ) ) ; a = textComp . getActionMap ( ) . get ( DefaultEditorKit . selectAllAction ) ; a . putValue ( Action . SMALL_ICON , new ImageIcon ( getClass ( ) . getResource ( "/all.png" ) ) ) ; a . putValue ( Action . NAME , labels . getString ( "label021" ) ) ; a . putValue ( Action . ACCELERATOR_KEY , KeyStroke . getKeyStroke ( "control A" ) ) ; a = textComp . getActionMap ( ) . get ( DefaultEditorKit . selectWordAction ) ; a . putValue ( Action . SMALL_ICON , new ImageIcon ( getClass ( ) . getResource ( "/text.png" ) ) ) ; a . putValue ( Action . NAME , labels . getString ( "label022" ) ) ; a . putValue ( Action . ACCELERATOR_KEY , KeyStroke . getKeyStroke ( "control W" ) ) ; a = textComp . getActionMap ( ) . get ( DefaultEditorKit . backwardAction ) ; a . putValue ( Action . SMALL_ICON , new ImageIcon ( getClass ( ) . getResource ( "/undo.png" ) ) ) ; a . putValue ( Action . NAME , labels . getString ( "label023" ) ) ; a . putValue ( Action . ACCELERATOR_KEY , KeyStroke . getKeyStroke ( "control U" ) ) ; }
Add icons and friendly names to actions we care about.
Add icons and friendly names to actions we care about .
//backwardAction