Hi,
I'm just starting with Java-Gnome and GTK, and I have some questions about
ComboBoxEntry.
I'm developing an application in wich I would do the following:
1) clear the text in the Entry associated with the ComboBoxEntry when the
user clicks a button
2) prevent the user from directly edit the Entry associated with that
ComboBox (setting that Entry "editable" property to false)
In order to do number 1 above, I've tried to do the following:
Entry entry= (Entry) (combo_box_entry.getChild());
entry.setText("");
which yelds a ClassCastException in the first line.
Am I doing something wrong? I've read somewhere that ComboBox is a Bin, and
thus it's child Entry is available through getChild()...is this right?
Any help is appreciated. Thanks in advance!
--
Marco Antonio Porcho Souza
|