Home » Desktop Java » swing » JSplitPane

JSplitPane

Get/Set divider size in JSplitPane

This is an example on how to get or set the size of the divider in a JSplitPane component of a Java Desktop Application. In order to do that you have to follow these steps: Create a new JFrame. Call frame.getContentPane().setLayout(new FlowLayout()) to set flow layout for the frame. Create two String arrays that will containt the contents of the ...

Read More »

Get/Set divider location in JSplitPane

In this example on how to get or set the location of the divider in a JSplitPane component of a Java Desktop Application. In order to do that you have to follow these steps: Create a new JFrame. Call frame.getContentPane().setLayout(new FlowLayout()) to set flow layout for the frame. Create two String arrays that will containt the contents of the two areas of theJSplitPane. Create ...

Read More »

Create JSplitPane example

This is an example on how to create a new JSplitPane component for a Java Desktop Application.The JSplitPane is commonly used component because it lets you split your window horizontally or vertically in order to create a wide variety of GUI elements to suit your application’s needs. In short in order to create a JSplitPane component in Java, one should ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns