Solved

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

Posted on 2013-06-24
3
198 Views
Last Modified: 2013-07-09
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
Comment
Question by:Tolgar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 7

Expert Comment

by:gudii9
ID: 39273568
Here is interesting link
http://www.coderanch.com/t/449226/GUI/java/read-entire-text-file-display

Hope it is useful to you.
0
 
LVL 6

Expert Comment

by:worm-getter
ID: 39274452
check out this tutorial:

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

good luck.
0
 
LVL 16

Accepted Solution

by:
Valeri earned 500 total points
ID: 39301784
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
The viewer will learn how to implement Singleton Design Pattern in Java.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question