aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Help with reprinting downloaded text from FTP site onto GUI! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Help with reprinting downloaded text from FTP site onto GUI!" Watch "Help with reprinting downloaded text from FTP site onto GUI!" New topic
Author

Help with reprinting downloaded text from FTP site onto GUI!

Big Girl
Greenhorn

Joined: Jun 10, 2009
Posts: 3
*This has already been posted on the Sun Java Forum, but I need help quickly, so I am cross-posting. Thank you!*

Basically, I have all of the data download from the FTP site but I can't get it to be reprinted to the GUI after the GUI is already opened initially. I'm pretty sure I have to make a new method at the very bottom of the GUIWindow.java class but I don't know what goes there. If anyone needs to look at the other classes, let me know. By the way, I'm handing this in for my final project in Computer Science tomorrow, so I need help quick! Any help is greatly appreciated! Thanks!

Scroll down for code...
pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
Cross-posted on the Sun Java Forum. To the OP, please have a look here: Be Forthright When Cross Posting To Other Sites

This is also general policy at the Sun fora and just good net etiquette.

Good luck!

/Pete
Big Girl
Greenhorn

Joined: Jun 10, 2009
Posts: 3
Sorry, I didn't realize that...I will edit the first post to reflect that. Thank you!
pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
The mods will also send you a private message about your screen name, but you can beat them to their game by reading the other FAQs here.

A question I have for you is this: have you sprinkled your code with println statements to see what the state of variables are in various locations? Either that or have you run it with a debugger? This can solve your whole problem, or at the very least show you exactly where your error is located.

For instance,


and
Big Girl
Greenhorn

Joined: Jun 10, 2009
Posts: 3
Ok, I narrowed down what I could, without taking too much out. My problem really only involves these two classes...I'm pretty sure it's a simple problem (since it's something I have missing, not something I need to fix) but I honestly don't know what to do. And I've only put a few println statements in there, but like I said, it's just something that needs to be added. By the way, to see if you did fix it, type in 'KLGA' (without the quotes of course) into the blank box before you hit convert. Thanks for any help!

DownloadMETAR.java:


GUIWindow.java:


CreateMETAR.java:


DecodeMETAR.java:


Edit: I just realized that the CreateMETAR.java class and DecodeMETAR.java class are both necessary to compile...I will post them, but you don't need to look in either class since I know for a fact that the problem isn't cause be either class.
pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
Please see the changes made to my post above. Also, your code does not compile. Non-compiling code without comments is extremely hard if not impossible to debug. You really should consider creating an SSCCE as recommended in your cross-post.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10395
    
    8

pete stein wrote:The mods will also send you a private message about your screen name, but you can beat them to their game by reading the other FAQs here.


"Big Girl",
Please check your private messages for an important administrative matter.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
wood burning stoves
 
subject: Help with reprinting downloaded text from FTP site onto GUI!