problem reading from a file to a textfield

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tvboy
    New Member
    • Dec 2007
    • 1

    #1

    problem reading from a file to a textfield

    I am new in Java programming, i'm trying to read from a file to display in a textarea on a GUI, plz i'll appreciate deeply if anybody can help me out with sourcecodes.
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Read the API documentation for the JTextArea class: it can read its content
    from a file itself.

    kind regards,

    Jos

    Comment

    • BigDaddyLH
      Recognized Expert Top Contributor
      • Dec 2007
      • 1216

      #3
      I hope you noticed Jos's hint to prefer Swing over the older AWT.

      Here's another hint: look at JTextArea's superclass, JTextComponent:

      API for JTextComponent

      Comment

      Working...