示例#1
0
        /// <summary>
        /// This method is called from within the constructor to initialize the form.
        /// WARNING: Do NOT modify this code. The content of this method is always
        /// regenerated by the Form Editor.
        /// </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @SuppressWarnings("unchecked") private void initComponents()
        private void initComponents()
        {
            scrollPane  = new javax.swing.JScrollPane();
            lblLevel    = new javax.swing.JLabel();
            cmbLogLevel = new javax.swing.JComboBox();
            btnClear    = new javax.swing.JButton();

            DefaultCloseOperation = javax.swing.WindowConstants.DISPOSE_ON_CLOSE;
            java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("pspsharp/languages/pspsharp"); // NOI18N
            Title       = bundle.getString("LogWindow.title");                                                   // NOI18N
            MinimumSize = new java.awt.Dimension(400, 120);

            scrollPane.ViewportView = tpLog;

            lblLevel.Text = bundle.getString("LogWindow.lblLevel.text");             // NOI18N

            cmbLogLevel.Model = new DefaultComboBoxModel(loglevels);
            cmbLogLevel.addItemListener(new ItemListenerAnonymousInnerClass(this));

            btnClear.Text = bundle.getString("ClearButton.text");             // NOI18N
            btnClear.addActionListener(new ActionListenerAnonymousInnerClass(this));

            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(ContentPane);
            ContentPane.Layout     = layout;
            layout.HorizontalGroup = layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(scrollPane).addGroup(layout.createSequentialGroup().addComponent(lblLevel).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(cmbLogLevel, 0, 309, short.MaxValue).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(btnClear))).addContainerGap());
            layout.VerticalGroup   = layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap().addComponent(scrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 145, short.MaxValue).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(lblLevel).addComponent(cmbLogLevel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addComponent(btnClear, javax.swing.GroupLayout.Alignment.TRAILING)).addContainerGap());

            pack();
        }         // </editor-fold>//GEN-END:initComponents
示例#2
0
 private EditorRow(TemplateEditor enclosingInstance, DeleteButton deleteButton, JLabel rowLabel, JComboBox typeBox, JTextField nameField)
 {
     InitBlock(enclosingInstance);
     this.deleteButton = deleteButton;
     this.rowLabel     = rowLabel;
     this.typeBox      = typeBox;
     this.nameField    = nameField;
 }
示例#3
0
 //UPGRADE_ISSUE: Class 'java.awt.GridBagLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagLayout"'
 //UPGRADE_ISSUE: Class 'java.awt.GridBagConstraints' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagConstraints"'
 private void  addTypesCombo(JPanel parent, JComboBox combo, GridBagLayout gridbag, GridBagConstraints c, int row)
 {
     //UPGRADE_ISSUE: Field 'java.awt.GridBagConstraints.gridx' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagConstraints"'
     c.gridx = 2;
     //UPGRADE_ISSUE: Field 'java.awt.GridBagConstraints.gridy' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagConstraints"'
     c.gridy = row;
     //UPGRADE_ISSUE: Field 'java.awt.GridBagConstraints.fill' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagConstraints"'
     //UPGRADE_ISSUE: Field 'java.awt.GridBagConstraints.NONE' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagConstraints"'
     c.fill = GridBagConstraints.NONE;
     //UPGRADE_ISSUE: Field 'java.awt.GridBagConstraints.anchor' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagConstraints"'
     //UPGRADE_ISSUE: Field 'java.awt.GridBagConstraints.WEST' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagConstraints"'
     c.anchor = GridBagConstraints.WEST;
     gridbag.setConstraints(combo, c);
     parent.add(combo);
 }
        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"));
        }
示例#5
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"));
        }
