File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Add the Text field to the TextArea or TextPane

 
ch patel
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to add the Text field to the TextArea or TextPane, is it possible ?
My aim is i want to read the text fiel in textpane/textarea and want to display the text field near the values which are read from the text file, so i need to display textfield as well as valeus of text file.

I think it may be not possible due to that textarea or textpane is not a contenar.

suggest if any solution is their.

Thanks
Chintan Patel
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by "to add the Text field to the TextArea"? You can put both elements next to each other in a layout. Are you somehow imagining putting them on top of one another? (I didn't get the explanation of why you want to do this).
 
selvarajan anand
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah. you can add a textfield to the textarea. it is possible. But, the textfield overlaps over the text of the textarea. try if you can make it opaque and adjusting the layout( if possible).
 
Darryl Burke
Bartender
Posts: 5115
11
Java Netbeans IDE Opera
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just another cross poster.
http://www.java-forums.org/awt-swing/18018-how-add-text-field-textarea-textpane.html
http://forums.sun.com/thread.jspa?threadID=5378923
 
Maneesh Godbole
Saloon Keeper
Posts: 10971
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Selvarajan",
Please check your private messages for an important administrative matter.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Darryl's link for the sun forums cross-post should have been

http://forums.sun.com/thread.jspa?threadID=5378796&tstart=0
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic