Results 1 to 2 of 2
  1. #1
    rick1902 is offline Member
    Join Date
    Dec 2011
    Posts
    1
    Rep Power
    0

    Default JComboBox and UpperCase ?

    Hello everydoby.
    How can i make the jComboBox acept only Uppercase when type ?

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,184
    Rep Power
    19

    Default Re: JComboBox and UpperCase ?

    Obtain a reference to the combo box's editor's editor component, cast it to JTextField, set a DocumentFilter to the text field's Document after casting to AbstractDocument.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Strings Lower/UpperCase
    By jeata in forum New To Java
    Replies: 1
    Last Post: 10-30-2010, 05:37 PM
  2. uppercase and lowercase please help
    By cuziwow in forum New To Java
    Replies: 4
    Last Post: 04-11-2010, 07:54 AM
  3. Replies: 2
    Last Post: 12-10-2009, 01:58 PM
  4. Need Help for this problem Uppercase.
    By ezered in forum New To Java
    Replies: 5
    Last Post: 12-04-2009, 12:05 AM
  5. UpperCase problem
    By logieen in forum New To Java
    Replies: 1
    Last Post: 08-03-2008, 11:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •