The Artima Developer Community
Sponsored Link

Java Answers Forum
How do I change editable JComboBox editable area?????

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Scott Trevino

Posts: 1
Nickname: scott
Registered: Jul, 2002

How do I change editable JComboBox editable area????? Posted: Jul 12, 2002 4:58 PM
Reply to this message Reply
Advertisement
I have tried all I can think of, does anyone know how to change the background color of the text area (i.e. area next to that nice little arrow) on an editable combobox.

In addition to setting the background of the cb I have tried the following with no luck:

...
ComboBoxEditor cbe = this.getEditor(); //this == Jcombobox
Component c = cbe.getEditorComponent();
c.setBackground(MxColor.LxColor);
((JTextField)this.g etEditor().getEditorComponent()).setBackground(MxColor.LxColor);
...



Many thanks in advance to someone who can help!

Scott

Topic: How to generate reports Previous Topic   Next Topic Topic: SQL Insert problem

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use