Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-10-2012, 08:54 PM   PM User | #1
fenhopi
New Coder

 
Join Date: Jul 2010
Posts: 44
Thanks: 1
Thanked 0 Times in 0 Posts
fenhopi is an unknown quantity at this point
GUI with "scrollable label"?

Hi, I'm writing a program that transfers files from a folder to another. What I want to do is to somehow list all the files that it's transferring as it goes. This works fine in console, since I can just use System.out.println. However, now I need to somehow achieve the same result through my GUI. Just to be clear, I need to be able to scroll up to view files that have already been transferred.

I'm really stuck at this, and would appreciate any form of help or guidance!
fenhopi is offline   Reply With Quote
Old 01-10-2012, 09:00 PM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,650
Thanks: 4
Thanked 2,451 Times in 2,420 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
IMO the easiest way would be to use a JTextArea, attached to a JScrollPane, and simply append the data to the underlying text area and repaint. Alter the textArea by setting the setEditable to true (I think that's what the method is on it :/).
Fou-Lu is offline   Reply With Quote
Old 01-10-2012, 09:37 PM   PM User | #3
fenhopi
New Coder

 
Join Date: Jul 2010
Posts: 44
Thanks: 1
Thanked 0 Times in 0 Posts
fenhopi is an unknown quantity at this point
I'll try that, thank you!
fenhopi is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:18 AM.


Advertisement
Log in to turn off these ads.