Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

pupolate Jtextfeild with combox that is populated from enum  RSS feed

 
Qaiser Mehmood
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an enum that populate the Jcombobox then this combobox populate the JTextfeild then I send Jtextfeild value to external device through serial port and that device save this value. when I read that parameter from device it shows the parameter exact which i set but the problem is that the combobox should also start from the value that I am geting back in textfeild.

supose i set "inprogress" for device that return in textfeild but combobox always start from "open" what i want it should start from "inprogress".



and combobox is populated here
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Welcome to the Ranch!
2. To get better help sooner, post a SSCCE that clearly demonstrates your problem.
3. JComboBox has a method setSelectedItem(...)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!