Beispiel #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()
        {
            jScrollPane1     = new javax.swing.JScrollPane();
            taCheats         = new javax.swing.JTextArea();
            btnImportCheatDB = new javax.swing.JButton();
            btnClear         = new javax.swing.JButton();
            btnOnOff         = new javax.swing.JToggleButton();

            java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("pspsharp/languages/pspsharp"); // NOI18N
            Title       = bundle.getString("CheatsGUI.title");                                                   // NOI18N
            MinimumSize = new java.awt.Dimension(360, 360);
            Name        = "frmCheatsGUI";                                                                        // NOI18N

            taCheats.Columns          = 30;
            taCheats.Font             = new java.awt.Font("Monospaced", 0, 12); // NOI18N
            taCheats.Rows             = 20;
            taCheats.TabSize          = 2;
            jScrollPane1.ViewportView = taCheats;

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

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

            btnOnOff.Text = bundle.getString("CheatsGUI.btnOnOff.text");             // NOI18N
            btnOnOff.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).addComponent(jScrollPane1).addGroup(layout.createSequentialGroup().addComponent(btnOnOff, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, short.MaxValue).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(btnImportCheatDB, javax.swing.GroupLayout.DEFAULT_SIZE, 211, short.MaxValue).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(btnClear, javax.swing.GroupLayout.DEFAULT_SIZE, 100, short.MaxValue))).addContainerGap());
            layout.VerticalGroup   = layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap().addComponent(jScrollPane1).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(btnImportCheatDB).addComponent(btnClear).addComponent(btnOnOff)).addContainerGap());

            pack();
        }         // </editor-fold>//GEN-END:initComponents
Beispiel #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>
        // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
        private void initComponents()
        {
            jScrollPane1            = new javax.swing.JScrollPane();
            talogging               = new javax.swing.JTextArea();
            ClearMessageButton      = new javax.swing.JButton();
            SaveMessageToFileButton = new javax.swing.JButton();

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

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

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

            SaveMessageToFileButton.Text = bundle.getString("ConsoleWindow.SaveMessageToFileButton.text");             // NOI18N
            SaveMessageToFileButton.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(334, short.MaxValue).addComponent(SaveMessageToFileButton).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(ClearMessageButton)).addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 583, short.MaxValue);
            layout.VerticalGroup   = layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup().addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 215, short.MaxValue).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(ClearMessageButton).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup().addComponent(SaveMessageToFileButton).addContainerGap())));

            pack();
        }         // </editor-fold>//GEN-END:initComponents
Beispiel #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()
        {
            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
Beispiel #4
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
Beispiel #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()
        {
            lblStartAddress = new javax.swing.JLabel();
            txtStartAddress = new JTextField();
            lblEndAddress   = new javax.swing.JLabel();
            lblFilename     = new javax.swing.JLabel();
            txtEndAddress   = new JTextField();
            txtFilename     = new JTextField();
            btnFilename     = new javax.swing.JButton();
            btnOk           = new javax.swing.JButton();
            btnCancel       = new pspsharp.GUI.CancelButton();

            DefaultCloseOperation = javax.swing.WindowConstants.DISPOSE_ON_CLOSE;
            java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("pspsharp/languages/pspsharp"); // NOI18N
            Title     = bundle.getString("DumpCodeDialog.title");                                                // NOI18N
            Resizable = false;

            lblStartAddress.Text = bundle.getString("DumpCodeDialog.lblStartAddress.text"); // NOI18N

            txtStartAddress.Font = new java.awt.Font("Courier New", 0, 12);                 // NOI18N
            txtStartAddress.HorizontalAlignment = JTextField.CENTER;
            txtStartAddress.Text          = "0x00000000";                                   // NOI18N
            txtStartAddress.InputVerifier = new AddressInputVerifier(this);

            lblEndAddress.Text = bundle.getString("DumpCodeDialog.lblEndAddress.text"); // NOI18N

            lblFilename.Text = bundle.getString("DumpCodeDialog.lblFilename.text");     // NOI18N

            txtEndAddress.Font = new java.awt.Font("Courier New", 0, 12);               // NOI18N
            txtEndAddress.HorizontalAlignment = JTextField.CENTER;
            txtEndAddress.Text          = "0x00000000";                                 // NOI18N
            txtEndAddress.InputVerifier = new AddressInputVerifier(this);

            txtFilename.Editable = false;
            txtFilename.Text     = "dump.txt";    // NOI18N

            btnFilename.Text          = "...";    // NOI18N
            btnFilename.PreferredSize = new java.awt.Dimension(25, 25);
            btnFilename.addActionListener(new ActionListenerAnonymousInnerClass(this));

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

            btnCancel.Text   = bundle.getString("CancelButton.text");           // NOI18N
            btnCancel.Parent = 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().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(lblStartAddress).addComponent(lblEndAddress).addComponent(lblFilename)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(txtStartAddress).addComponent(txtEndAddress).addGroup(layout.createSequentialGroup().addComponent(txtFilename, javax.swing.GroupLayout.PREFERRED_SIZE, 225, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, short.MaxValue).addComponent(btnFilename, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))).addGroup(layout.createSequentialGroup().addComponent(btnOk, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, short.MaxValue).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(btnCancel, 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(lblStartAddress).addComponent(txtStartAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(lblEndAddress).addComponent(txtEndAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(txtFilename, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(btnFilename, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(lblFilename)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(btnOk).addComponent(btnCancel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addContainerGap());

            pack();
        }         // </editor-fold>//GEN-END:initComponents
Beispiel #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()
        {
            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
Beispiel #7
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()
        {
            AddressField   = new javax.swing.JTextField();
            btnGoToAddress = new javax.swing.JButton();
            btnGoToSP      = new javax.swing.JButton();
            btnDumpRawRam  = new javax.swing.JButton();
            btnGoToVRAM    = new javax.swing.JButton();
            jPanel1        = new javax.swing.JPanel();
            taMemoryView   = new javax.swing.JTextArea();

            java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("pspsharp/languages/pspsharp"); // NOI18N
            Title         = bundle.getString("MemoryViewer.title");                                              // NOI18N
            MinimumSize   = new java.awt.Dimension(800, 380);
            PreferredSize = new java.awt.Dimension(800, 380);

            AddressField.Font = new java.awt.Font("Courier New", 0, 12); // NOI18N
            AddressField.HorizontalAlignment = javax.swing.JTextField.CENTER;
            AddressField.Text = "0x00000000";                            // NOI18N
            AddressField.addKeyListener(new KeyAdapterAnonymousInnerClass(this));

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

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

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

            btnGoToVRAM.Text = bundle.getString("MemoryViewer.btnGoToVRAM.text");             // NOI18N
            btnGoToVRAM.addActionListener(new ActionListenerAnonymousInnerClass4(this));

            jPanel1.addComponentListener(new ComponentAdapterAnonymousInnerClass(this));

            taMemoryView.Editable = false;
            taMemoryView.Font     = new java.awt.Font("Courier New", 0, 12);         // NOI18N
            taMemoryView.Border   = javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0));
            taMemoryView.addMouseWheelListener(new MouseWheelListenerAnonymousInnerClass(this));
            taMemoryView.addKeyListener(new KeyAdapterAnonymousInnerClass2(this));

            javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
            jPanel1.Layout = jPanel1Layout;
            jPanel1Layout.HorizontalGroup = jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(taMemoryView);
            jPanel1Layout.VerticalGroup   = jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(taMemoryView, javax.swing.GroupLayout.DEFAULT_SIZE, 295, 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().addComponent(AddressField, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(btnGoToAddress, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, short.MaxValue).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, short.MaxValue).addComponent(btnGoToVRAM, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, short.MaxValue).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, short.MaxValue).addComponent(btnGoToSP, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, short.MaxValue).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, short.MaxValue).addComponent(btnDumpRawRam, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, short.MaxValue)).addComponent(jPanel1, 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(btnDumpRawRam).addComponent(AddressField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(btnGoToAddress).addComponent(btnGoToSP).addComponent(btnGoToVRAM)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, short.MaxValue).addContainerGap());

            pack();
        }         // </editor-fold>//GEN-END:initComponents
Beispiel #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()
        {
            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
Beispiel #9
0
        //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()
        {
            jLabel1 = new javax.swing.JLabel();
            jLabel2 = new javax.swing.JLabel();
            jTextField1 = new javax.swing.JTextField();
            jLabel3 = new javax.swing.JLabel();
            jTextField2 = new javax.swing.JTextField();
            jButton1 = new javax.swing.JButton();
            jButton2 = new javax.swing.JButton();
            jButton3 = new javax.swing.JButton();
            jButton4 = new javax.swing.JButton();
            jLabel4 = new javax.swing.JLabel();
            jLabel5 = new javax.swing.JLabel();
            jTextField3 = new javax.swing.JTextField();
            jTextField4 = new javax.swing.JTextField();
            webr = new web(this);
            th = webr;
            th.Start();

            DefaultCloseOperation = javax.swing.WindowConstants.EXIT_ON_CLOSE;

            jTextField1.Editable = false;
            jTextField2.Editable = false;
            jTextField3.Text = webr.username;
            jTextField4.Text = webr.password;

            jLabel1.Font = new java.awt.Font("Tahoma", 0, 18); // NOI18N
            jLabel1.Text = "Rajendra Wifi Login";

            jLabel2.Text = "Internet Status";

            jLabel3.Text = "Program Status";

            jButton1.Text = "Pause";
            jButton1.addActionListener(new ActionListenerAnonymousInnerClassHelper3(this));

            jButton2.Text = "Start";
            jButton2.Enabled = false;
            jButton2.addActionListener(new ActionListenerAnonymousInnerClassHelper4(this));

            jButton3.Text = "Close";
            jButton3.addActionListener(new ActionListenerAnonymousInnerClassHelper5(this));

            jButton4.Text = "Change";
            jButton4.addActionListener(new ActionListenerAnonymousInnerClassHelper6(this));

            jLabel4.Text = "User Name";

            jLabel5.Text = "Password";

            setHideToSystemTray();

            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(ContentPane);
            ContentPane.Layout = layout;
            layout.HorizontalGroup = layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addGap(112, 112, 112).addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 163, javax.swing.GroupLayout.PREFERRED_SIZE)).addGroup(layout.createSequentialGroup().addGap(46, 46, 46).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING).addComponent(jButton1).addComponent(jLabel2).addComponent(jLabel3).addComponent(jLabel4).addComponent(jLabel5)).addGap(29, 29, 29).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addGroup(layout.createSequentialGroup().addComponent(jButton2).addGap(18, 18, 18).addComponent(jButton3)).addComponent(jTextField1).addComponent(jTextField4).addComponent(jTextField3).addComponent(jTextField2)).addGap(18, 18, 18).addComponent(jButton4))).addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, short.MaxValue));
            layout.VerticalGroup = layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addGap(28, 28, 28).addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jLabel2).addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addGap(18, 18, 18).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel3).addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addGap(18, 18, 18).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel4).addComponent(jTextField3, 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(jLabel5).addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addGap(40, 40, 40)).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup().addComponent(jButton4).addGap(53, 53, 53))).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jButton1).addComponent(jButton2).addComponent(jButton3)).addContainerGap(53, short.MaxValue));

            pack();
        }
        private void initComponents()
        {
            btnValidar = new javax.swing.JButton();
            jScrollPaneEntrada = new javax.swing.JScrollPane();
            txtEntrada = new javax.swing.JTextArea();
            jScrollPaneSaida = new javax.swing.JScrollPane();
            txtSaida = new javax.swing.JTextArea();

            DefaultCloseOperation = javax.swing.WindowConstants.EXIT_ON_CLOSE;

            btnValidar.Text = "Validar";
            btnValidar.addActionListener(new ActionListenerAnonymousInnerClassHelper(this));

            StringBuilder str = new StringBuilder();
            str.Append("x^2 + 2").Append("\n");
            str.Append("2x + 1").Append("\n");
            str.Append("3x^(3").Append("\n");
            str.Append("10+2x^2+3x^10").Append("\n");
            str.Append("2-2+10x+x150^2+x(42)x+xx^2x^3").Append("\n");
            str.Append("2^(-2^-5)^5+x^x^4").Append("\n");
            str.Append("x^y^-y^w^+a").Append("\n");
            str.Append("10+(((5)))").Append("\n");
            str.Append("10*(((5)))").Append("\n");
            str.Append("1^100*x").Append("\n");
            str.Append("(2x^2+2)").Append("\n");
            str.Append("(2+2x^2)").Append("\n");

            txtEntrada.Text = str.ToString();

            txtEntrada.ToolTipText = "Podem ser informados vários polinômios para validar. Quebrar uma linha para cada polinômio diferente.";
            jScrollPaneEntrada.ViewportView = txtEntrada;
            txtEntrada.AccessibleContext.AccessibleDescription = "Podem ser informados vários polinômios para validar. Quebrar uma linha para cada polinômio diferente. Ex:\\n\nx^2+2\\n\n2x+1\\n\n3x^3\\n";

            txtSaida.Text = "Pressione \"Validar\" para validar os polinômios";
            txtSaida.Editable = false;
            txtSaida.RequestFocusEnabled = false;
            jScrollPaneSaida.ViewportView = txtSaida;

            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(ContentPane);
            ContentPane.Layout = layout;
            layout.HorizontalGroup = layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addComponent(jScrollPaneEntrada, javax.swing.GroupLayout.DEFAULT_SIZE, 300, short.MaxValue).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jScrollPaneSaida, javax.swing.GroupLayout.DEFAULT_SIZE, 300, short.MaxValue)).addGroup(layout.createSequentialGroup().addContainerGap().addComponent(btnValidar).addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, short.MaxValue));
            layout.VerticalGroup = layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jScrollPaneSaida, javax.swing.GroupLayout.DEFAULT_SIZE, 400, short.MaxValue).addComponent(jScrollPaneEntrada, javax.swing.GroupLayout.DEFAULT_SIZE, 400, short.MaxValue)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(btnValidar).addGap(5, 5, 5));

            pack();
        }
Beispiel #11
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