Regards.
I need to change the size of the "tab" of a tabbedpane but i don´t know how, hope someone can help me.
JButton l = new JButton("first tab");
l.setPreferredSize(new Dimension(50, 50));
JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
tabbedPane.setTabComponentAt(1, l);
tabbedPane.setBackground(Color.WHITE);
frame.getContentPane().add(tabbedPane, BorderLayout.CENTER);
in the previous code i have tried to add a button as a tab but no works.