Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Editable JComboBox  RSS feed

 
Mike Machado
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All - Newb here!

I am having some issues making the JComboBox in my code editable. When i add the line tunes.setEditable(true); I receive the following errors: <identifier> expected & illegal start of type.

Any assistance will be greatly appreciated.



 
Knute Snortum
Sheriff
Posts: 4073
112
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Statements, except for declarations and initializations, need to be in methods or constructors.
 
Mike Machado
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you! That did it!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!