aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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.
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Reading RS232 and displaying contents on Frame
     
    Similar Threads
    adding and manipulating elements of a CCombo
    Storing JTextField to variable
    Pressing a button to open a new window
    Problem With GUI of Net Beans
    If-Else help please