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
    Posts
    2

    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
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    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, 02:12 AM
  2. Replies: 3
    Last Post: 07-26-2007, 03:46 PM
  3. Reading Text From a Text File
    By adey in forum VB Classic
    Replies: 1
    Last Post: 03-12-2007, 09:54 AM
  4. Label Control Text Alignment....
    By Boyd Campbell in forum .NET
    Replies: 3
    Last Post: 02-14-2003, 02:24 PM
  5. Text
    By Mus in forum Java
    Replies: 2
    Last Post: 04-05-2002, 01: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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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