This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes How to restrict length of table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to restrict length of table" Watch "How to restrict length of table" New topic
Author

How to restrict length of table

Kumar Anupam
Greenhorn

Joined: Oct 30, 2004
Posts: 19
Hello Everybody,

In my application module I am having two screen - input screen and confirmation screen. I have to maintain uniform witdh for all screens.

I am going through a strange problem.

In first page(input) I am providing textbox to enter additional information(max length is 120). And on confirmation page I show all this information of input page in a plane table.
It works fine for the sentences but if somebody entery string of 120 character without any spaces te width increases. eg BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB.

Even in this I need my width should remain maintained. I mean the cracters may wrap but my width should not be get effected.

Can somebody suggest any sollutoin.

Thanks in advance.


Thanks & Regards<br /> <br />Anupam
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30138
    
150

Kumar,
You could write a method to insert a space after X characters of data.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Sivaraman Lakshmanan
Ranch Hand

Joined: Aug 02, 2003
Posts: 231
Hi,
You can specify a width for that column like



Hope this helps


Regards,
Sivaraman.L
 
Don't get me started about those stupid light bulbs.
 
subject: How to restrict length of table
 
Similar Threads
How to set focus on a button in mozilla
Elastic code for all screen resolutions
Having problems calling a method?
&#9618; Free and Super New &#9618; IBM Test 000-484 (Enterprise Connectivity) ICE (56 questions)
What Is Use Case-Based Requirements?