private javax . swing . JPanel getPanelCommand ( ) { if ( panelCommand == null ) { panelCommand = new javax . swing . JPanel ( ) ; panelCommand . setLayout ( new java . awt . GridBagLayout ( ) ) ; panelCommand . setName ( Constant . messages . getString ( "httpsessions.panel.title" ) ) ; // Add the two components: toolbar and work pane GridBagConstraints toolbarGridBag = new GridBagConstraints ( ) ; GridBagConstraints workPaneGridBag = new GridBagConstraints ( ) ; toolbarGridBag . gridx = 0 ; toolbarGridBag . gridy = 0 ; toolbarGridBag . weightx = 1.0d ; toolbarGridBag . insets = new java . awt . Insets ( 2 , 2 , 2 , 2 ) ; toolbarGridBag . anchor = java . awt . GridBagConstraints . NORTHWEST ; toolbarGridBag . fill = java . awt . GridBagConstraints . HORIZONTAL ; workPaneGridBag . gridx = 0 ; workPaneGridBag . gridy = 1 ; workPaneGridBag . weightx = 1.0 ; workPaneGridBag . weighty = 1.0 ; workPaneGridBag . insets = new java . awt . Insets ( 0 , 0 , 0 , 0 ) ; workPaneGridBag . anchor = java . awt . GridBagConstraints . NORTHWEST ; workPaneGridBag . fill = java . awt . GridBagConstraints . BOTH ; panelCommand . add ( this . getPanelToolbar ( ) , toolbarGridBag ) ; panelCommand . add ( getWorkPane ( ) , workPaneGridBag ) ; } return panelCommand ; }
This method initializes the main panel .