How can I set size of tab in a jTabbedpane? plz help

One of the way to do is

JLabel lab = new JLabel("Checking");
lab.setPreferredSize(new Dimension(200,40));
jTabbedPane1.setTabComponentAt(0, lab);

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.