Results 1 to 3 of 3

Thread: JSplitPane division of java

  1. #1
    WilsonMartin is offline Senior Member
    Join Date
    Dec 2009
    Posts
    319
    Rep Power
    3

    Default JSplitPane division of java

    I have started to learn java language I want to know about JSplitPane class. I want information about its constructors and methods. Any help will be appreciated.

  2. #2
    AndersonDiaz is offline Senior Member
    Join Date
    Dec 2009
    Posts
    311
    Rep Power
    3

    Default

    SplitPane is utilized to split two parts. They are graphically divided on look and feel completion, and two parts can then be interactively resized by user.

  3. #3
    ThomasBarnes is offline Senior Member
    Join Date
    Dec 2009
    Posts
    303
    Rep Power
    3

    Default

    See the code given below which may be useful for you:

    Code:
    import javax.swing.JSplitPane;
    
    public class JSplitPaneDemo{
      
      public static void main(String[] a) {
       int HORIZSPLT = JSplitPane.HORIZONTAL_SPLIT;
        int VERTSPLT = JSplitPane.VERTICAL_SPLIT;
    
        boolean continuousLayout = true;
        JLabel labelv1 = new JLabel("a");
        JLabel labelv2 = new JLabel("b");
        JLabel labelv3 = new JLabel("c");
        JSplitPane splitPane01 = new JSplitPane(VERTSPLIT, continuousLayout, label1, label2);
        splitPane01.setOneTouchExpandable(true);
        splitPane01.setDividerSize(2);
        splitPane01.setDividerLocation(0.5);
    
        JSplitPane splitPane2 = new JSplitPane(HORIZSPLIT, splitPane01, label3);
        splitPane2.setOneTouchExpandable(true);
        splitPane2.setDividerLocation(0.4);
        splitPane2.setDividerSize(2);
    
        JFrame frame07 = new JFrame();
        frame07.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame07.add(splitPane2);
        frame07.pack();
        frame07.setVisible(true);
      }
    }

Similar Threads

  1. Recover bad division in XP
    By MorganCooper in forum Windows XP
    Replies: 1
    Last Post: 06-21-2010, 02:00 PM
  2. Check HD for Bad division
    By MorganCooper in forum Hard Disk
    Replies: 0
    Last Post: 03-19-2010, 06:06 PM
  3. Use of GraphicsConfiguration division
    By HallMiller in forum Graphic Card
    Replies: 2
    Last Post: 02-27-2010, 12:04 PM
  4. Resizing of the Boot division
    By John Emburey in forum Everything Else
    Replies: 1
    Last Post: 05-08-2009, 02:36 PM
  5. Resizing of the Boot division
    By allster in forum Windows 7/2000/NT
    Replies: 1
    Last Post: 05-06-2009, 11:19 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48