How to add text in a JComboBox at runtime

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: How to add text in a JComboBox at runtime

  1. #1
    Join Date
    Feb 2008

    Question How to add text in a JComboBox at runtime

    Hey Guys

    How can a text be added in a JComboBox at runtime and the text should be set selected.

  2. #2
    Join Date
    Apr 2007
    Sterling Heights, Michigan
    Where is the text coming from?

    Is it hard code into your application or are you getting it from some external database source?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. Replies: 1
    Last Post: 10-24-2007, 03:12 AM
  2. Replies: 3
    Last Post: 07-26-2007, 04:46 PM
  3. Reading Text From a Text File
    By adey in forum VB Classic
    Replies: 1
    Last Post: 03-12-2007, 10:54 AM
  4. Label Control Text Alignment....
    By Boyd Campbell in forum .NET
    Replies: 3
    Last Post: 02-14-2003, 03:24 PM
  5. Text
    By Mus in forum Java
    Replies: 2
    Last Post: 04-05-2002, 02:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center