import java.awt.ComponentOrientation;
import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.JTextField;
public class Main extends JFrame {
JTabbedPane tabbedPane = new JTabbedPane();
public Main() {
tabbedPane.setPreferredSize(new Dimension(300, 200));
getContentPane().add(tabbedPane);
JPanel panel = new JPanel();
tabbedPane.add(panel, "null");
JTextField one = new JTextField("one");
tabbedPane.add(one, "one");
JTextField two = new JTextField("two");
tabbedPane.add(two, " Tittle 1 ");
tabbedPane.setEnabledAt(2, false);
tabbedPane.setTitleAt(2,
"
+ ">" + tabbedPane.getTitleAt(2) + "
");tabbedPane.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
tabbedPane.setTabPlacement(JTabbedPane.BOTTOM);
}
public static void main(String args[]) {
Main frame = new Main();
frame.setDefaultCloseOperation(EXIT_ON_CLOSE);
frame.pack();
frame.setVisible(true);
}
}