Solved

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

Posted on 2013-06-24
3
193 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
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

757 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now