Results 1 to 5 of 5
  1. #1
    jspexception is offline Member
    Join Date
    Jan 2012
    Posts
    27
    Rep Power
    0

    Unhappy TextArea size with column and rows!!

    I created 1 screen in that i use textarea
    add ,setbounds

    work properly!!
    problem is when i enter more characters in textarea
    then at certain it starts to disappearing the next characters!
    i used wrapLine
    Now problem is solve but only with width
    not height????????
    pressing enter it goes down and disapperes ???the text??

    plz help???????

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default Re: TextArea size with column and rows!!

    We'll have an easier time answering this if you give us more details, enough that would allow us to answer the question, and fewer distracting question marks.

    For instance, is this an AWT program or Swing program? Are you placing the text area in a scrollpane? What code do you have? Can you explain the details of how it's not working right?

  3. #3
    jspexception is offline Member
    Join Date
    Jan 2012
    Posts
    27
    Rep Power
    0

    Default Re: TextArea size with column and rows!!

    patttern class call from home screen as menubarItem
    and it extends from JInternalFrame!!
    add buttons and list

    Code for list in which want to add scroll:


    list=new JList(trusted);
    JScrollPane listScrollPane = new JScrollPane(list);
    JScrollBar j1=new JScrollBar();
    listScrollPane.setVerticalScrollBar(j1);
    listScrollPane.setVerticalScrollBarPolicy(ScrollPa neConstants.VERTICAL_SCROLLBAR_AS_NEEDED);


    same for the text area !!!!


    scroll is not displayed on screen and problem comes that text is not appers!!

  4. #4
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,236
    Rep Power
    7

    Default Re: TextArea size with column and rows!!

    See: Using Text Components (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components), for a working example of how to use a text area in a scroll pane.

  5. #5
    jspexception is offline Member
    Join Date
    Jan 2012
    Posts
    27
    Rep Power
    0

Similar Threads

  1. Problem while retrieving column size of ResultSet
    By gurrapuk in forum Advanced Java
    Replies: 5
    Last Post: 04-11-2011, 05:52 PM
  2. Replies: 4
    Last Post: 03-25-2011, 02:06 PM
  3. Fix the rows and column of JTextPane
    By anilkumar_vist in forum Advanced Java
    Replies: 2
    Last Post: 09-09-2010, 09:16 PM
  4. how to get ideal size of a TextArea
    By peterme in forum New To Java
    Replies: 1
    Last Post: 08-06-2010, 09:26 PM
  5. Replies: 1
    Last Post: 07-19-2010, 01:31 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
  •