Size « JTabbedPane « Java Swing Q&A





4. JTabbedPane size    forums.oracle.com

Hi ! I have a JTabbedPane (JTabbedPane tabbedPane = new JTabbedPane();) . I have added three tabs within it (JComponent panel1,panel2,panel3). All this is finally added to a frame. SwingUtilities.invokeLater(new Runnable() {public void run() { JFrame frame = new JFrame("VRDS"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.add(new gui()); frame.pack(); frame.setVisible(true); }}); I want to increase the size of the TabbedPane. I have tried using the setSize() ...