Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Lew Newsgroups: comp.lang.java.gui Subject: Re: Problems with BasicComboBoxEditor Date: Wed, 15 Feb 2012 09:45:17 -0800 (PST) Organization: http://groups.google.com Lines: 24 Message-ID: <28737509.1474.1329327917274.JavaMail.geo-discussion-forums@pbce3> References: <87k43pw2dq.fsf@bitburger.home.felix> NNTP-Posting-Host: 173.164.137.214 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1329328909 8268 127.0.0.1 (15 Feb 2012 18:01:49 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 15 Feb 2012 18:01:49 +0000 (UTC) In-Reply-To: <87k43pw2dq.fsf@bitburger.home.felix> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=173.164.137.214; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T User-Agent: G2/1.0 X-Google-Web-Client: true Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.gui:5016 On Tuesday, February 14, 2012 1:06:57 PM UTC-8, Felix Natter wrote: > hi, > > I am using an editable ComboBox with BasicComboBoxEditor > (minimal example attached) with GTK or Nimbus L&Fs: > > JComboBox comboBox = new JComboBox(); > comboBox.setEditable(true); > comboBox.setEditor(new BasicComboBoxEditor()); > > I am having two problems with this: > > #1. the first character in the editable combobox (which uses a > JTextField internally) cannot show the first letter completely (too > few left padding, see attached minimal example) > > #2. The Background color of the editable combo box is white > (as opposed to normal comboboxes, which are grey, depending on L&F) Grey is a lower-contrast background color. Use white. Why make your widgets hard to use? -- Lew