DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  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

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links