🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #11163

JComboBoxItemEditor problem

#11163
From: Yuri Sarytchev
Date: Sat, 03 Jul 1999 00:00
27 lines
1828 bytes
Hi, all

My environment: WinNT 4.0 + SP4, JBuilder 2.0 (pure 2.0, not 2.01, 2.01x,
etc), JDK 1.1.6_Borland, Swing 1.0.1 (shipped with JB).

I made an application using only JBCL controls, panels, etc. One of the
controls is the TreeControl with about a dozen custom node painters/editors.
The app's frame is a DecoratedFrame. All work as expected.

Then I created one more node editor extended from JComboBoxItemEditor and
add it to the tree. But it doesn't work: when I start an editing session on
this node the combobox (text field + arrow button) appears but w/o the
current node's value in the text field. And I cannot enter/edit in this text
field: any keystrokes and mouse clicks do nothing. When I press the
combobox's arrow button the drop-down list appears blank (but I add some
items to it) and doesn't react on any my actions.

After two days of hard work (not work but torture) I changed the app's frame
to Swing's JFrame. The combobox begun to work better: the drop-down list
functions as it should. But the text field continues to work unstable:
sometimes it allows editing, sometimes not. Sometimes the combobox's arrow
button disappears. Any addNotify(), validate(), etc don't help.

BTW, does anybody know how to control the combobox's text field editor. I
want to monitor ESC and ENTER keystrokes but cannot do this.

Thanks, Yuri.
Technical Details
Message-ID: <7ll04b$4s311@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,18c862309a272171,start
X-Google-Attributes: gid111d45,public
From: "Yuri Sarytchev" <juris@rinet.ru>
Subject: JComboBoxItemEditor problem
Date: 1999/07/03
Message-ID: <7ll04b$4s311@forums.borland.com>
X-Deja-AN: 496752437
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4