Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Reading RS232 and displaying contents on Frame

Posts: 20
  • Mark post as helpful
  • send pies
  • 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...

Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • 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.
    today's feeble attempt to support the empire
    Java file APIs (DOC, XLS, PDF, and many more)
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!