• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Reading RS232 and displaying contents on Frame

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...








 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
     
    Why am I so drawn to cherry pie? I can't seem to stop. Save me tiny ad!
    Thread Boost feature
    https://coderanch.com/t/674455/Thread-Boost-feature
    reply
      Bookmark Topic Watch Topic
    • New Topic