internal BatchResultBrowser(JButton batchResultsButton)
        {
            this.batchResultsButton = batchResultsButton;
            topPanel = new JPanel();
            setSize(500, 400);
            //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            setLayout(new BorderLayout());
            resultsBoxModel = new ResultBoxModel(this);
            resultsBox      = new JComboBox(resultsBoxModel);
            removeButton    = new JButton(IconLoader.getImageIcon("delete"));
            removeButton.addActionListener(this);
            removeButton.setToolTipText("Remove this batch result");
            reloadButton = new JButton(IconLoader.getImageIcon("arrow_refresh"));
            reloadButton.addActionListener(this);
            reloadButton.setToolTipText("Reload the list of available batch results");

            topPanel.add(resultsBox);
            topPanel.add(removeButton);
            topPanel.add(reloadButton);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.NORTH' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            add(topPanel, BorderLayout.NORTH);
            aboutArea = new JTextArea();
            aboutArea.setBorder(BorderFactory.createEmptyBorder());
            aboutArea.setLineWrap(true);
            aboutArea.setWrapStyleWord(true);
            aboutArea.setEditable(false);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.CENTER' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            add(new JScrollPane(aboutArea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER), BorderLayout.CENTER);
            resultsBox.addActionListener(this);
            //UPGRADE_ISSUE: Constructor 'java.awt.FlowLayout.FlowLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtFlowLayout"'
            //UPGRADE_ISSUE: Field 'java.awt.FlowLayout.RIGHT' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtFlowLayout"'
            JPanel closePanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));

            closeButton = new JButton("close");
            closeButton.addActionListener(this);
            closePanel.add(closeButton);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.SOUTH' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            add(closePanel, BorderLayout.SOUTH);
            batchResultsButton.setIcon(IconLoader.getImageIcon("lorry"));
        }
Example #2
0
        internal BatchResultBrowser(JButton batchResultsButton)
        {
            this.batchResultsButton = batchResultsButton;
            topPanel = new JPanel();
            setSize(500, 400);
            //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            setLayout(new BorderLayout());
            resultsBoxModel = new ResultBoxModel(this);
            resultsBox = new JComboBox(resultsBoxModel);
            removeButton = new JButton(IconLoader.getImageIcon("delete"));
            removeButton.addActionListener(this);
            removeButton.setToolTipText("Remove this batch result");
            reloadButton = new JButton(IconLoader.getImageIcon("arrow_refresh"));
            reloadButton.addActionListener(this);
            reloadButton.setToolTipText("Reload the list of available batch results");

            topPanel.add(resultsBox);
            topPanel.add(removeButton);
            topPanel.add(reloadButton);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.NORTH' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            add(topPanel, BorderLayout.NORTH);
            aboutArea = new JTextArea();
            aboutArea.setBorder(BorderFactory.createEmptyBorder());
            aboutArea.setLineWrap(true);
            aboutArea.setWrapStyleWord(true);
            aboutArea.setEditable(false);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.CENTER' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            add(new JScrollPane(aboutArea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER), BorderLayout.CENTER);
            resultsBox.addActionListener(this);
            //UPGRADE_ISSUE: Constructor 'java.awt.FlowLayout.FlowLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtFlowLayout"'
            //UPGRADE_ISSUE: Field 'java.awt.FlowLayout.RIGHT' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtFlowLayout"'
            JPanel closePanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
            closeButton = new JButton("close");
            closeButton.addActionListener(this);
            closePanel.add(closeButton);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.SOUTH' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            add(closePanel, BorderLayout.SOUTH);
            batchResultsButton.setIcon(IconLoader.getImageIcon("lorry"));
        }