This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
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
Manfred Leonhardt
Ranch Hand
Joined: Jan 09, 2001
Posts: 1492
posted
0
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.
Anonymous
Ranch Hand
Joined: Nov 22, 2008
Posts: 18944
posted
0
Hi Just wanted to say that I have solved the problem Regards S�ren Augustesen
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: Putting a JTabbedPane in a JInternalFrame