Results 1 to 5 of 5
- 01-03-2012, 09:40 AM #1
Member
- Join Date
- Jan 2012
- Posts
- 27
- Rep Power
- 0
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???????
-
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?
- 01-04-2012, 05:16 AM #3
Member
- Join Date
- Jan 2012
- Posts
- 27
- Rep Power
- 0
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!!
- 01-04-2012, 06:50 AM #4
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,158
- Rep Power
- 5
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.
- 01-04-2012, 07:22 AM #5
Member
- Join Date
- Jan 2012
- Posts
- 27
- Rep Power
- 0
Similar Threads
-
Problem while retrieving column size of ResultSet
By gurrapuk in forum Advanced JavaReplies: 5Last Post: 04-11-2011, 04:52 PM -
Jtable with column separators from top to bottom regardless the number of rows
By gjforte in forum AWT / SwingReplies: 4Last Post: 03-25-2011, 01:06 PM -
Fix the rows and column of JTextPane
By anilkumar_vist in forum Advanced JavaReplies: 2Last Post: 09-09-2010, 08:16 PM -
how to get ideal size of a TextArea
By peterme in forum New To JavaReplies: 1Last Post: 08-06-2010, 08:26 PM -
Using input from JTextField to adjust column size of another
By Trdmrk in forum AWT / SwingReplies: 1Last Post: 07-19-2010, 12:31 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks