Combining different components together especially JTree with other components, for example, JButton、JPanel、etc. Sun posts tutorials that can solve these problems. Solution comes in the class of TreeCellRenderer. But firstly, programmers have to study two different parts: Swing(http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html) & Renderers/Editors(http://java.sun.com/docs/books/tutorial/2d/overview/rendering.html; http://java.sun.com/docs/books/tutorial/uiswing/examples/components/index.html; — TableDialogEditDemo; http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#editrender) relative threads in swing forum Tutorial is relatively too short comparing to the [...]
Archive for September 8th, 2009
TreeCellRenderer (Global Knowledge)
Posted in Ideas, Topics, and Other Issues on September 8, 2009 | 3 Comments »
Pilot study of Jbutton– interaction of JTree& JCheckboxes, with code
Posted in Pilot Study Entries, tagged TreeCellRenderer FAQ on September 8, 2009 | 2 Comments »
Pilot Study of Selective Messages Message thread: http://forums.sun.com/thread.jspa?forumID=57&threadID=486240 Message Description: Renderer for interaction between JTree and other components needs a viable solution. ???? -DHou ???? In this thread, no compiled code works. Message type: goal-oriented —In what sense is it goal-oriented since as you have stated below, the OP has no idea what [...]
Pilot study of Jbutton- interaction of Jtree& JCheckboxes, renderer
Posted in Pilot Study Entries, tagged TreeCellRenderer FAQ on September 8, 2009 | 2 Comments »
Pilot Study of Selective Messages Message thread: http://forums.sun.com/thread.jspa?forumID=257&threadID=170474 Message Description: OP considers an interaction between Jtree and Jbutton. He wants to create a TreeNode that renders like a button and listens to its selection. A TreeCellRenderer implementation could be enabled in a Jtree. Solution from a3: Create a TreeCellRenderer similar to DefaultTreeCellRenderer that [...]
Pilot study of Jbutton- interaction of Jtree& Jbutton, renderer
Posted in Pilot Study Entries, tagged TreeCellRenderer FAQ on September 8, 2009 | 3 Comments »
Pilot Study of Selective Messages Message thread: http://forums.sun.com/thread.jspa?forumID=57&threadID=597210 Message Description: OP considers an interaction between Jtree and Jbutton. He wants to create a TreeNode that renders like a button and listens to its selection. A TreeCellRenderer implementation could be enabled in a Jtree. Message type: goal-oriented Q&A process: q1-a1(show the problem essence)-a2-a3(leads to [...]