/// <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
} //GEN-LAST:event_copyItemActionPerformed private void saveAsItemActionPerformed(ActionEvent evt) { //GEN-FIRST:event_saveAsItemActionPerformed java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("pspsharp/languages/pspsharp"); //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'sealed override': //ORIGINAL LINE: sealed override javax.swing.JFileChooser fc = new javax.swing.JFileChooser(); JFileChooser fc = new JFileChooser(); fc.DialogTitle = bundle.getString("FileLoggerFrame.strSaveTable.text"); fc.SelectedFile = new File(State.discId + "_fileio.txt"); fc.CurrentDirectory = new File("."); fc.addChoosableFileFilter(Constants.fltTextFiles); fc.FileFilter = Constants.fltTextFiles; if (fc.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) { File f = fc.SelectedFile; if (f.exists()) { int rc = MessageBox.Show(this, bundle.getString("ConsoleWindow.strFileExists.text"), bundle.getString("ConsoleWindow.strFileExistsTitle.text"), MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation); if (rc != DialogResult.Yes) { return; } } try { JTable source = (JTable)((JPopupMenu)((JMenuItem)evt.Source).Parent).Invoker; string data = ""; // list column headers for (int j = 0; j < source.ColumnCount; j++) { data += source.getColumnName(j) + ";"; } // strip last semicolon and put a newline there instead data = data.Substring(0, data.Length - 1) + System.getProperty("line.separator"); // list table content for (int i = 0; i < source.RowCount; i++) { for (int j = 0; j < source.ColumnCount; j++) { data += source.Model.getValueAt(i, j) + ";"; } // strip last semicolon and put a newline there instead data = data.Substring(0, data.Length - 1) + System.getProperty("line.separator"); } System.IO.StreamWriter os = new System.IO.StreamWriter(f); os.Write(data); os.Close(); } catch (IOException ioe) { MessageBox.Show(this, bundle.getString("FileLoggerFrame.strSaveFailed.text") + ioe.LocalizedMessage); } } } //GEN-LAST:event_saveAsItemActionPerformed
public override string getColumnName(int columnIndex) { java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("pspsharp/languages/pspsharp"); switch (columnIndex) { case 0: return(bundle.getString("FileLoggerFrame.strThreadID.text")); case 1: return(bundle.getString("FileLoggerFrame.strThreadName.text")); case 2: return(bundle.getString("FileLoggerFrame.strFileID.text")); case 3: return(bundle.getString("FileLoggerFrame.strCommand.text")); case 4: return(bundle.getString("FileLoggerFrame.strResult.text")); case 5: return(bundle.getString("FileLoggerFrame.strParameters.text")); default: throw new System.ArgumentException("invalid column index"); } }
/// <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
} //GEN-LAST:event_cbTraceWrite32ItemStateChanged private void btnExportActionPerformed([email protected] evt) { //GEN-FIRST:event_btnExportActionPerformed java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("pspsharp/languages/pspsharp"); //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'sealed override': //ORIGINAL LINE: sealed override javax.swing.JFileChooser fc = new javax.swing.JFileChooser(); JFileChooser fc = new JFileChooser(); fc.DialogTitle = bundle.getString("MemoryBreakpointsDialog.dlgExport.title"); fc.SelectedFile = new File(State.discId + ".mbrk"); fc.CurrentDirectory = new File("."); fc.addChoosableFileFilter(Constants.fltMemoryBreakpointFiles); fc.FileFilter = Constants.fltMemoryBreakpointFiles; if (fc.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) { File f = fc.SelectedFile; if (f.exists()) { int rc = MessageBox.Show(this, bundle.getString("ConsoleWindow.strFileExists.text"), bundle.getString("ConsoleWindow.strFileExistsTitle.text"), MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation); if (rc != DialogResult.Yes) { return; } } ((DebuggerMemory)Memory.Instance).exportBreakpoints(fc.SelectedFile); } } //GEN-LAST:event_btnExportActionPerformed
private void goToAddress() { try { startAddress = Integer.decode(addressField.Text); imageWidth = Integer.decode(widthField.Text); imageHeight = Integer.decode(heightField.Text); bufferWidth = Integer.decode(bufferWidthField.Text); clutAddress = Integer.decode(clutAddressField.Text); clutNumberBlocks = Integer.decode(clutNumberBlocksField.Text); } catch (System.FormatException nfe) { java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("pspsharp/languages/pspsharp"); MessageBox.Show(this, bundle.getString("ImageViewer.strInvalidNumber.text") + " " + nfe.LocalizedMessage); return; } pixelFormat = pixelFormatField.SelectedIndex; imageSwizzle = swizzleField.Selected; useAlpha = useAlphaField.Selected; backgRoundColor = backgRoundColorField.SelectedIndex; clutFormat = clutFormatField.SelectedIndex; // clean UI strings before updating copyValuesToFields(); valuesUpdated(); }
/// <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
/// <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
/// <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
/// <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
/// <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
/// <summary> /// Localize and format the message string from a log record. This /// method is provided as a convenience for Formatter subclasses to /// use when they are performing formatting. /// <para> /// The message string is first localized to a format string using /// the record's ResourceBundle. (If there is no ResourceBundle, /// or if the message key is not found, then the key is used as the /// format string.) The format String uses java.text style /// formatting. /// <ul> /// <li>If there are no parameters, no formatter is used. /// <li>Otherwise, if the string contains "{0" then /// java.text.MessageFormat is used to format the string. /// <li>Otherwise no formatting is performed. /// </ul> /// </para> /// <para> /// /// </para> /// </summary> /// <param name="record"> the log record containing the raw message </param> /// <returns> a localized and formatted message </returns> public virtual String FormatMessage(LogRecord record) { lock (this) { String format = record.Message; java.util.ResourceBundle catalog = record.ResourceBundle; if (catalog != null) { try { format = catalog.GetString(record.Message); } catch (java.util.MissingResourceException) { // Drop through. Use record message as format format = record.Message; } } // Do the formatting. try { Object[] parameters = record.Parameters; if (parameters == null || parameters.Length == 0) { // No parameters. Just return format string. return(format); } // Is it a java.text style format? // Ideally we could match with // Pattern.compile("\\{\\d").matcher(format).find()) // However the cost is 14% higher, so we cheaply check for // 1 of the first 4 parameters if (format.IndexOf("{0") >= 0 || format.IndexOf("{1") >= 0 || format.IndexOf("{2") >= 0 || format.IndexOf("{3") >= 0) { return(java.text.MessageFormat.Format(format, parameters)); } return(format); } catch (Exception) { // Formatting failed: use localized format string. return(format); } } }
} //GEN-LAST:event_ClearMessageButtonActionPerformed private void SaveMessageToFileButtonActionPerformed([email protected] evt) { //GEN-FIRST:event_SaveMessageToFileButtonActionPerformed java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("pspsharp/languages/pspsharp"); // NOI18N JFileChooser m_fileChooser = new JFileChooser(); m_fileChooser.SelectedFile = new File("logoutput.txt"); m_fileChooser.DialogTitle = bundle.getString("ConsoleWindow.strSaveLogging.text"); m_fileChooser.CurrentDirectory = new File("."); int returnVal = m_fileChooser.showSaveDialog(this); if (returnVal != JFileChooser.APPROVE_OPTION) { return; } File f = m_fileChooser.SelectedFile; System.IO.StreamWriter @out = null; try { if (f.exists()) { int res = MessageBox.Show(this, bundle.getString("ConsoleWindow.strFileExists.text"), bundle.getString("ConsoleWindow.strFileExistsTitle.text"), MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (res != 0) { return; } } //IOHelper.saveTxtFile(f, ta_messages.getText(), false); @out = new System.IO.StreamWriter(f); @out.BaseStream.WriteByte(talogging.Text); } catch (Exception e) { Console.WriteLine(e.ToString()); Console.Write(e.StackTrace); } finally { Utilities.close(@out); } } //GEN-LAST:event_SaveMessageToFileButtonActionPerformed
public override string getColumnName(int column) { java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("pspsharp/languages/pspsharp"); // NOI18N switch (column) { case outerInstance.COL_STARTADDRESS: return(bundle.getString("MemoryBreakpointsDialog.strStartAddress.text")); case outerInstance.COL_ENDADDRESS: return(bundle.getString("MemoryBreakpointsDialog.strEndAddress.text")); case outerInstance.COL_ACCESSTYPE: return(bundle.getString("MemoryBreakpointsDialog.strAccess.text")); case outerInstance.COL_ACTIVE: return(bundle.getString("MemoryBreakpointsDialog.strActive.text")); default: throw new System.ArgumentException("column out of range: " + column); } }
/// <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
/// <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