Results 1 to 2 of 2

Thread: JTextArea

  1. #1
    weikang is offline Member
    Join Date
    Nov 2010
    Posts
    10
    Rep Power
    0

    Default JTextArea

    Hi, does anyone know how to set a background image to JTextArea?

    Here is my code,
    Java Code:
    private JTextArea getJTextAreaWallPost1() {
    		if (jTextAreaWallPost1 == null) {
    			jTextAreaWallPost1 = new JTextArea();
    			jTextAreaWallPost1.setBounds(new Rectangle(235, 224, 330, 70));
    			jTextAreaWallPost1.setLineWrap(true);
    			jTextAreaWallPost1.setText("Hi, I am selling Yamaha Classical Guitar at $100.00 are you interested?");
    			jTextAreaWallPost1.ins
    		}
    		return jTextAreaWallPost1;
    	}
    Assume that my variable for the image is WallPostBg.

    Thanks.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,452
    Rep Power
    20

Similar Threads

  1. JTextArea
    By PhQ in forum AWT / Swing
    Replies: 10
    Last Post: 03-28-2010, 07:17 PM
  2. JTextArea on PopUp -JTextArea isn't editable
    By Richy76 in forum AWT / Swing
    Replies: 3
    Last Post: 02-01-2010, 08:51 PM
  3. Tab key in JTextArea
    By KristoZ in forum New To Java
    Replies: 1
    Last Post: 09-25-2009, 08:27 PM
  4. About JTEXTAREA
    By makpandian in forum AWT / Swing
    Replies: 4
    Last Post: 03-19-2009, 07:53 AM
  5. JTextArea
    By saytri in forum New To Java
    Replies: 0
    Last Post: 01-13-2008, 02:07 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •