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"));
        }
示例#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"));
        }
示例#3
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