I'm making an example with java-gnome, but I have a problem,
how I can do to setting column?
gtk_combo_box_set_entry_text_column() ??
(
http://developer.gnome.org/gtk3/stable/GtkComboBox.html#gtk-combo-box-set-entry-text-column
)
(Example in *Scala*)
(
https://bitbucket.org/Miuler/miuler-blacknote/src/f1c6e770c3b1/src/main/scala/com/miuler/blacknote/BlackNote.scala#cl-67
)
private def initComboBox() {
val hBox = new HBox(false, 20)
hBox.setBorderWidth(5)
hBox.add(new Label("Buscar :"))
vBox.add(hBox)
add(vBox)
// ------------------------------------------------------------------------
val firstColumnString = new DataColumnString()
val secondsColumnString = new DataColumnString()
val arrayColumns = Array[DataColumn](firstColumnString, secondsColumnString)
val model = new ListStore(arrayColumns)
val comboBox = new ComboBox(model, new Entry())
hBox.add(comboBox)
// ------------------------------------------------------------------------
val cellRendererText = new CellRendererText(comboBox)
cellRendererText.setText(firstColumnString)
val cellRendererText2 = new CellRendererText(comboBox)
cellRendererText2.setText(secondsColumnString)
// ------------------------------------------------------------------------
var row = model.appendRow()
model.setValue(row, firstColumnString, "Hector")
model.setValue(row, secondsColumnString, "Miuler")
row = model.appendRow()
model.setValue(row, firstColumnString, "Hector2")
model.setValue(row, secondsColumnString, "Miuler2")
}
*
Hector Miuler Malpica Gallegos <http://www.miuler.com>
*
*
*
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
java-gnome-developer mailing list
java-gnome-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/java-gnome-developer