Results 1 to 5 of 5
Thread: Jtree link to JFrame Form
- 09-16-2008, 04:47 AM #1
Member
- Join Date
- Sep 2008
- Posts
- 4
- Rep Power
- 0
- 09-16-2008, 04:56 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 09-16-2008, 05:05 AM #3
Member
- Join Date
- Sep 2008
- Posts
- 4
- Rep Power
- 0
My codes
I had able to create two JSplitPane in left and right.But I am not able to link to JFrame Form when I click the left JSplitPane.Java Code:public class NewClass1 extends JFrame { CardLayout cl = new CardLayout(); JPanel cardPanel = new JPanel(cl); JTree jt = new JTree(); private JTree tree; public NewClass1() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Container content = getContentPane(); JSplitPane jsp = new JSplitPane(); jsp.setDividerLocation(100); content.add(jsp, BorderLayout.CENTER); jsp.add(jt, JSplitPane.LEFT); jsp.add(cardPanel, JSplitPane.RIGHT); setSize(1024,768); show(); }
- 09-16-2008, 06:31 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Do you want to display external frames?
- 09-16-2008, 06:53 AM #5
Member
- Join Date
- Sep 2008
- Posts
- 4
- Rep Power
- 0
Similar Threads
-
Move JTree item to another JTree.
By Melki in forum AWT / SwingReplies: 8Last Post: 07-09-2009, 11:59 AM -
setting background color of JFrame form with NetBeans 6.1
By onefootswill in forum New To JavaReplies: 4Last Post: 08-12-2008, 07:02 AM -
Link for 64 bit JDK.
By aparna in forum New To JavaReplies: 0Last Post: 03-19-2008, 02:15 PM -
Unsatisfied Link Error
By LudwigKarl in forum New To JavaReplies: 0Last Post: 03-18-2008, 01:31 AM -
Link List
By one198 in forum New To JavaReplies: 0Last Post: 10-14-2007, 01:33 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks