Exemple #1
0
 def __init__(self):
     DefaultCellEditor.__init__(self, JTextField())
     self.spinner = JSpinner(SpinnerListModel(choices))
     self.spinner.setEditor(JSpinner.ListEditor(self.spinner))
Exemple #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))
Exemple #3
0
 def __init__(self):
     self.comboBox = JComboBox(choices)
     DefaultCellEditor.__init__(self, self.comboBox)
Exemple #4
0
 def __init__(self):
     DefaultCellEditor.__init__(self, JTextField())
     self.__form = None
Exemple #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)
Exemple #6
0
 def __init__(self):
     self.textfield = JTextField(horizontalAlignment=JTextField.RIGHT)
     DefaultCellEditor.__init__(self, self.textfield)