Solved

DrJava: How to keep the line numbers and footer from being printed?

Posted on 2006-10-25
7
579 Views
Last Modified: 2010-05-18
Dear experts:

Hi again!

I am trying DrJava recently. But I got a problem:
The problem is that the line numbers and the footer is printed with the code. I went to Edit > Preferences and checked all options over and again, but I could not find anything that may be of help to change it.

Thanks!

duta
0
Comment
Question by:duta
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
7 Comments
 
LVL 4

Expert Comment

by:delphi3
ID: 17829855
Hi Duta,
Sufficient time has passed, that either you have solved your problem and this Q should be closed or you still do not have an answer.
I use DrJava regularly since I do not have the room in
my computer to hold the JBuilder type that has all the whistles and pop up ads that come with it. And yes the option to stay within the DrJava program and print out the program I am writing >>> with out the line numbers and footer is not possible. Even if I resort to a copy of the text and  paste it in WordPad the footer the title and page numbers are inserted.

However, I have a second IDE: GEL, that in some ways is superior to DrJava. It is free is reasonably small and it is available for download.

http://memescape.co.uk/gexperts/download.html

It has features such as what you want in the way of printing>>> by indicating preferences inside of "print preview"
 
GEL also has code "completion features" that enable the user to select by highlight what may be the possible next thing to type and a documentation of the item selected.  
In the end the "free" java IDEs that icluding BlueJ are not fully complete in every wish list item.

Hope that this helps

Delphi3
0
 

Author Comment

by:duta
ID: 17830081
TO: delphi3:

Thank you so much for your kidn tip.
Because my department uses DrJava, I may need to stay with DrJava.

Thanks a lot!

duta
0
 
LVL 4

Accepted Solution

by:
delphi3 earned 500 total points
ID: 17833048
Hi Duta,
In a classroom setting, the line work aids in the discussion/lesson: tracking begins and ends, tracing jump to or as they used to say "goto".  And that is the reason for the existence of this DrJava teaching learning aid. Yet, I have encountered some college profs that use GEL for their own work for the reason of more in the teaching prep side. But GEL has a limited life span as the creators of it hit a wall or ran out of development money: hence the date of the last revision.

 I suppose that if you do not make any  changes then I would go for  alternate solutions:
1. Get the people at Rice University CS Dept to move that improvement up to the front of the list and it may be in the next revision. They make those "beta" and "stable" versions about every six to 9 months with new revisions.

2. Have an office clerk learn how to snip and clip the DrJava copy from the printer so as to cut off the line numbers and what ever else. Give the person a raise of 50 cents an hour for" intelligent handling of the java printer output.... just before it goes into the fax or photocopier.

3. Get some tape and cover what you don't want to show. A bit messy if the copier takes the tape with it by an "oops".

4. Make a "mask" to cover the unwanted locations on the paper.....place it just where the printer puts the unwanted items all the time.  Then into the photo copier.

5. I was thinking that I might try my hand at writing a program that would load the saved java text out and print it. The commands for printers are stored on the IE page. Then next thing would be to store the page in the html format. ....... Just thinking to myself......

Delphi3  
0
 
LVL 4

Expert Comment

by:delphi3
ID: 17833592
Hi Duta,

Observation by me: Printing the html page shows it as having a header and a document location.

Another alternative to the list above:
6. Save the DrJava text as "Whatever.java" in the normal sense. Then rename the file saved file from "Whatever.java" to  "Whatever.rtf".  Then use the right mouse button option to select "print" of the unopened .rtf doc.  My print copy looks pretty good as long as the length of lines of java program original text do not exceed the limits of the page before the normal wrap around in the print. The  output printed page does not have the source, line numbers or the header, just the program text.

Observation: if you "open" it in the rtf format and print it, it will do some wrap around that looks a bit ugly  unless you reset the margins of the .rtf doc.

Delphi3

0
 

Author Comment

by:duta
ID: 17833993
TO: delphi3:

Thank you so much for your kind, thoghtful tip and insight.

I will take time to try all of your tips.

Thanks!

duta
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question