Results 1 to 8 of 8
Thread: Help Create Dynamic Srcollbar
- 08-14-2010, 06:31 AM #1
Member
- Join Date
- Aug 2010
- Posts
- 1
- Rep Power
- 0
- 08-14-2010, 08:29 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,413
- Blog Entries
- 7
- Rep Power
- 17
- 08-14-2010, 08:41 AM #3
Senior Member
- Join Date
- Apr 2010
- Location
- Belgrade, Serbia
- Posts
- 278
- Rep Power
- 4
Jos, is there any method for JTextArea that setting word wrap to true?
- 08-14-2010, 08:53 AM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,413
- Blog Entries
- 7
- Rep Power
- 17
- 08-14-2010, 09:03 AM #5
Senior Member
- Join Date
- Apr 2010
- Location
- Belgrade, Serbia
- Posts
- 278
- Rep Power
- 4
I think that TextArea is obsolete in java.So you switched from a TextArea to a JTextArea?
I think that word wrapping will be useful in this case.Example I create 1 TextArea with width = 400, height = 40. When enter Text into TextArea if width of text or height of text greater than width or height of TextArea then appear Scrollbar. Please help me.
- 08-14-2010, 09:09 AM #6
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,413
- Blog Entries
- 7
- Rep Power
- 17
- 08-14-2010, 09:19 AM #7
Senior Member
- Join Date
- Apr 2010
- Location
- Belgrade, Serbia
- Posts
- 278
- Rep Power
- 4
I have done word wrapping with: setLineWrap(true); and without setting horizontal scroll bar in JScrollPane.
Jos, you were right:
In API documentation they are saying that it is possible to set word wrap in JTextArea without using JScrollPane (and horizontal scroll bar settings).
JavaBender, I think this will be useful for your problem.
- 08-14-2010, 09:31 AM #8
Senior Member
- Join Date
- Apr 2010
- Location
- Belgrade, Serbia
- Posts
- 278
- Rep Power
- 4
I know that. Well maybe obsolete is not the real word but I think that awt for components are not in big usage in the year 2010. When advanced programers use awt for components they now really good what they are doing, but when beginners use it then I think that they have wrong book, looking wrong web pages on the internet or have a wrong teacher.No it isn't, it is just an old AWT object while the JTextArea component is a Swing object.
Similar Threads
-
Problem--How to create dynamic tree structure in jsp using javascript
By natu in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 08-11-2010, 08:11 AM -
How to create dynamic string object???
By Stephen Douglas in forum New To JavaReplies: 8Last Post: 04-12-2010, 02:35 AM -
Dynamic for loop
By vikrambatra1709 in forum Advanced JavaReplies: 3Last Post: 02-08-2010, 08:11 AM -
Dynamic GUI
By ike2u in forum New To JavaReplies: 4Last Post: 08-08-2009, 02:50 AM -
How to create Dynamic application using J2ME?
By sharmaj2me in forum CLDC and MIDPReplies: 1Last Post: 01-31-2009, 03:19 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks