• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help with reprinting downloaded text from FTP site onto GUI!

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
*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...
 
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, I didn't realize that...I will edit the first post to reflect that. Thank you!
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
No, tomorrow we rule the world! With this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic