示例#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>
        // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
        private void initComponents()
        {
            jPopupMenu1     = new JPopupMenu();
            copyItem        = new JMenuItem();
            saveAsItem      = new JMenuItem();
            jSplitPane1     = new javax.swing.JSplitPane();
            jScrollPane1    = new javax.swing.JScrollPane();
            commandLogTable = new JTable();
            jScrollPane2    = new javax.swing.JScrollPane();
            fileHandleTable = new JTable();
            cbFileTrace     = new javax.swing.JCheckBox();

            copyItem.Accelerator = javax.swing.KeyStroke.getKeyStroke([email protected]_C, [email protected]_MASK);
            java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("pspsharp/languages/pspsharp"); // NOI18N
            copyItem.Text = bundle.getString("FileLoggerFrame.copyItem.text");                                   // NOI18N
            copyItem.addActionListener(new ActionListenerAnonymousInnerClass(this));
            jPopupMenu1.add(copyItem);

            saveAsItem.Text = bundle.getString("FileLoggerFrame.saveAsItem.text");             // NOI18N
            saveAsItem.addActionListener(new ActionListenerAnonymousInnerClass2(this));
            jPopupMenu1.add(saveAsItem);

            DefaultCloseOperation = javax.swing.WindowConstants.DISPOSE_ON_CLOSE;
            Title       = bundle.getString("FileLoggerFrame.title");       // NOI18N
            MinimumSize = new java.awt.Dimension(400, 200);

            jSplitPane1.DividerLocation = 100;
            jSplitPane1.Orientation     = javax.swing.JSplitPane.VERTICAL_SPLIT;
            jSplitPane1.MinimumSize     = new java.awt.Dimension(179, 100);

            commandLogTable.Model             = fileCommandModel;
            commandLogTable.InheritsPopupMenu = true;
            commandLogTable.MinimumSize       = new java.awt.Dimension(200, 100);
            commandLogTable.Name = bundle.getString("FileLoggerFrame.commandLogTable.name");             // NOI18N
            commandLogTable.addMouseListener(new MouseAdapterAnonymousInnerClass(this));
            jScrollPane1.ViewportView = commandLogTable;

            jSplitPane1.BottomComponent = jScrollPane1;

            fileHandleTable.Model             = fileHandleModel;
            fileHandleTable.InheritsPopupMenu = true;
            fileHandleTable.MinimumSize       = new java.awt.Dimension(200, 100);
            fileHandleTable.Name = bundle.getString("FileLoggerFrame.fileHandleTable.name");             // NOI18N
            fileHandleTable.addMouseListener(new MouseAdapterAnonymousInnerClass2(this));
            jScrollPane2.ViewportView = fileHandleTable;

            jSplitPane1.TopComponent = jScrollPane2;

            cbFileTrace.Text = bundle.getString("FileLoggerFrame.cbFileTrace.text");             // NOI18N
            cbFileTrace.addActionListener(new ActionListenerAnonymousInnerClass3(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).addGroup(layout.createSequentialGroup().addComponent(cbFileTrace).addGap(0, 0, short.MaxValue)).addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 628, short.MaxValue)).addContainerGap());
            layout.VerticalGroup   = layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup().addContainerGap().addComponent(cbFileTrace).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 257, short.MaxValue).addContainerGap());

            pack();
        }         // </editor-fold>//GEN-END:initComponents
示例#2
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()
        {
            textcheck     = new javax.swing.JCheckBox();
            initcheck     = new javax.swing.JCheckBox();
            finicheck     = new javax.swing.JCheckBox();
            lblCountWhat  = new javax.swing.JLabel();
            progressBar   = new javax.swing.JProgressBar();
            btnStart      = new javax.swing.JButton();
            jScrollPane1  = new javax.swing.JScrollPane();
            areastatus    = new javax.swing.JTextArea();
            jScrollPane2  = new javax.swing.JScrollPane();
            OpcodeTable   = new javax.swing.JTable();
            stubtextcheck = new javax.swing.JCheckBox();
            btnSave       = new javax.swing.JButton();

            java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("pspsharp/languages/pspsharp"); // NOI18N
            Title     = bundle.getString("InstructionCounter.title");                                            // NOI18N
            Resizable = false;

            textcheck.Text = ".text";                                                     // NOI18N

            initcheck.Text = ".init";                                                     // NOI18N

            finicheck.Text = ".fini";                                                     // NOI18N

            lblCountWhat.Text = bundle.getString("InstructionCounter.lblCountWhat.text"); // NOI18N

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

            areastatus.Columns        = 20;
            areastatus.Font           = new java.awt.Font("Courier New", 0, 12);   // NOI18N
            areastatus.Rows           = 4;
            jScrollPane1.ViewportView = areastatus;

            OpcodeTable.AutoCreateRowSorter = true;
            OpcodeTable.Model         = new DefaultTableModelAnonymousInnerClass(this, new object [][] { }, new string [] { "Opcode", "Category", "Count" });
            OpcodeTable.SelectionMode = javax.swing.ListSelectionModel.SINGLE_SELECTION;
            jScrollPane2.ViewportView = OpcodeTable;

            stubtextcheck.Text = ".sceStub.text";                               // NOI18N

            btnSave.Text = bundle.getString("InstructionCounter.btnSave.text"); // NOI18N
            btnSave.addActionListener(new ActionListenerAnonymousInnerClass2(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).addGroup(layout.createSequentialGroup().addComponent(btnStart).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(progressBar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, short.MaxValue)).addComponent(jScrollPane1).addComponent(jScrollPane2, javax.swing.GroupLayout.Alignment.TRAILING).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup().addGap(0, 0, short.MaxValue).addComponent(btnSave)).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup().addComponent(lblCountWhat, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, short.MaxValue).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addGroup(layout.createSequentialGroup().addComponent(textcheck).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(initcheck).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(finicheck)).addComponent(stubtextcheck, 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(finicheck).addComponent(initcheck).addComponent(textcheck).addComponent(lblCountWhat)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(stubtextcheck).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addComponent(progressBar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, short.MaxValue).addComponent(btnStart, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, short.MaxValue)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 402, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(btnSave).addContainerGap());

            pack();
        }         // </editor-fold>//GEN-END:initComponents
示例#3
0
        public static void wrap(Form owner, javax.swing.JFrame frame)
        {
            // fetch the required gui elements
            var panelOuter    = (javax.swing.JPanel)frame.getContentPane().getComponent(0);
            var panelInner    = (javax.swing.JPanel)panelOuter.getComponent(0);
            var userNameInput = (javax.swing.JTextField)panelInner.getComponent(2);
            var passwordInput = (javax.swing.JPasswordField)panelInner.getComponent(4);
            var okButton      = (javax.swing.JButton)panelInner.getComponent(7);

            // update the dialog title and input boxes
            frame.setTitle("Consens-Anmeldung");
            userNameInput.setText(Credentials.UserName);
            passwordInput.setText(Credentials.Password);

            // create a checkbox for specifying whether to persist the credentials
            var saveCredentialsInput = new javax.swing.JCheckBox("Kennwort speichern", Credentials.Save);
            var c = new java.awt.GridBagConstraints();

            c.fill  = java.awt.GridBagConstraints.HORIZONTAL;
            c.gridx = 4;
            c.gridy = 4;
            panelInner.add(saveCredentialsInput, c);
            frame.validate();

            // hook the required events
            var dialog = new LogonDialog(userNameInput, passwordInput, saveCredentialsInput);

            passwordInput.addPropertyChangeListener("enabled", dialog);
            okButton.addActionListener(dialog);

            // turn the WinForm into a dialog
            var form = frame.getForm();

            form.BeginInvoke(new MethodInvoker(() =>
            {
                form.Owner           = owner;
                form.MinimizeBox     = false;
                form.MaximizeBox     = false;
                form.ShowInTaskbar   = false;
                form.FormBorderStyle = FormBorderStyle.FixedDialog;
                form.Focus();
            }));
        }
示例#4
0
        public EngineSettingsPanel(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);

            // Evaluation
            addLabel(this, new JLabel("Evaluation"), gridbag, c, 0);
            //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            JPanel evaluationPanel = new JPanel(new BorderLayout());

            evaluationCheckBox = new JCheckBox();
            evaluationCheckBox.setEnabled(true);
            evaluationCheckBox.addActionListener(this);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.WEST' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            evaluationPanel.add(evaluationCheckBox, BorderLayout.WEST);
            addInputComponent(this, evaluationPanel, gridbag, c, 0);

            // Profile Assert
            addLabel(this, new JLabel("Profile Assert:"), gridbag, c, 1);
            //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            JPanel profileAssertPanel = new JPanel(new BorderLayout());

            profileAssertCheckBox = new JCheckBox();
            profileAssertCheckBox.setEnabled(true);
            profileAssertCheckBox.addActionListener(this);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.WEST' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            profileAssertPanel.add(profileAssertCheckBox, BorderLayout.WEST);
            addInputComponent(this, profileAssertPanel, gridbag, c, 1);

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

            profileRetractCheckBox = new JCheckBox();
            profileRetractCheckBox.setEnabled(true);
            profileRetractCheckBox.addActionListener(this);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.WEST' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            profileRetractPanel.add(profileRetractCheckBox, BorderLayout.WEST);
            addInputComponent(this, profileRetractPanel, gridbag, c, 2);

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

            profileFireCheckBox = new JCheckBox();
            profileFireCheckBox.setEnabled(true);
            profileFireCheckBox.addActionListener(this);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.WEST' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            profileFirePanel.add(profileFireCheckBox, BorderLayout.WEST);
            addInputComponent(this, profileFirePanel, gridbag, c, 3);

            // Profile Add Activation
            addLabel(this, new JLabel("Profile Add Activation:"), gridbag, c, 4);
            //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            JPanel profileAddActivationPanel = new JPanel(new BorderLayout());

            profileAddActivationCheckBox = new JCheckBox();
            profileAddActivationCheckBox.setEnabled(true);
            profileAddActivationCheckBox.addActionListener(this);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.WEST' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            profileAddActivationPanel.add(profileAddActivationCheckBox, BorderLayout.WEST);
            addInputComponent(this, profileAddActivationPanel, gridbag, c, 4);

            // Profile Remove Activation
            addLabel(this, new JLabel("Profile Remove Activation:"), gridbag, c, 5);
            //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            JPanel profileRemoveActivationPanel = new JPanel(new BorderLayout());

            profileRemoveActivationCheckBox = new JCheckBox();
            profileRemoveActivationCheckBox.setEnabled(true);
            profileRemoveActivationCheckBox.addActionListener(this);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.WEST' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            profileRemoveActivationPanel.add(profileRemoveActivationCheckBox, BorderLayout.WEST);
            addInputComponent(this, profileRemoveActivationPanel, gridbag, c, 5);

            // Activations
            addLabel(this, new JLabel(" Watch Activations:"), gridbag, c, 6);
            //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            JPanel watchActivationsPanel = new JPanel(new BorderLayout());

            watchActivationsCheckBox = new JCheckBox();
            watchActivationsCheckBox.setEnabled(true);
            watchActivationsCheckBox.addActionListener(this);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.WEST' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            watchActivationsPanel.add(watchActivationsCheckBox, BorderLayout.WEST);
            addInputComponent(this, watchActivationsPanel, gridbag, c, 6);

            // Facts
            addLabel(this, new JLabel("Watch Facts:"), gridbag, c, 7);
            //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            JPanel watchFactsPanel = new JPanel(new BorderLayout());

            watchFactsCheckBox = new JCheckBox();
            watchFactsCheckBox.setEnabled(true);
            watchFactsCheckBox.addActionListener(this);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.WEST' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            watchFactsPanel.add(watchFactsCheckBox, BorderLayout.WEST);
            addInputComponent(this, watchFactsPanel, gridbag, c, 7);

            // Rules
            addLabel(this, new JLabel("Watch Rules:"), gridbag, c, 8);
            //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            JPanel watchRulesPanel = new JPanel(new BorderLayout());

            watchRulesCheckBox = new JCheckBox();
            watchRulesCheckBox.setEnabled(true);
            watchRulesCheckBox.addActionListener(this);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.WEST' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            watchRulesPanel.add(watchRulesCheckBox, BorderLayout.WEST);
            addInputComponent(this, watchRulesPanel, gridbag, c, 8);
        }
示例#5
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
示例#6
0
 LogonDialog(javax.swing.JTextField userName, javax.swing.JPasswordField password, javax.swing.JCheckBox saveCredentials)
 {
     this.userName        = userName;
     this.password        = password;
     this.saveCredentials = saveCredentials;
 }
        public EngineSettingsPanel(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);

            // Evaluation
            addLabel(this, new JLabel("Evaluation"), gridbag, c, 0);
            //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            JPanel evaluationPanel = new JPanel(new BorderLayout());

            evaluationCheckBox = new JCheckBox();
            evaluationCheckBox.setEnabled(true);
            evaluationCheckBox.addActionListener(this);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.WEST' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            evaluationPanel.add(evaluationCheckBox, BorderLayout.WEST);
            addInputComponent(this, evaluationPanel, gridbag, c, 0);

            // Profile Assert
            addLabel(this, new JLabel("Profile Assert:"), gridbag, c, 1);
            //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            JPanel profileAssertPanel = new JPanel(new BorderLayout());

            profileAssertCheckBox = new JCheckBox();
            profileAssertCheckBox.setEnabled(true);
            profileAssertCheckBox.addActionListener(this);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.WEST' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            profileAssertPanel.add(profileAssertCheckBox, BorderLayout.WEST);
            addInputComponent(this, profileAssertPanel, gridbag, c, 1);

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

            profileRetractCheckBox = new JCheckBox();
            profileRetractCheckBox.setEnabled(true);
            profileRetractCheckBox.addActionListener(this);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.WEST' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            profileRetractPanel.add(profileRetractCheckBox, BorderLayout.WEST);
            addInputComponent(this, profileRetractPanel, gridbag, c, 2);

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

            profileFireCheckBox = new JCheckBox();
            profileFireCheckBox.setEnabled(true);
            profileFireCheckBox.addActionListener(this);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.WEST' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            profileFirePanel.add(profileFireCheckBox, BorderLayout.WEST);
            addInputComponent(this, profileFirePanel, gridbag, c, 3);

            // Profile Add Activation
            addLabel(this, new JLabel("Profile Add Activation:"), gridbag, c, 4);
            //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            JPanel profileAddActivationPanel = new JPanel(new BorderLayout());

            profileAddActivationCheckBox = new JCheckBox();
            profileAddActivationCheckBox.setEnabled(true);
            profileAddActivationCheckBox.addActionListener(this);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.WEST' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            profileAddActivationPanel.add(profileAddActivationCheckBox, BorderLayout.WEST);
            addInputComponent(this, profileAddActivationPanel, gridbag, c, 4);

            // Profile Remove Activation
            addLabel(this, new JLabel("Profile Remove Activation:"), gridbag, c, 5);
            //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            JPanel profileRemoveActivationPanel = new JPanel(new BorderLayout());

            profileRemoveActivationCheckBox = new JCheckBox();
            profileRemoveActivationCheckBox.setEnabled(true);
            profileRemoveActivationCheckBox.addActionListener(this);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.WEST' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            profileRemoveActivationPanel.add(profileRemoveActivationCheckBox, BorderLayout.WEST);
            addInputComponent(this, profileRemoveActivationPanel, gridbag, c, 5);

            // Activations
            addLabel(this, new JLabel(" Watch Activations:"), gridbag, c, 6);
            //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            JPanel watchActivationsPanel = new JPanel(new BorderLayout());

            watchActivationsCheckBox = new JCheckBox();
            watchActivationsCheckBox.setEnabled(true);
            watchActivationsCheckBox.addActionListener(this);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.WEST' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            watchActivationsPanel.add(watchActivationsCheckBox, BorderLayout.WEST);
            addInputComponent(this, watchActivationsPanel, gridbag, c, 6);

            // Facts
            addLabel(this, new JLabel("Watch Facts:"), gridbag, c, 7);
            //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            JPanel watchFactsPanel = new JPanel(new BorderLayout());

            watchFactsCheckBox = new JCheckBox();
            watchFactsCheckBox.setEnabled(true);
            watchFactsCheckBox.addActionListener(this);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.WEST' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            watchFactsPanel.add(watchFactsCheckBox, BorderLayout.WEST);
            addInputComponent(this, watchFactsPanel, gridbag, c, 7);

            // Rules
            addLabel(this, new JLabel("Watch Rules:"), gridbag, c, 8);
            //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            JPanel watchRulesPanel = new JPanel(new BorderLayout());

            watchRulesCheckBox = new JCheckBox();
            watchRulesCheckBox.setEnabled(true);
            watchRulesCheckBox.addActionListener(this);
            //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.WEST' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"'
            watchRulesPanel.add(watchRulesCheckBox, BorderLayout.WEST);
            addInputComponent(this, watchRulesPanel, gridbag, c, 8);
        }
示例#8
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()
        {
            btnAdd         = new javax.swing.JButton();
            btnRemove      = new javax.swing.JButton();
            jPanel2        = new javax.swing.JPanel();
            jSeparator1    = new javax.swing.JSeparator();
            jPanel1        = new javax.swing.JPanel();
            cbTraceRead    = new javax.swing.JCheckBox();
            cbTraceWrite   = new javax.swing.JCheckBox();
            cbTraceRead8   = new javax.swing.JCheckBox();
            cbTraceWrite8  = new javax.swing.JCheckBox();
            cbTraceRead16  = new javax.swing.JCheckBox();
            cbTraceWrite16 = new javax.swing.JCheckBox();
            cbTraceRead32  = new javax.swing.JCheckBox();
            cbTraceWrite32 = new javax.swing.JCheckBox();
            chkPauseOnHit  = new javax.swing.JCheckBox();
            btnClose       = new javax.swing.JButton();
            btnExport      = new javax.swing.JButton();
            btnImport      = new javax.swing.JButton();
            jScrollPane2   = new javax.swing.JScrollPane();
            tblBreakpoints = new JTable();

            java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("pspsharp/languages/pspsharp"); // NOI18N
            Title = bundle.getString("MemoryBreakpointsDialog.title");                                           // NOI18N
            LocationByPlatform = true;
            Name = "dialog";                                                                                     // NOI18N

            btnAdd.Text          = bundle.getString("MemoryBreakpointsDialog.btnAdd.text");                      // NOI18N
            btnAdd.MaximumSize   = new java.awt.Dimension(140, 25);
            btnAdd.MinimumSize   = new java.awt.Dimension(140, 25);
            btnAdd.PreferredSize = new java.awt.Dimension(140, 25);
            btnAdd.addActionListener(new ActionListenerAnonymousInnerClass(this));

            btnRemove.Text          = bundle.getString("MemoryBreakpointsDialog.btnRemove.text");    // NOI18N
            btnRemove.Enabled       = false;
            btnRemove.MaximumSize   = new java.awt.Dimension(140, 25);
            btnRemove.MinimumSize   = new java.awt.Dimension(140, 25);
            btnRemove.PreferredSize = new java.awt.Dimension(140, 25);
            btnRemove.addActionListener(new ActionListenerAnonymousInnerClass2(this));

            jPanel1.Layout = new java.awt.GridLayout(5, 2);

            cbTraceRead.Text = bundle.getString("MemoryBreakpointsDialog.cbTraceRead.text");             // NOI18N
            cbTraceRead.addItemListener(new ItemListenerAnonymousInnerClass(this));
            jPanel1.add(cbTraceRead);

            cbTraceWrite.Text = bundle.getString("MemoryBreakpointsDialog.cbTraceWrite.text");             // NOI18N
            cbTraceWrite.addItemListener(new ItemListenerAnonymousInnerClass2(this));
            jPanel1.add(cbTraceWrite);

            cbTraceRead8.Text = bundle.getString("MemoryBreakpointsDialog.cbTraceRead8.text");             // NOI18N
            cbTraceRead8.addItemListener(new ItemListenerAnonymousInnerClass3(this));
            jPanel1.add(cbTraceRead8);

            cbTraceWrite8.Text = bundle.getString("MemoryBreakpointsDialog.cbTraceWrite8.text");             // NOI18N
            cbTraceWrite8.addItemListener(new ItemListenerAnonymousInnerClass4(this));
            jPanel1.add(cbTraceWrite8);

            cbTraceRead16.Text = bundle.getString("MemoryBreakpointsDialog.cbTraceRead16.text");             // NOI18N
            cbTraceRead16.addItemListener(new ItemListenerAnonymousInnerClass5(this));
            jPanel1.add(cbTraceRead16);

            cbTraceWrite16.Text = bundle.getString("MemoryBreakpointsDialog.cbTraceWrite16.text");             // NOI18N
            cbTraceWrite16.addItemListener(new ItemListenerAnonymousInnerClass6(this));
            jPanel1.add(cbTraceWrite16);

            cbTraceRead32.Text = bundle.getString("MemoryBreakpointsDialog.cbTraceRead32.text");             // NOI18N
            cbTraceRead32.addItemListener(new ItemListenerAnonymousInnerClass7(this));
            jPanel1.add(cbTraceRead32);

            cbTraceWrite32.Text = bundle.getString("MemoryBreakpointsDialog.cbTraceWrite32.text");             // NOI18N
            cbTraceWrite32.addItemListener(new ItemListenerAnonymousInnerClass8(this));
            jPanel1.add(cbTraceWrite32);

            chkPauseOnHit.Selected = ((DebuggerMemory)Memory.Instance).pauseEmulatorOnMemoryBreakpoint;
            chkPauseOnHit.Text     = bundle.getString("MemoryBreakpointsDialog.chkPauseOnHit.text");         // NOI18N
            chkPauseOnHit.addItemListener(new ItemListenerAnonymousInnerClass9(this));
            jPanel1.add(chkPauseOnHit);

            btnClose.Text = bundle.getString("CloseButton.text");             // NOI18N
            btnClose.addActionListener(new ActionListenerAnonymousInnerClass3(this));

            btnExport.Text    = bundle.getString("MemoryBreakpointsDialog.btnExport.text");          // NOI18N
            btnExport.Enabled = false;
            btnExport.addActionListener(new ActionListenerAnonymousInnerClass4(this));

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

            javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
            jPanel2.Layout = jPanel2Layout;
            jPanel2Layout.HorizontalGroup = jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jSeparator1).addGroup(jPanel2Layout.createSequentialGroup().addGap(0, 0, short.MaxValue).addComponent(btnImport).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(btnExport).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(btnClose)).addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 576, short.MaxValue);
            jPanel2Layout.VerticalGroup   = jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(jPanel2Layout.createSequentialGroup().addContainerGap().addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, short.MaxValue).addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(btnExport).addComponent(btnClose).addComponent(btnImport)).addGap(31, 31, 31));

            tblBreakpoints.Font          = new Font("Courier New", 0, 12);    // NOI18N
            tblBreakpoints.Model         = memoryBreakpointsModel;
            tblBreakpoints.SelectionMode = ListSelectionModel.SINGLE_SELECTION;
            jScrollPane2.ViewportView    = tblBreakpoints;

            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.TRAILING).addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 0, short.MaxValue).addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup().addGap(0, 0, short.MaxValue).addComponent(btnAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(btnRemove, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)).addComponent(jPanel2, javax.swing.GroupLayout.Alignment.LEADING, 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().addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 104, short.MaxValue).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(btnAdd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(btnRemove, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addGap(18, 18, 18).addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 178, javax.swing.GroupLayout.PREFERRED_SIZE).addContainerGap());

            pack();
        }         // </editor-fold>//GEN-END:initComponents