/// <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
/// <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> //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
public __TextBox() { //this.InternalElement. this.InternalContent = new javax.swing.JTextArea(); this.InternalContent.getDocument().addDocumentListener( new MyDocumentListener { Invoke = this.InternalRaiseTextChanged } ); this.InternalContainer = new javax.swing.JScrollPane(this.InternalContent); }
public __TextBox() { //this.InternalElement. this.InternalContent = new javax.swing.JTextArea(); this.InternalContent.getDocument().addDocumentListener( new MyDocumentListener { Invoke = this.InternalRaiseTextChanged } ); this.InternalContainer = new javax.swing.JScrollPane(this.InternalContent); }
internal BatchResultBrowser(JButton batchResultsButton) { this.batchResultsButton = batchResultsButton; topPanel = new JPanel(); setSize(500, 400); //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"' setLayout(new BorderLayout()); resultsBoxModel = new ResultBoxModel(this); resultsBox = new JComboBox(resultsBoxModel); removeButton = new JButton(IconLoader.getImageIcon("delete")); removeButton.addActionListener(this); removeButton.setToolTipText("Remove this batch result"); reloadButton = new JButton(IconLoader.getImageIcon("arrow_refresh")); reloadButton.addActionListener(this); reloadButton.setToolTipText("Reload the list of available batch results"); topPanel.add(resultsBox); topPanel.add(removeButton); topPanel.add(reloadButton); //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.NORTH' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"' add(topPanel, BorderLayout.NORTH); aboutArea = new JTextArea(); aboutArea.setBorder(BorderFactory.createEmptyBorder()); aboutArea.setLineWrap(true); aboutArea.setWrapStyleWord(true); aboutArea.setEditable(false); //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.CENTER' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"' add(new JScrollPane(aboutArea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER), BorderLayout.CENTER); resultsBox.addActionListener(this); //UPGRADE_ISSUE: Constructor 'java.awt.FlowLayout.FlowLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtFlowLayout"' //UPGRADE_ISSUE: Field 'java.awt.FlowLayout.RIGHT' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtFlowLayout"' JPanel closePanel = new JPanel(new FlowLayout(FlowLayout.RIGHT)); closeButton = new JButton("close"); closeButton.addActionListener(this); closePanel.add(closeButton); //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.SOUTH' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"' add(closePanel, BorderLayout.SOUTH); batchResultsButton.setIcon(IconLoader.getImageIcon("lorry")); }
internal BatchResultBrowser(JButton batchResultsButton) { this.batchResultsButton = batchResultsButton; topPanel = new JPanel(); setSize(500, 400); //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"' setLayout(new BorderLayout()); resultsBoxModel = new ResultBoxModel(this); resultsBox = new JComboBox(resultsBoxModel); removeButton = new JButton(IconLoader.getImageIcon("delete")); removeButton.addActionListener(this); removeButton.setToolTipText("Remove this batch result"); reloadButton = new JButton(IconLoader.getImageIcon("arrow_refresh")); reloadButton.addActionListener(this); reloadButton.setToolTipText("Reload the list of available batch results"); topPanel.add(resultsBox); topPanel.add(removeButton); topPanel.add(reloadButton); //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.NORTH' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"' add(topPanel, BorderLayout.NORTH); aboutArea = new JTextArea(); aboutArea.setBorder(BorderFactory.createEmptyBorder()); aboutArea.setLineWrap(true); aboutArea.setWrapStyleWord(true); aboutArea.setEditable(false); //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.CENTER' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"' add(new JScrollPane(aboutArea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER), BorderLayout.CENTER); resultsBox.addActionListener(this); //UPGRADE_ISSUE: Constructor 'java.awt.FlowLayout.FlowLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtFlowLayout"' //UPGRADE_ISSUE: Field 'java.awt.FlowLayout.RIGHT' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtFlowLayout"' JPanel closePanel = new JPanel(new FlowLayout(FlowLayout.RIGHT)); closeButton = new JButton("close"); closeButton.addActionListener(this); closePanel.add(closeButton); //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.SOUTH' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"' add(closePanel, BorderLayout.SOUTH); batchResultsButton.setIcon(IconLoader.getImageIcon("lorry")); }
private void InitBlock() { dumpAreaTemplate = new JTextArea(); rows = new LinkedList(); }
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(); }
/// <summary> The main constructor for a ShellPanel. /// /// </summary> /// <param name="">engine /// The Jamocha engine that should be used with this GUI. /// /// </param> public ShellPanel(JamochaGui gui) : base(gui) { InitBlock(); // GUI construction // create the output area outputArea = new JTextArea(); outputArea.setEditable(false); outputArea.setLineWrap(true); outputArea.setWrapStyleWord(true); outputArea.addFocusListener(this); // set the font and the colors settingsChanged(); this.addFocusListener(this); // create a scroll pane to embedd the output area scrollPane = new JScrollPane(outputArea, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); scrollPane.VerticalScrollBar.addAdjustmentListener(this); // Assemble the GUI //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"' setLayout(new BorderLayout()); //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.CENTER' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"' add(scrollPane, BorderLayout.CENTER); // create the button that clears the output area clearButton = new JButton("Clear Shell", IconLoader.getImageIcon("application_osx_terminal")); clearButton.addActionListener(this); JPanel clearButtonPanel = new JPanel(); //UPGRADE_ISSUE: Constructor 'java.awt.FlowLayout.FlowLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtFlowLayout"' //UPGRADE_ISSUE: Field 'java.awt.FlowLayout.RIGHT' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtFlowLayout"' clearButtonPanel.setLayout(new FlowLayout(FlowLayout.RIGHT, 5, 1)); clearButtonPanel.add(clearButton); //UPGRADE_ISSUE: Field 'java.awt.BorderLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000"' add(clearButtonPanel, BorderLayout.PAGE_END); // initialize the channel to the engine //UPGRADE_ISSUE: Constructor 'java.io.PipedOutputStream.PipedOutputStream' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaioPipedOutputStreamPipedOutputStream"' System.IO.StreamWriter outStream = new PipedOutputStream(); //UPGRADE_ISSUE: Constructor 'java.io.PipedInputStream.PipedInputStream' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaioPipedInputStreamPipedInputStream"' System.IO.StreamReader inStream = new PipedInputStream(); outWriter = new System.IO.StreamWriter(outStream); try { //UPGRADE_ISSUE: Method 'java.io.PipedInputStream.connect' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaioPipedInputStreamconnect_javaioPipedOutputStream"' inStream.connect(outStream); } catch (System.IO.IOException e) { SupportClass.WriteStackTrace(e, Console.Error); System.Environment.Exit(1); } channel = gui.Engine.MessageRouter.openChannel("JamochaGui", inStream); printPrompt(); moveCursorToEnd(); startTimer(); // initialize the channellistener for outputs from the engine initChannelListener(); // initialize the keylistener for key events initKeyListener(); // initialize the mouselistener for the context menu initPopupMenu(); }
private void InitBlock() { dumpAreaTemplate = new JTextArea(); rows = new LinkedList(); }