示例#6
0
        /// <summary>
        /// This method is called from within the constructor to initialize the form.
        /// WARNING: Do NOT modify this code. The content of this method is always
        /// regenerated by the Form Editor.
        /// </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @SuppressWarnings("unchecked") private void initComponents()
        private void initComponents()
        {
            addressField          = new javax.swing.JTextField();
            lblWidth              = new javax.swing.JLabel();
            widthField            = new javax.swing.JTextField();
            lblHeight             = new javax.swing.JLabel();
            heightField           = new javax.swing.JTextField();
            lblBufferWidth        = new javax.swing.JLabel();
            bufferWidthField      = new javax.swing.JTextField();
            lblAddress            = new javax.swing.JLabel();
            lblPixelFormat        = new javax.swing.JLabel();
            pixelFormatField      = new javax.swing.JComboBox();
            swizzleField          = new javax.swing.JCheckBox();
            lblCLUT               = new javax.swing.JLabel();
            clutAddressField      = new javax.swing.JTextField();
            lblCLUTNumberBlocks   = new javax.swing.JLabel();
            clutNumberBlocksField = new javax.swing.JTextField();
            lblCLUTFormat         = new javax.swing.JLabel();
            clutFormatField       = new javax.swing.JComboBox();
            lblBackgRoundColor    = new javax.swing.JLabel();
            backgRoundColorField  = new javax.swing.JComboBox();
            btnGoToAddress        = new javax.swing.JButton();
            btnGoToGE             = new javax.swing.JButton();
            btnGoToFB             = new javax.swing.JButton();
            useAlphaField         = new javax.swing.JCheckBox();
            memoryImage           = new MemoryImage(this);

            DefaultCloseOperation = javax.swing.WindowConstants.DISPOSE_ON_CLOSE;
            java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("pspsharp/languages/pspsharp"); // NOI18N
            Title       = bundle.getString("ImageViewer.title");                                                 // NOI18N
            MinimumSize = new Dimension(532, 500);

            addressField.Font = new java.awt.Font("Courier New", 0, 12);                         // NOI18N
            addressField.HorizontalAlignment = javax.swing.JTextField.CENTER;
            addressField.Text        = "0x00000000";                                             // NOI18N
            addressField.ToolTipText = bundle.getString("ImageViewer.addressField.toolTipText"); // NOI18N
            addressField.addKeyListener(new KeyAdapterAnonymousInnerClass(this));

            lblWidth.Text = bundle.getString("ImageViewer.lblWidth.text");             // NOI18N

            widthField.HorizontalAlignment = javax.swing.JTextField.CENTER;
            widthField.Text        = "480";                                                  // NOI18N
            widthField.ToolTipText = bundle.getString("ImageViewer.widthField.toolTipText"); // NOI18N
            widthField.addKeyListener(new KeyAdapterAnonymousInnerClass2(this));

            lblHeight.Text = bundle.getString("ImageViewer.lblHeight.text");             // NOI18N

            heightField.HorizontalAlignment = javax.swing.JTextField.CENTER;
            heightField.Text        = "272";                                                   // NOI18N
            heightField.ToolTipText = bundle.getString("ImageViewer.heightField.toolTipText"); // NOI18N
            heightField.addKeyListener(new KeyAdapterAnonymousInnerClass3(this));

            lblBufferWidth.Text = bundle.getString("ImageViewer.lblBufferWidth.text");             // NOI18N

            bufferWidthField.HorizontalAlignment = javax.swing.JTextField.CENTER;
            bufferWidthField.Text        = "512";                                                        // NOI18N
            bufferWidthField.ToolTipText = bundle.getString("ImageViewer.bufferWidthField.toolTipText"); // NOI18N
            bufferWidthField.addKeyListener(new KeyAdapterAnonymousInnerClass4(this));

            lblAddress.Text = bundle.getString("ImageViewer.lblAddress.text");             // NOI18N

            lblPixelFormat.Text = bundle.getString("ImageViewer.lblPixelFormat.text");     // NOI18N

            pixelFormatField.Model = new javax.swing.DefaultComboBoxModel(new string[] { "565", "5551", "4444", "8888", "Indexed 4", "Indexed 8", "Indexed 16", "Indexed 32", "DXT1", "DXT3", "DXT5" });
            pixelFormatField.addActionListener(new ActionListenerAnonymousInnerClass(this));

            swizzleField.Text = bundle.getString("ImageViewer.swizzleField.text");             // NOI18N
            swizzleField.addActionListener(new ActionListenerAnonymousInnerClass2(this));

            lblCLUT.Text = bundle.getString("ImageViewer.lblCLUT.text");                                 // NOI18N

            clutAddressField.Font = new java.awt.Font("Courier New", 0, 12);                             // NOI18N
            clutAddressField.HorizontalAlignment = javax.swing.JTextField.CENTER;
            clutAddressField.Text        = "0x00000000";                                                 // NOI18N
            clutAddressField.ToolTipText = bundle.getString("ImageViewer.clutAddressField.toolTipText"); // NOI18N
            clutAddressField.addKeyListener(new KeyAdapterAnonymousInnerClass5(this));

            lblCLUTNumberBlocks.Text = bundle.getString("ImageViewer.lblCLUTNumberBlocks.text");             // NOI18N

            clutNumberBlocksField.HorizontalAlignment = javax.swing.JTextField.CENTER;
            clutNumberBlocksField.Text        = "32";                                                              // NOI18N
            clutNumberBlocksField.ToolTipText = bundle.getString("ImageViewer.clutNumberBlocksField.toolTipText"); // NOI18N
            clutNumberBlocksField.addKeyListener(new KeyAdapterAnonymousInnerClass6(this));

            lblCLUTFormat.Text = bundle.getString("ImageViewer.lblCLUTFormat.text");             // NOI18N

            clutFormatField.Model = new javax.swing.DefaultComboBoxModel(new string[] { "565", "5551", "4444", "8888" });
            clutFormatField.addActionListener(new ActionListenerAnonymousInnerClass3(this));

            lblBackgRoundColor.Text = bundle.getString("ImageViewer.lblBackgRoundColor.text");             // NOI18N

            backgRoundColorField.Model        = new javax.swing.DefaultComboBoxModel(new string[] { "White", "Black", "Red", "Green", "Blue", "Gray" });
            backgRoundColorField.SelectedItem = "Black";
            backgRoundColorField.addActionListener(new ActionListenerAnonymousInnerClass4(this));

            btnGoToAddress.Text = bundle.getString("ImageViewer.btnGoToAddress.text");             // NOI18N
            btnGoToAddress.addActionListener(new ActionListenerAnonymousInnerClass5(this));

            btnGoToGE.Text = bundle.getString("ImageViewer.btnGoToGE.text");             // NOI18N
            btnGoToGE.addActionListener(new ActionListenerAnonymousInnerClass6(this));

            btnGoToFB.Text = bundle.getString("ImageViewer.btnGoToFB.text");             // NOI18N
            btnGoToFB.addActionListener(new ActionListenerAnonymousInnerClass7(this));

            useAlphaField.Text = bundle.getString("ImageViewer.useAlphaField.text");             // NOI18N
            useAlphaField.addActionListener(new ActionListenerAnonymousInnerClass8(this));

            memoryImage.BackgRound = new Color(0, 0, 0);
            memoryImage.Border     = javax.swing.BorderFactory.createLineBorder(new Color(255, 0, 0), 10);

            javax.swing.GroupLayout memoryImageLayout = new javax.swing.GroupLayout(memoryImage);
            memoryImage.Layout = memoryImageLayout;
            memoryImageLayout.HorizontalGroup = memoryImageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 480, short.MaxValue);
            memoryImageLayout.VerticalGroup   = memoryImageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 272, short.MaxValue);

            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(ContentPane);
            ContentPane.Layout     = layout;
            layout.HorizontalGroup = layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(lblPixelFormat).addComponent(lblAddress).addComponent(lblCLUT)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false).addComponent(addressField, javax.swing.GroupLayout.Alignment.LEADING).addComponent(clutAddressField).addComponent(pixelFormatField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))).addGroup(layout.createSequentialGroup().addComponent(lblBackgRoundColor).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(backgRoundColorField, 0, javax.swing.GroupLayout.DEFAULT_SIZE, short.MaxValue))).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addGap(26, 26, 26).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addComponent(swizzleField).addGap(18, 18, 18)).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup().addComponent(widthField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE).addGap(35, 35, 35))).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(useAlphaField).addGroup(layout.createSequentialGroup().addGap(10, 10, 10).addComponent(heightField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(lblBufferWidth).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(bufferWidthField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))).addGroup(layout.createSequentialGroup().addComponent(lblCLUTNumberBlocks).addGap(15, 15, 15).addComponent(clutNumberBlocksField, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(lblCLUTFormat).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(clutFormatField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))).addGroup(layout.createSequentialGroup().addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(lblWidth).addGap(74, 74, 74).addComponent(lblHeight)))).addComponent(memoryImage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addGap(0, 8, short.MaxValue)).addGroup(layout.createSequentialGroup().addComponent(btnGoToAddress, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, short.MaxValue).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, javax.swing.GroupLayout.DEFAULT_SIZE, short.MaxValue).addComponent(btnGoToGE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, short.MaxValue).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, javax.swing.GroupLayout.DEFAULT_SIZE, short.MaxValue).addComponent(btnGoToFB, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, short.MaxValue))).addContainerGap());
            layout.VerticalGroup   = layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(addressField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(lblWidth).addComponent(widthField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(lblHeight).addComponent(heightField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(lblBufferWidth).addComponent(bufferWidthField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(lblAddress)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(lblPixelFormat).addComponent(pixelFormatField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(swizzleField).addComponent(useAlphaField)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(clutAddressField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(lblCLUTNumberBlocks).addComponent(clutNumberBlocksField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(lblCLUTFormat).addComponent(clutFormatField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(lblCLUT)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(lblBackgRoundColor).addComponent(backgRoundColorField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(btnGoToAddress).addComponent(btnGoToGE).addComponent(btnGoToFB)).addGap(18, 18, 18).addComponent(memoryImage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, short.MaxValue));

            pack();
        }         // </editor-fold>//GEN-END:initComponents
示例#7
0
        public TemplateEditor(Rete engine) : base(engine)
        {
            InitBlock();
            setSize(600, 500);
            //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());
            setTitle("Create new Template");
            //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            contentPanel = new JPanel(new BorderLayout());
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.CENTER' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            add(contentPanel, BorderLayout.CENTER);
            cancelButton = new JButton("Cancel", IconLoader.getImageIcon("cancel"));
            cancelButton.addActionListener(this);
            assertButton = new JButton("Create Template", IconLoader.getImageIcon("brick_add"));
            assertButton.addActionListener(this);
            JPanel buttonPanel = new JPanel();

            //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.CENTER' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtFlowLayout"'
            buttonPanel.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 1));
            buttonPanel.add(cancelButton);
            buttonPanel.add(assertButton);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.SOUTH' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            add(buttonPanel, BorderLayout.SOUTH);

            nameField = new JTextField(15);
            Collection modules = engine.WorkingMemory.Modules;

            System.String[] moduleNames = new System.String[modules.size()];
            int             i           = 0;
            Iterator        itr         = modules.iterator();

            while (itr.hasNext())
            {
                System.Object obj = itr.next();
                moduleNames[i++] = ((Module)obj).ModuleName;
            }
            moduleBox = new JComboBox(moduleNames);


            addSlotButton = new JButton("Add Slot", IconLoader.getImageIcon("add"));
            addSlotButton.addActionListener(this);
            //UPGRADE_ISSUE: Field 'java.awt.Component.RIGHT_ALIGNMENT' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtComponentRIGHT_ALIGNMENT_f"'
            addSlotButton.setAlignmentX(Component.RIGHT_ALIGNMENT);

            JPanel topPanel = new JPanel();

            topPanel.setBorder(BorderFactory.createTitledBorder("General Template Settings"));
            //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.LEFT' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtFlowLayout"'
            topPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 20, 1));
            //UPGRADE_ISSUE: Constructor 'java.awt.GridLayout.GridLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridLayout"'
            JPanel innerTopPanel = new JPanel(new GridLayout(2, 2));

            innerTopPanel.add(new JLabel("Template-name:"));
            innerTopPanel.add(nameField);
            innerTopPanel.add(new JLabel("Template-Module:"));
            innerTopPanel.add(moduleBox);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.WEST' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            topPanel.add(innerTopPanel, BorderLayout.WEST);
            topPanel.add(addSlotButton);
            //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);

            dumpAreaTemplate.setEditable(false);
            //UPGRADE_NOTE: If the given Font Name does not exist, a default Font instance is created. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1075"'
            //UPGRADE_TODO: Method 'java.awt.Font.Plain' was converted to 'System.Drawing.FontStyle.Regular' which has a different behavior. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1073_javaawtFontPLAIN_f"'
            dumpAreaTemplate.setFont(new System.Drawing.Font("Courier", 12, (System.Drawing.FontStyle)System.Drawing.FontStyle.Regular));
            dumpAreaTemplate.setRows(5);

            JPanel dumpAreaPanel = new JPanel();

            dumpAreaPanel.setLayout(new BoxLayout(dumpAreaPanel, BoxLayout.Y_AXIS));
            dumpAreaPanel.setBorder(BorderFactory.createTitledBorder("Template Preview"));
            dumpAreaPanel.add(new JScrollPane(dumpAreaTemplate));
            reloadButtonDumpAreaTemplate = new JButton("Reload Template Preview", IconLoader.getImageIcon("arrow_refresh"));
            reloadButtonDumpAreaTemplate.addActionListener(this);
            dumpAreaPanel.add(reloadButtonDumpAreaTemplate);

            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.SOUTH' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            contentPanel.add(dumpAreaPanel, BorderLayout.SOUTH);
        }
        public ShellSettingsPanel(JamochaGui gui) : base(gui)
        {
            //UPGRADE_ISSUE: Class 'java.awt.GridBagLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagLayout"'
            //UPGRADE_ISSUE: Constructor 'java.awt.GridBagLayout.GridBagLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagLayout"'
            GridBagLayout gridbag = new GridBagLayout();
            //UPGRADE_ISSUE: Class 'java.awt.GridBagConstraints' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagConstraints"'
            //UPGRADE_ISSUE: Constructor 'java.awt.GridBagConstraints.GridBagConstraints' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagConstraints"'
            GridBagConstraints c = new GridBagConstraints();

            //UPGRADE_ISSUE: Field 'java.awt.GridBagConstraints.weightx' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagConstraints"'
            c.weightx = 1.0;
            setLayout(gridbag);

            // Font
            addLabel(this, new JLabel("Font:"), gridbag, c, 0);
            GraphicsEnvironment ge = GraphicsEnvironment.LocalGraphicsEnvironment;

            System.Drawing.Font[] allFonts = ge.AllFonts;
            fonts = new JComboBox(allFonts);
            System.Drawing.Font selFont     = null;
            System.String       selFontName = gui.Preferences.get("shell.font", "Courier");
            for (int idx = 0; idx < allFonts.Length; idx++)
            {
                System.Drawing.Font curFont = allFonts[idx];
                if (curFont.FontName.equals(selFontName))
                {
                    selFont = curFont;
                    break;
                }
            }
            if (selFont != null)
            {
                fonts.setSelectedItem(selFont);
            }
            fonts.setRenderer(new FontListCellRenderer(this));
            addInputComponent(this, fonts, gridbag, c, 0);

            // Fontsize
            addLabel(this, new JLabel("Fontsize:"), gridbag, c, 1);
            System.Int32[] sizes = new System.Int32[17];
            for (int i = 0; i < sizes.Length; ++i)
            {
                sizes[i] = 8 + i;
            }
            fontsizes = new JComboBox(sizes);
            //fontsizes.setSelectedItem(gui.getPreferences().getInt("shell.fontsize",
            //		12));
            addInputComponent(this, fontsizes, gridbag, c, 1);

            // Fontcolor
            addLabel(this, new JLabel("Fontcolor:"), gridbag, c, 2);
            //UPGRADE_ISSUE: Constructor 'java.awt.FlowLayout.FlowLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtFlowLayout"'
            JPanel fontColorChooserPanel = new JPanel(new FlowLayout());

            fontColorChooserPreview = new JTextField(5);
            fontColorChooserPreview.setEditable(false);
            fontColorChooserPreview.setBackground(new Color(gui.Preferences.getInt("shell.fontcolor", System.Drawing.Color.WHITE.RGB)));
            fontColorChooserButton = new JButton("Choose Color", IconLoader.getImageIcon("color_swatch"));
            fontColorChooserButton.addActionListener(this);
            fontColorChooserPanel.add(fontColorChooserPreview);
            fontColorChooserPanel.add(fontColorChooserButton);
            addInputComponent(this, fontColorChooserPanel, gridbag, c, 2);

            // Backgroundcolor
            addLabel(this, new JLabel("Backgroundcolor:"), gridbag, c, 3);
            //UPGRADE_ISSUE: Constructor 'java.awt.FlowLayout.FlowLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtFlowLayout"'
            JPanel backgroundColorChooserPanel = new JPanel(new FlowLayout());

            backgroundColorChooserPreview = new JTextField(5);
            backgroundColorChooserPreview.setEditable(false);
            backgroundColorChooserPreview.setBackground(new Color(gui.Preferences.getInt("shell.backgroundcolor", System.Drawing.Color.BLACK.RGB)));
            backgroundColorChooserButton = new JButton("Choose Color", IconLoader.getImageIcon("color_swatch"));
            backgroundColorChooserButton.addActionListener(this);
            backgroundColorChooserPanel.add(backgroundColorChooserPreview);
            backgroundColorChooserPanel.add(backgroundColorChooserButton);
            addInputComponent(this, backgroundColorChooserPanel, gridbag, c, 3);
        }
示例#9
0
        public TemplateEditor(Rete engine)
            : base(engine)
        {
            InitBlock();
            setSize(600, 500);
            //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());
            setTitle("Create new Template");
            //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            contentPanel = new JPanel(new BorderLayout());
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.CENTER' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            add(contentPanel, BorderLayout.CENTER);
            cancelButton = new JButton("Cancel", IconLoader.getImageIcon("cancel"));
            cancelButton.addActionListener(this);
            assertButton = new JButton("Create Template", IconLoader.getImageIcon("brick_add"));
            assertButton.addActionListener(this);
            JPanel buttonPanel = new JPanel();
            //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.CENTER' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtFlowLayout"'
            buttonPanel.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 1));
            buttonPanel.add(cancelButton);
            buttonPanel.add(assertButton);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.SOUTH' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            add(buttonPanel, BorderLayout.SOUTH);

            nameField = new JTextField(15);
            Collection modules = engine.WorkingMemory.Modules;
            System.String[] moduleNames = new System.String[modules.size()];
            int i = 0;
            Iterator itr = modules.iterator();
            while (itr.hasNext())
            {
                System.Object obj = itr.next();
                moduleNames[i++] = ((Module) obj).ModuleName;
            }
            moduleBox = new JComboBox(moduleNames);

            addSlotButton = new JButton("Add Slot", IconLoader.getImageIcon("add"));
            addSlotButton.addActionListener(this);
            //UPGRADE_ISSUE: Field 'java.awt.Component.RIGHT_ALIGNMENT' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtComponentRIGHT_ALIGNMENT_f"'
            addSlotButton.setAlignmentX(Component.RIGHT_ALIGNMENT);

            JPanel topPanel = new JPanel();
            topPanel.setBorder(BorderFactory.createTitledBorder("General Template Settings"));
            //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.LEFT' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtFlowLayout"'
            topPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 20, 1));
            //UPGRADE_ISSUE: Constructor 'java.awt.GridLayout.GridLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridLayout"'
            JPanel innerTopPanel = new JPanel(new GridLayout(2, 2));
            innerTopPanel.add(new JLabel("Template-name:"));
            innerTopPanel.add(nameField);
            innerTopPanel.add(new JLabel("Template-Module:"));
            innerTopPanel.add(moduleBox);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.WEST' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            topPanel.add(innerTopPanel, BorderLayout.WEST);
            topPanel.add(addSlotButton);
            //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);

            dumpAreaTemplate.setEditable(false);
            //UPGRADE_NOTE: If the given Font Name does not exist, a default Font instance is created. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1075"'
            //UPGRADE_TODO: Method 'java.awt.Font.Plain' was converted to 'System.Drawing.FontStyle.Regular' which has a different behavior. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1073_javaawtFontPLAIN_f"'
            dumpAreaTemplate.setFont(new System.Drawing.Font("Courier", 12, (System.Drawing.FontStyle) System.Drawing.FontStyle.Regular));
            dumpAreaTemplate.setRows(5);

            JPanel dumpAreaPanel = new JPanel();
            dumpAreaPanel.setLayout(new BoxLayout(dumpAreaPanel, BoxLayout.Y_AXIS));
            dumpAreaPanel.setBorder(BorderFactory.createTitledBorder("Template Preview"));
            dumpAreaPanel.add(new JScrollPane(dumpAreaTemplate));
            reloadButtonDumpAreaTemplate = new JButton("Reload Template Preview", IconLoader.getImageIcon("arrow_refresh"));
            reloadButtonDumpAreaTemplate.addActionListener(this);
            dumpAreaPanel.add(reloadButtonDumpAreaTemplate);

            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.SOUTH' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            contentPanel.add(dumpAreaPanel, BorderLayout.SOUTH);
        }
示例#10
0
 private EditorRow(TemplateEditor enclosingInstance, DeleteButton deleteButton, JLabel rowLabel, JComboBox typeBox, JTextField nameField)
 {
     InitBlock(enclosingInstance);
     this.deleteButton = deleteButton;
     this.rowLabel = rowLabel;
     this.typeBox = typeBox;
     this.nameField = nameField;
 }
示例#11
0
 //UPGRADE_ISSUE: Class 'java.awt.GridBagLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagLayout"'
 //UPGRADE_ISSUE: Class 'java.awt.GridBagConstraints' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagConstraints"'
 private void addTypesCombo(JPanel parent, JComboBox combo, GridBagLayout gridbag, GridBagConstraints c, int row)
 {
     //UPGRADE_ISSUE: Field 'java.awt.GridBagConstraints.gridx' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagConstraints"'
     c.gridx = 2;
     //UPGRADE_ISSUE: Field 'java.awt.GridBagConstraints.gridy' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagConstraints"'
     c.gridy = row;
     //UPGRADE_ISSUE: Field 'java.awt.GridBagConstraints.fill' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagConstraints"'
     //UPGRADE_ISSUE: Field 'java.awt.GridBagConstraints.NONE' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagConstraints"'
     c.fill = GridBagConstraints.NONE;
     //UPGRADE_ISSUE: Field 'java.awt.GridBagConstraints.anchor' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagConstraints"'
     //UPGRADE_ISSUE: Field 'java.awt.GridBagConstraints.WEST' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagConstraints"'
     c.anchor = GridBagConstraints.WEST;
     gridbag.setConstraints(combo, c);
     parent.add(combo);
 }