wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Reading RS232 and displaying contents on Frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Reading RS232 and displaying contents on Frame" Watch "Reading RS232 and displaying contents on Frame" New topic
Author

Reading RS232 and displaying contents on Frame

Fernando Hood
Greenhorn

Joined: May 23, 2008
Posts: 20
I having difficulty tying the serial port class to the UI and displaying its data. I was able to do this in vb relatively easily...








Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Can you post:
  • What you're trying to do;
  • What exactly is going wrong;
  • The relevant code?


  • I understand that you're attempting to access serial ports through Swing - but this is actually two (or more) separate processes - one is to access the serial port and send/receive some data; the second is to display this data in a Swing GUI. Which part are you having problems with, and what exactly is going wrong? Are you getting any exceptions?

    The code does download, compile, and run - but it seems to just be a generic "add two numbers in a Swing form" example (built through Netbeans) mashed together with some javax.comm serial port stuff. Does the "add two numbers" stuff have anything to do with your problem? (If not, why post it?) I'm not sure what I'm supposed to do with the GUI or what results I'm supposed to see.


    -Nate
    Write once, run anywhere, because there's nowhere to hide! - /. A.C.
     
    wood burning stoves
     
    subject: Reading RS232 and displaying contents on Frame
     
    Similar Threads
    Problem With GUI of Net Beans
    Storing JTextField to variable
    Pressing a button to open a new window
    adding and manipulating elements of a CCombo
    If-Else help please