private void jbInit() throws Exception { titledBorder1 = new TitledBorder(""); this.setLayout(borderLayout1); this.setBorder(titledBorder1); titledBorder1.setTitleColor(Color.blue); titledBorder1.setTitle( ClientSettings.getInstance().getResources().getResource("documents filter")); this.add(sp, BorderLayout.CENTER); sp.setBorder(BorderFactory.createEmptyBorder()); sp.getViewport().add(innerPanel, null); sp.setAutoscrolls(true); innerPanel.setLayout(gridBagLayout1); }
private void jbInit() throws Exception { printButton.setToolTipText( ClientSettings.getInstance().getResources().getResource("print journal")); printButton.addActionListener(new JournalFilterFrame_printButton_actionAdapter(this)); controlCompaniesCombo.setAttributeName("companyCodeSys01WAR01"); this.setTitle(ClientSettings.getInstance().getResources().getResource("print journal")); buttonsPanel.setBorder(BorderFactory.createEtchedBorder()); mainPanel.setLayout(gridBagLayout1); labelFromDate.setText("from date"); labelToDate.setText("to date"); labelFromItemNr.setText("from item number"); labelCompanyCode.setText("companyCodeSys01WAR01"); this.getContentPane().add(mainPanel, BorderLayout.CENTER); this.getContentPane().add(buttonsPanel, BorderLayout.SOUTH); buttonsPanel.add(printButton, null); mainPanel.add( labelCompanyCode, new GridBagConstraints( 0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); mainPanel.add( labelFromDate, new GridBagConstraints( 0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); mainPanel.add( labelToDate, new GridBagConstraints( 0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); mainPanel.add( labelFromItemNr, new GridBagConstraints( 0, 3, 1, 1, 0.0, 1.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); mainPanel.add( controlCompaniesCombo, new GridBagConstraints( 1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); mainPanel.add( controlFromDate, new GridBagConstraints( 1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); mainPanel.add( controlToDate, new GridBagConstraints( 1, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); mainPanel.add( controlFromItemNr, new GridBagConstraints( 1, 3, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); Calendar cal = Calendar.getInstance(); cal.set(cal.DAY_OF_MONTH, 1); cal.set(cal.MONTH, 0); controlFromDate.setValue(cal.getTime()); controlToDate.setValue(new Date()); }