Hi Im fairly new to java programming and I'm trying to do the following: I have a large frame (JFrame) in which I have two JInternalFrames. In one of these JInternalFrame I want to put a JTabbedPane. So far I can make the JFrame and the two JInternalFrames without problems, but I can't get the JTabbedPane to appear inside the JInteranlFrame (I can make the JTabbedPane in a seperate file). My question is therefore: How do I get the JTabbedPane inside the JInternalFrame?? Do I have to declear the JInternalFrame as a JTabbedPane or something?? Any help on this is much appreciated. Regards S�ren Augustesen
HI, I don't know what you are doing, but compare it to the lines below and make sure your code looks like it. JComponent c = (JComponent) frame.getContentPane(); c.setLayout(new BorderLayout()); c.add(new JButton(), BorderLayout.NORTH); c.add(new JButton(), BorderLayout.CENTER); The above code adds two buttons to a frame (JInternalFrame or JFrame). Regards, Manfred.
Joined: Nov 22, 2008
Hi Just wanted to say that I have solved the problem Regards S�ren Augustesen