This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 9065 - Printing from Source Editor
Summary: Printing from Source Editor
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P4 normal (vote)
Assignee: Gabriel Tichy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-01-11 18:36 UTC by Stanislav Lukes
Modified: 2008-12-23 11:46 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch JAR: save in IDE install as lib/patches/9065.jar & restart (2.00 KB, application/octet-stream)
2001-02-12 11:41 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stanislav Lukes 2001-01-11 18:36:57 UTC
FFJ 2.0 has strange behaviour when printing the source code. Only about 60 % of
page is always being used (see the margin at the bottom). Also, some printer
settings are not reflected. I guess this can be printer dependant, I tested it
with Xerox DocuPrint N24 I was not able to set page orientation landscape.

Original message of Matthew.Stevens@eng.sun.com:

I have only been able to control the "color" of the constructs of the Java
source throught the Print command in the Java source editor. Each time I print
I always produce "portrait" printouts with only 60% of the 11" top to bottom
utilized. There doesn't seem to be a way to control such properties of the
printing as: portrait/landscape, margins, etc. I am on WINNT 4.0, using JVM 1.3
and when I choose print I get the WINNT printer dialog where I choose a printer
and its properties; I can choose a printer but changing the properties has no
effect. I thought that I produced better output on the CE 1.x
-matt-
Comment 1 olof.backing 2001-02-09 15:28:59 UTC
The lack of page setup is *not* printer dependant. I have the same problem with
both a HP LaserJet 4000 PCL 6 3.38 and a Xerox NC60 PS3. There's still no "page
setup" entry in the file menu.
The only place where I found a page setup button was in the JavaHelp [Master
Index], but that doesn't help very much... ;-)

/Olof
Comment 2 Jesse Glick 2001-02-09 17:41:59 UTC
Olof - there is definitely a page setup command in the IDE; I don't know if it
works or not (or why it is not normally visible), but you could try it and see
if it can help. To make it appear in the File menu, find or create the following
directory under your IDE installation:

	system/Menu/File

and in it create an *empty* file named:

	org-openide-actions-PageSetupAction.instance

and either wait or if necessary restart the IDE, and Page Setup should appear in
the File menu. You can then see if it works.
Comment 3 olof.backing 2001-02-12 11:21:59 UTC
Sadly it does not. I have tried both:

* Page Setup[org-openide-actions-PageSetupAction].instance

which seemed more natural (the Print... is very similar) and

* org-openide-actions-PageSetupAction.instance

as you suggested, but to no avail. Included is the logfile:

>Log Session: den 12 februari 2001 kl 9:24 GMT+01:00
>System Info:
  Product Version          = Forte(tm) for Java(tm), release 2.0, Community
Edition (Build 1160)
  IDE Versioning           = IDE/1 spec=1.1.0.1 impl=Build 1160
  Operating System         = Windows NT Version 4.0 Running on x86
  Java Version             = 1.3.0
  Java VM Version          = Java HotSpot(TM) Client VM 1.3.0-C
  Java Vendor              = Sun Microsystems Inc.
  Java Vendor URL          = http://java.sun.com/
  Java Home                = d:\PROGRA~1\jdk1.3\jre
  Java Class Version       = 47.0
  System Locale            = sv_SE
  JIT                      = unknown or not used
  Home Dir                 = C:\WINNT\Profiles\olof.000
  Current Directory        = d:\forte4j
  Forte for Java Home      = D:\forte4j
  Forte for Java User Home = D:\forte4j
  System Directory         = D:\forte4j\system
  CLASSPATH                =
