I have written a CheckBook application using a JTable contained in a JFrame. Now, I would like to embed it in a tabbed panel. I cannot do this directly as a JFrame is a window, and the JTabbed component can only use a panel component (JPanel). First, can a JTable be embedded in a JPanel component? Second, can anyone direct me to some sample code to embed a JTable in a JTabbed panel? Thanks in advance jlbalder
don't think too complicated [CODE] JScrollPane scrollPane = new JScrollPane(myTable); JTabbedPane tabPane = new JTabbedPane(); tabPane.add(scrollPane); JFrame f = new JFrame(); f.getContentPane().add(tabPane, BorderLayout.CENTER); [\CODE] cheers