|
Adding Table to Frame generates: 'javax.swing.JPanel' has no attribute '__: msg#00044lang.jython.user
Reading through the book "Python Programming with the Java Class Libraries" I entered the code on page 417 and got the following results. What might be causing the error?
>>> from javax.swing import JFrame, JTable
>>> frame = JFrame('this is a table test')
>>> table = JTable(4,4)
>>> frame.contentPane().add(table)
Traceback (innermost last):
File "(console)", line 1, in ?
AttributeError: instance of 'javax.swing.JPanel' has no attribute '__call__'
>>>
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | An unsafe threading practice?, rmh83 |
|---|---|
| Next by Date: | Re: Adding Table to Frame generates: 'javax.swing.JPanel' has no attribute '__call__', Jeff Emanuel |
| Previous by Thread: | An unsafe threading practice?, rmh83 |
| Next by Thread: | Re: Adding Table to Frame generates: 'javax.swing.JPanel' has no attribute '__call__', Jeff Emanuel |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |