//splitter windowImportjava.awt.*;Importjavax.swing.*; Public classJiemian8extendsjframe{JSplitPane CF;//SplitJList lb; JLabel BQ; Public Static voidMain (string[] args) {//to run this class of construction methodsJiemian8 Jiemian =NewJiemian8 (); } PublicJiemian8 () {//ListString[] jsj={"Software development", "game development"}; LB=NewJList (JSJ); //Insert a picture into a labelbq=NewJLabel (NewImageIcon ("Image/1.jpg")); //Splits the object to split up or downcf=NewJSplitPane (JSPLITPANE.HORIZONTAL_SPLIT,LB,BQ); //hide the arrows of the split windowCf.setonetouchexpandable (true); //Add splitter window This. Add (CF); //Set Window caption This. Settitle ("Layout Integrated Application"); //Set the width height of the window This. SetSize (500,350); //The Settings window appears for the location of the screen This. setlocation (100,100); //no pulling the big pull small This. setresizable (false); //releasing a resource after closing a window This. Setdefaultcloseoperation (Jframe.exit_on_close); //Output Window This. setvisible (true); } }
JAVA splitter window