Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Printing to a specific printer tray (HP 806dn printer) 3 83
mapAB Challlenge 35 124
firstswap challenge 20 67
split string containing \r\n in Java 46 38
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

910 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

23 Experts available now in Live!

Get 1:1 Help Now