This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Netbeans Swing  RSS feed

 
Kannan Baludaiyan
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
NetBeans Swing:
I add a JTabel in JFrame,then I add JCombobox,In that Jtabel I add a path of the some files if i choose a file on the runtime in my JTabel,JCombobox shows the which S.no.My Problem is if i choose a same file at more time means the same serial no will add to my JCombobox i want to avoid that repetation please help me.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.
i want to avoid that repetation please help me.

When you add the new item, check if it exists and add it only if it doesnt.


On a side note, if you are new to Swing, drop Netbeans DnD and start hand coding. That is the best way to learn Swing, without actually ending up learning (only) netbeans DnD
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!