Beispiel #1
0
 def __init__(self):
     DefaultCellEditor.__init__(self, JTextField())
     self.spinner = JSpinner(SpinnerListModel(choices))
     self.spinner.setEditor(JSpinner.ListEditor(self.spinner))
Beispiel #2
0
 def __init__(self):
     DefaultCellEditor.__init__(self, JTextField())
     values = 'Bacon,Eggs,Spam'.split(',')
     self.spinner = JSpinner(SpinnerListModel(values))
     self.spinner.setEditor(JSpinner.ListEditor(self.spinner))
Beispiel #3
0
 def __init__(self):
     self.comboBox = JComboBox(choices)
     DefaultCellEditor.__init__(self, self.comboBox)
Beispiel #4
0
 def __init__(self):
     DefaultCellEditor.__init__(self, JTextField())
     self.__form = None
Beispiel #5
0
 def __init__(self):
     choices = 'The,quick,brown,fox,jumped'.split(',')
     choices.extend('over,the,lazy,spam'.split(','))
     self.comboBox = JComboBox(choices)
     DefaultCellEditor.__init__(self, self.comboBox)
Beispiel #6
0
 def __init__(self):
     self.textfield = JTextField(horizontalAlignment=JTextField.RIGHT)
     DefaultCellEditor.__init__(self, self.textfield)