SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Rob Prime wrote:Why can't you just add a String? What does a JLabel offer that a String doesn't?
Anyway, if you would have used our search with just keywords "jtable" and "jlabel" you would have found this thread which again leads to this thread.
luck, db
There are no new questions, but there may be new answers.
Time isn't Money, Money is Time.
The man who works looses his time ( spanish proverb )
Passed: SCJP 6 (90%), SCJD 6
Other: Spring training, extensive Swing experience
John McParland wrote:
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Time isn't Money, Money is Time.
The man who works looses his time ( spanish proverb )
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Wolfgang Tintemann wrote:Sorry, I want to add this question : you write
table.setDefaultRenderer(String.class, new LabelRenderer());
Why not JLabel.class instead of String.class ?
Do you think I can also make a Table full of JPanels with this method
by replacing JLabel with JPanel ?
Time isn't Money, Money is Time.
The man who works looses his time ( spanish proverb )
Wolfgang Tintemann wrote:Is there a book/tutorial which deals exclusively with this complex
handling of the JTable object ? This would be very needed.
Rob Spoor wrote:
John McParland wrote:
No offense but that class doesn't make much sense. You extend DefaultTableCellRenderer which a) is a JLabel subclass itself, and b) returns a JLabel (itself) from getTableCellRendererComponent. You can implement the same much more efficiently:
Passed: SCJP 6 (90%), SCJD 6
Other: Spring training, extensive Swing experience
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
I'm full of tinier men! And a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|