Printing text in JText Area


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Printing text in JText Area

  1. #1
    Join Date
    Dec 2005
    Posts
    4

    Question Printing text in JText Area

    I want to print text in JTextArea component. Please help me with example.

  2. #2
    Join Date
    Dec 2005
    Location
    New Jersey
    Posts
    290
    What do you mean?
    Code:
    public void print(JTextArea area, String s) {
        area.setText(area.getText() + s);
    }

  3. #3
    Join Date
    Jan 2006
    Location
    Ireland
    Posts
    62
    I think he means to print whatever is in the JTextArea to the printer. Check out his article:

    http://www.javaworld.com/javaworld/j...-06-step.html?

    Kind regards,
    Noel
    Efficiency is intelligent laziness

Similar Threads

  1. Text Area help....Please!!!
    By thedrew in forum Java
    Replies: 4
    Last Post: 05-06-2005, 03:25 PM
  2. Script for scrolling
    By Mark in forum Web
    Replies: 3
    Last Post: 08-30-2001, 11:45 AM
  3. Double Text 1.0
    By George Gilbert in forum vb.announcements
    Replies: 0
    Last Post: 08-19-2001, 11:34 AM
  4. Replies: 3
    Last Post: 07-25-2001, 11:29 AM
  5. Replies: 2
    Last Post: 05-31-2000, 10:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center