Solved

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

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Java program running SQL query 5 58
Fast way to search item into Java Array (Rhino compatible) 2 45
American Express @Work site and Java 4 87
maximize the sum of fractions 33 70
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
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…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

740 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