Index: core/output2/src/org/netbeans/core/output2/Bundle.properties =================================================================== RCS file: /cvs/core/output2/src/org/netbeans/core/output2/Bundle.properties,v retrieving revision 1.11 diff -r1.11 Bundle.properties 57a58,59 > ACTION_INCREASE_FONT=Increase Font Size > ACTION_DECREASE_FONT=Decrease Font Size 70a73,74 > ACTION_INCREASE_FONT.accel=C-EQUALS > ACTION_DECREASE_FONT.accel=C-MINUS 83a88,89 > ACTION_INCREASE_FONT.accel.mac=C-EQUALS > ACTION_DECREASE_FONT.accel.mac=C-MINUS Index: core/output2/src/org/netbeans/core/output2/Controller.java =================================================================== RCS file: /cvs/core/output2/src/org/netbeans/core/output2/Controller.java,v retrieving revision 1.45 diff -r1.45 Controller.java 93a94,95 > private static final int ACTION_INCREASE_FONT = 15; > private static final int ACTION_DECREASE_FONT = 16; 95c97 < // private static final int ACTION_TO_EDITOR = 15; --- > // private static final int ACTION_TO_EDITOR = 17; 128a131,136 > > Action increaseFontAction = new ControllerAction (ACTION_INCREASE_FONT, > "ACTION_INCREASE_FONT"); //NOI18N > Action decreaseFontAction = new ControllerAction (ACTION_DECREASE_FONT, > "ACTION_DECREASE_FONT"); //NOI18N > 137c145,146 < wrapAction, new JSeparator(), saveAsAction, clearAction, closeAction, --- > wrapAction, increaseFontAction, decreaseFontAction, > new JSeparator(), saveAsAction, clearAction, closeAction, 142c151,152 < findPreviousAction, wrapAction, saveAsAction, closeAction, --- > findPreviousAction, wrapAction, increaseFontAction, decreaseFontAction, > saveAsAction, closeAction, 431a442,448 > case ACTION_INCREASE_FONT : > OutputPane.changeFontSize(true); > break; > case ACTION_DECREASE_FONT : > OutputPane.changeFontSize(false); > break; > Index: core/output2/src/org/netbeans/core/output2/OutputPane.java =================================================================== RCS file: /cvs/core/output2/src/org/netbeans/core/output2/OutputPane.java,v retrieving revision 1.15 diff -r1.15 OutputPane.java 16a17 > import java.util.Iterator; 27a29,35 > import java.awt.event.InputEvent; > import java.awt.event.MouseWheelEvent; > import java.lang.ref.Reference; > import java.lang.ref.WeakReference; > import java.util.HashSet; > import java.util.Set; > import javax.swing.text.View; 30a39,43 > > OutputPane() { > registry.add (new WeakReference(this)); > } > 171a185 > setupFont(true); 173a188,249 > } > > private static Set registry = new HashSet(); > > static void changeFontSize (boolean positive) { > int currFontSize = outputFontSize; > int newFontSize = -1; > for (Iterator i = registry.iterator(); i.hasNext();) { > Reference ref = (Reference) i.next(); > OutputPane pane = (OutputPane) ref.get(); > if (pane != null) { > if (currFontSize == -1) { > currFontSize = pane.getFontSize(); > } > if (newFontSize == -1) { > newFontSize = positive? currFontSize + 1 : currFontSize - 1; > outputFontSize = Math.min (72, Math.max (6, newFontSize)); > } > pane.setupFont (false); > } else { > i.remove(); > } > } > } > > int getFontSize() { > return textView.getFont().getSize(); > } > > public void mouseWheelMoved(MouseWheelEvent e) { > if ((e.getModifiersEx() | InputEvent.SHIFT_DOWN_MASK) != 0) { > boolean positive = e.getWheelRotation() > 0; > changeFontSize (positive); > } else { > super.mouseWheelMoved(e); > } > } > > private static int outputFontSize = -1; > private void setupFont (boolean initializing) { > if (outputFontSize != -1) { > Font f = textView.getFont(); > if (f.getSize() != outputFontSize) { > float sz = outputFontSize; > String fontStr = System.getProperty ("nb.output.font"); > if (fontStr != null) { > f = new Font (fontStr, Font.PLAIN, textView.getFont().getSize()); > } > f = f.deriveFont(sz); > textView.setFont (f); > if (!initializing && textView.getEditorKit() instanceof OutputEditorKit) { > OutputEditorKit kit = (OutputEditorKit)textView.getEditorKit(); > View v = textView.getUI().getRootView(textView); > if (v instanceof WrappedTextView) { > ((WrappedTextView) v).setChanged(); > } > if (textView.isShowing()) { > textView.repaint(); > } > } > } > } Index: core/output2/src/org/netbeans/core/output2/ui/AbstractOutputPane.java =================================================================== RCS file: /cvs/core/output2/src/org/netbeans/core/output2/ui/AbstractOutputPane.java,v retrieving revision 1.37 diff -r1.37 AbstractOutputPane.java 570c570 < public final void mouseWheelMoved(MouseWheelEvent e) { --- > public void mouseWheelMoved(MouseWheelEvent e) {