Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 206
  • Last Modified:

How to open and copy the content of a file to a textbox in SWT?

Hi,
I have a GUI that I create using SWT. In this GUI there is button and this button helps to select only files. Once you select the file in the file dialog window, the whole content of the file should be populated in the text box that I have in my GUI.

How can I do it using SWT?
0
Tolgar
Asked:
Tolgar
1 Solution
 
gudii9Commented:
Here is interesting link
http://www.coderanch.com/t/449226/GUI/java/read-entire-text-file-display

Hope it is useful to you.
0
 
worm-getterCommented:
check out this tutorial:

http://www.vogella.com/articles/SWT/article.html

good luck.
0
 
ValeriCommented:
take a look here:
http://www.experts-exchange.com/Programming/Languages/Java/Q_28166283.html
this is because one and the same class serves reading from file and writing to file
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now