Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Print help

  1. #1
    Junior Member
    Join Date
    Jun 2020
    Thanked 1 Time in 1 Post

    Default Print help


    In short, I started a new job and made the mistake of mentioning that I know a thing or two about java programming. Keep in mind that I am no programmer and my superiors know that.
    I was asked if I would be able to implement a "print" function to a code that a former employee wrote.
    The program this person wrote is basically a huge selection of buttons for options pertaining the business. Once a button is clicked , it saves an specific String into a variable.
    I figure that I should be able to write something that returns all these variables into some sort of report and then create a button to print.

    Is that possible? If so, how would I go about it?

    PS: All my past experiences exposed (and I vaguely remmeber) me to was having a bunch of textfields that users would input data, have a big jtextfield by them and a button that would add all of the data entered into this big jtextfield and then a print function that would print the big jtextfield. That was years ago though and I don't know if there is any better/easier way to do it.

    Any help is greatly appreciated!

  2. The Following User Says Thank You to DiogoPierces For This Useful Post:

    newbietech (July 3rd, 2020)

  3. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Eastern Florida
    Thanked 2,455 Times in 2,406 Posts

    Default Re: Print help

    create a button to print.

    Is that possible?
    Yes having a button in a GUI that causes some action when pressed is possible.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. How to print?
    By vijay$ in forum What's Wrong With My Code?
    Replies: 7
    Last Post: June 9th, 2014, 04:05 PM
  2. print A-Z without O I J
    By Billzhang in forum What's Wrong With My Code?
    Replies: 9
    Last Post: December 15th, 2013, 06:57 AM
  3. Replies: 1
    Last Post: December 3rd, 2012, 02:35 PM
  4. xfa.host.print: print a page + some page range.
    By gammaman in forum Totally Off Topic
    Replies: 2
    Last Post: May 10th, 2012, 08:07 AM
  5. how can i print the out put !
    By Faha in forum Java IDEs
    Replies: 5
    Last Post: December 30th, 2010, 04:41 AM