Results 1 to 4 of 4
  1. #1
    Chintan Patel is offline Member
    Join Date
    Mar 2009
    Posts
    3
    Rep Power
    0

    Smile How To add the Text field to the TextArea or TextPane

    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

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

    Default

    I know that this can be done in Swing by changing the layout of the JTextArea, and possibly it can be done in AWT too by doing the same thing, but I'm trying to think if I've ever seen a commercial application show something like this, and I haven't. If the developers of commercial apps think that this is a bad idea, perhaps you should too.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Thanks for the warning, Darryl. I will certainly think twice before answering his questions again.

Similar Threads

  1. launching Jframe from text field
    By crunchymonkey in forum AWT / Swing
    Replies: 4
    Last Post: 10-15-2008, 02:50 AM
  2. get numeric value from a text field
    By Lehane_9 in forum New To Java
    Replies: 2
    Last Post: 06-14-2008, 03:19 AM
  3. Regarding Text Field
    By adeeb in forum AWT / Swing
    Replies: 1
    Last Post: 06-05-2008, 11:01 PM
  4. Waste Space & Text Field
    By Gajesh Tripathi in forum AWT / Swing
    Replies: 2
    Last Post: 12-01-2007, 07:44 AM
  5. Replies: 1
    Last Post: 08-07-2007, 05:35 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
  •