Wrox Programmer Forums
|
Pro Java Expert level Java questions not about a specific book. Please indicate your version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro Java section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 8th, 2006, 11:33 AM
Authorized User
 
Join Date: Jan 2005
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default Opening a file

Hi,

I was wondering if someone could help me. i have some code that outputs a list of files in a directory to an SWT table. the problem i am having is that i would like to be able to open any one of the files in the list in a separate little window. i have it working using JTextPane in swing but i dont know how to get it to work in SWT. Can anyone please help me. i'm really stuck on this.

Thanks in advanced,
scoobie

 
Old August 10th, 2006, 02:30 PM
Authorized User
 
Join Date: Jan 2005
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i got it to work in SWT, the problem i am having now is that i dont know how to do a listener on table items. i have it working on the whole table the problem is when i go to select a file to open it opens every file in the table and not just the one i selected.

can anyone please help me?
thanks
scoobie






Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening file 80240210 Flash (all versions) 0 July 24th, 2007 06:08 PM
Opening Excel file p2pMember ASP.NET 1.0 and 1.1 Professional 1 January 21st, 2006 01:54 PM
file opening jain_mj Visual C++ 0 November 4th, 2005 10:42 AM
file opening silver_cuts Classic ASP Basics 3 June 29th, 2004 01:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.