D:\forte4j\lib\patches\openide-compat.jar;D:\forte4j\lib\developer.jar;D:\forte4
j\lib\openide.jar;D:\forte4j\lib\updater.jar;D:\forte4j\lib\ext\AbsoluteLayout.j
ar;D:\forte4j\lib\ext\icebrowserlitebean.jar;D:\forte4j\lib\ext\javac.jar;D:\for
te4j\lib\ext\jaxp.jar;D:\forte4j\lib\ext\jh.jar;D:\forte4j\lib\ext\parser.jar;D:
\forte4j\lib\ext\regexp.jar;D:\forte4j\lib\ext\servlet.jar;d:\PROGRA~1\jdk1.3\li
b\dt.jar;d:\PROGRA~1\jdk1.3\lib\tools.jar
-------------------------------------------------------------------------------
[INFO] Loaded modules: org.netbeans.modules.clazz/1 (1.2.1/1160);
org.netbeans.modules.html/1 (1.2.1/1160); org.netbeans.modules.httpserver/1
(1.2.1/1160); org.netbeans.modules.icebrowser/1 (1.2.1/1160);
org.netbeans.modules.image/1 (1.2.1/1160); org.netbeans.modules.properties/1
(1.2.1/1160); org.netbeans.modules.text/1 (1.2.1/1160);
org.netbeans.modules.usersguide/1 (1.2.1/1160); org.openidex.util/1
(1.2.1/1160); org.netbeans.modules.autoupdate/1 (1.3.1/1160);
org.netbeans.modules.debugger.core/1 (1.1.5/1160); org.netbeans.modules.applet/1
(1.2.1/1160); org.netbeans.modules.debugger.debug/1 (1.4.1/1160);
org.netbeans.modules.debugger.jpda/1 (1.4.1/1160); org.netbeans.modules.editor/1
(1.4.1/1160); org.netbeans.modules.jarpackager/1 (1.2.1/1160);
org.netbeans.modules.java/1 (1.2.1/1160); org.netbeans.modules.beans/1
(1.2.1/1160); org.netbeans.modules.form/1 (1.2.1/1160);
org.netbeans.modules.i18n/1 (1.2.1/1160); org.netbeans.modules.javadoc/1
(1.2.1/1160); org.netbeans.modules.objectbrowser/1 (1.2.1/1160);
org.netbeans.modules.projects/1 (1.2.1/1160); org.netbeans.modules.utilities/1
(1.2.1/1160); org.netbeans.modules.vcs.cmdline/1 (1.3.1/1160);
org.netbeans.modules.web.core/1 (1.1.3/1160)
path="" :jsp: init
*********** Exception occurred ************
Mon Feb 12 09:24:30 GMT+01:00 2001java.util.MissingResourceException: Can't find
resource for bundle java.util.PropertyResourceBundle, key FMT_PageSetup
java.util.MissingResourceException: Can't find resource for bundle
java.util.PropertyResourceBundle, key FMT_PageSetup
	at java.util.ResourceBundle.getObject(ResourceBundle.java:382)
	at java.util.ResourceBundle.getString(ResourceBundle.java:354)
	at org.openide.actions.PageSetupAction.getName(PageSetupAction.java:44)
	at org.openide.awt.Actions$MenuBridge.updateState(Actions.java:341)
	at org.openide.awt.Actions.connect(Actions.java:73)
	at org.openide.awt.Actions$MenuItem.<init>(Actions.java:569)
	at
org.openide.util.actions.CallableSystemAction.getMenuPresenter(CallableSystemAct
ion.java:35)
	at org.openide.awt.MenuBar$MenuFolder.createInstance(MenuBar.java:322)
	at
org.openide.loaders.FolderInstance.recreateInstance(FolderInstance.java:268)
	at
org.openide.loaders.FolderInstance$Listener.run(FolderInstance.java:301)
	at org.openide.util.Mutex.doEvent(Mutex.java:824)
	at org.openide.util.Mutex.writeAccess(Mutex.java:300)
	at org.openide.loaders.FolderInstance.recreate(FolderInstance.java:218)
	at org.openide.awt.MenuBar$MenuFolder.<init>(MenuBar.java:201)
	at org.openide.awt.MenuBar$MenuBarFolder.acceptFolder(MenuBar.java:141)
	at
org.openide.loaders.FolderInstance.acceptDataObject(FolderInstance.java:151)
	at
org.openide.loaders.FolderInstance.recreateInstance(FolderInstance.java:241)
	at
org.openide.loaders.FolderInstance$Listener.run(FolderInstance.java:301)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:317)
	at
java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)

/Olof
Comment 4 Jesse Glick 2001-02-12 11:40:59 UTC
Ouch, it appears that PageSetupAction is really missing a name! I will fix in
the development sources; if you still want to try using the action, try the
attached patch file (place in lib/patches/ directory and restart).
Comment 5 Jesse Glick 2001-02-12 11:41:59 UTC
Created attachment 605 [details]
Patch JAR: save in IDE install as lib/patches/9065.jar & restart
Comment 6 olof.backing 2001-02-12 14:29:59 UTC
Yup!
Thanks, this solved the problem. And a small fix in the "Global Options" changed
the order of the entries in the menu.

Still one problem left with the printing issue:

* Although I set a 10mm margin on all sides (all 4 boxes) I get a 20mm bottom
margin. Setting the bottom margin to 0mm gives me a 10mm bottom margin.

/Olof
Comment 7 Jesse Glick 2001-02-12 14:48:59 UTC
UI folks: is there any reason why Page Setup is not in the File menu by
default?? If not, it would take two minutes to readd it in the development
sources, and would also be an easy support patch for FFJ 2.0.
Comment 8 olof.backing 2001-02-12 14:54:59 UTC
One more thing about the margin issue:

The right margin setting looses 0,01mm every time I klick OK in Page Setup. Next
time it'll be 9,99mm... 9,98mm... and so on. Can be reset by entering the value
once again, but will have lost 0,01mm to the next time.

/Olof
Comment 9 Jiri Mzourek 2001-02-22 09:13:07 UTC
Jesse, I think that Page Setup should be in the File menu too, I will send a 
mail to nbui. Thanks. 
Comment 10 Jiri Mzourek 2001-03-26 14:00:35 UTC
Gabo, could you create new menu item "Page Setup" in menu File?
Comment 11 Gabriel Tichy 2001-03-27 15:10:44 UTC
I have added PageSetupAction next to the PrintAction in the File menu.
Comment 12 Marian Mirilovic 2002-04-19 15:04:38 UTC
verified in [nb_dev](20020419)
Comment 13 Quality Engineering 2003-07-01 16:23:40 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.