private void ShowProgressPanel() { ProductsPanel.Visible = false; keywordsList.Visible = false; SearchPanel.Visible = false; InstallButtons1.Visible = false; InstallButtons2.Visible = false; InstallPanel.Visible = false; AceptDEclineButtons.Visible = false; InstallCompletedPanel.Visible = false; ProgressPanel.Visible = true; ProgressTimer.Enabled = true; ProductsPanel.Update(); InstallPanel.Update(); ProgressPanel.Update(); }
private void InitComponents() { JComponent.SetDefaultLocale(Locale.US); java.awt.GridBagConstraints gridBagConstraints; choosePanel = new JPanel(); statusPanel = new JPanel(); status = new JLabel("initializing Q2Sharp..."); jTextField1 = new JTextField(); changeButton = new JButton(); cancelButton = new JButton(); exitButton = new JButton(); okButton = new JButton(); SetDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); SetTitle("Jake2 - Bytonic Software"); SetResizable(false); AddWindowListener(new AnonymousWindowAdapter(this)); choosePanel.SetLayout(new GridBagLayout()); choosePanel.SetMaximumSize(new Size(400, 100)); choosePanel.SetMinimumSize(new Size(400, 100)); choosePanel.SetPreferredSize(new Size(400, 100)); gridBagConstraints = new GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 1; gridBagConstraints.insets = new Insets(5, 5, 5, 5); gridBagConstraints.weightx = 0; gridBagConstraints.anchor = GridBagConstraints.SOUTHWEST; choosePanel.Add(new JLabel("baseq2 directory"), gridBagConstraints); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new Insets(5, 2, 5, 2); gridBagConstraints.weightx = 1; choosePanel.Add(jTextField1, gridBagConstraints); changeButton.SetText("..."); changeButton.AddActionListener(new AnonymousActionListener(this)); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 1; gridBagConstraints.weightx = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.NONE; gridBagConstraints.insets = new Insets(5, 2, 5, 5); gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; choosePanel.Add(changeButton, gridBagConstraints); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 4; gridBagConstraints.weightx = 0; gridBagConstraints.weighty = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL; choosePanel.Add(new JPanel(), gridBagConstraints); cancelButton.SetText("Cancel"); cancelButton.AddActionListener(new AnonymousActionListener1(this)); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.gridwidth = 4; gridBagConstraints.weighty = 0; gridBagConstraints.insets = new Insets(5, 5, 5, 5); gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTH; choosePanel.Add(cancelButton, gridBagConstraints); exitButton.SetText("Exit"); exitButton.AddActionListener(new AnonymousActionListener2(this)); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.gridwidth = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTHWEST; choosePanel.Add(exitButton, gridBagConstraints); okButton.SetText("OK"); okButton.AddActionListener(new AnonymousActionListener3(this)); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 2; gridBagConstraints.gridwidth = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTHEAST; choosePanel.Add(okButton, gridBagConstraints); Jake2Canvas c = new Jake2Canvas(); GetContentPane().Add(c, BorderLayout.CENTER); statusPanel.SetLayout(new GridBagLayout()); statusPanel.SetMaximumSize(new Dimension(400, 100)); statusPanel.SetMinimumSize(new Dimension(400, 100)); statusPanel.SetPreferredSize(new Dimension(400, 100)); gridBagConstraints = new GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new Insets(10, 10, 10, 10); gridBagConstraints.weightx = 1; statusPanel.Add(status, gridBagConstraints); GetContentPane().Add(statusPanel, java.awt.BorderLayout.SOUTH); progressPanel = new ProgressPanel(this); installPanel = new InstallPanel(this); notFoundPanel = new NotFoundPanel(this); Pack(); }