Mega Code Archive

 
Categories / Java / Swing JFC
 

Setting the Location of the Tabs in a JTabbedPane Container

import javax.swing.JTabbedPane; public class Main {   public static void main(String[] argv) throws Exception {     JTabbedPane pane = new JTabbedPane();     int loc = pane.getTabPlacement();      int location = JTabbedPane.LEFT; // or TOP, BOTTOM, RIGHT     pane = new JTabbedPane(location);     pane.setTabPlacement(JTabbedPane.BOTTOM);   } }