private EditorRow(TemplateEditor enclosingInstance, DeleteButton deleteButton, JLabel rowLabel, JComboBox typeBox, JTextField nameField) { InitBlock(enclosingInstance); this.deleteButton = deleteButton; this.rowLabel = rowLabel; this.typeBox = typeBox; this.nameField = nameField; }
/// <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
//UPGRADE_ISSUE: Class 'java.awt.GridBagLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagLayout"' //UPGRADE_ISSUE: Class 'java.awt.GridBagConstraints' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagConstraints"' private void addNameField(JPanel parent, JTextField field, GridBagLayout gridbag, GridBagConstraints c, int row) { //UPGRADE_ISSUE: Field 'java.awt.GridBagConstraints.gridx' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagConstraints"' c.gridx = 3; //UPGRADE_ISSUE: Field 'java.awt.GridBagConstraints.gridy' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagConstraints"' c.gridy = row; //UPGRADE_ISSUE: Field 'java.awt.GridBagConstraints.fill' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagConstraints"' //UPGRADE_ISSUE: Field 'java.awt.GridBagConstraints.HORIZONTAL' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagConstraints"' c.fill = GridBagConstraints.HORIZONTAL; //UPGRADE_ISSUE: Field 'java.awt.GridBagConstraints.anchor' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagConstraints"' //UPGRADE_ISSUE: Field 'java.awt.GridBagConstraints.WEST' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagConstraints"' c.anchor = GridBagConstraints.WEST; field.setColumns(30); gridbag.setConstraints(field, c); parent.add(field); }
/// <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
//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(); }
LogonDialog(javax.swing.JTextField userName, javax.swing.JPasswordField password, javax.swing.JCheckBox saveCredentials) { this.userName = userName; this.password = password; this.saveCredentials = saveCredentials; }
public TemplateEditor(Rete engine) : base(engine) { InitBlock(); setSize(600, 500); //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()); setTitle("Create new Template"); //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"' contentPanel = new JPanel(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(contentPanel, BorderLayout.CENTER); cancelButton = new JButton("Cancel", IconLoader.getImageIcon("cancel")); cancelButton.addActionListener(this); assertButton = new JButton("Create Template", IconLoader.getImageIcon("brick_add")); assertButton.addActionListener(this); JPanel buttonPanel = 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.CENTER' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtFlowLayout"' buttonPanel.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 1)); buttonPanel.add(cancelButton); buttonPanel.add(assertButton); //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.SOUTH' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"' add(buttonPanel, BorderLayout.SOUTH); nameField = new JTextField(15); Collection modules = engine.WorkingMemory.Modules; System.String[] moduleNames = new System.String[modules.size()]; int i = 0; Iterator itr = modules.iterator(); while (itr.hasNext()) { System.Object obj = itr.next(); moduleNames[i++] = ((Module)obj).ModuleName; } moduleBox = new JComboBox(moduleNames); addSlotButton = new JButton("Add Slot", IconLoader.getImageIcon("add")); addSlotButton.addActionListener(this); //UPGRADE_ISSUE: Field 'java.awt.Component.RIGHT_ALIGNMENT' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtComponentRIGHT_ALIGNMENT_f"' addSlotButton.setAlignmentX(Component.RIGHT_ALIGNMENT); JPanel topPanel = new JPanel(); topPanel.setBorder(BorderFactory.createTitledBorder("General Template Settings")); //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.LEFT' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtFlowLayout"' topPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 20, 1)); //UPGRADE_ISSUE: Constructor 'java.awt.GridLayout.GridLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridLayout"' JPanel innerTopPanel = new JPanel(new GridLayout(2, 2)); innerTopPanel.add(new JLabel("Template-name:")); innerTopPanel.add(nameField); innerTopPanel.add(new JLabel("Template-Module:")); innerTopPanel.add(moduleBox); //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.WEST' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"' topPanel.add(innerTopPanel, BorderLayout.WEST); topPanel.add(addSlotButton); //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); dumpAreaTemplate.setEditable(false); //UPGRADE_NOTE: If the given Font Name does not exist, a default Font instance is created. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1075"' //UPGRADE_TODO: Method 'java.awt.Font.Plain' was converted to 'System.Drawing.FontStyle.Regular' which has a different behavior. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1073_javaawtFontPLAIN_f"' dumpAreaTemplate.setFont(new System.Drawing.Font("Courier", 12, (System.Drawing.FontStyle)System.Drawing.FontStyle.Regular)); dumpAreaTemplate.setRows(5); JPanel dumpAreaPanel = new JPanel(); dumpAreaPanel.setLayout(new BoxLayout(dumpAreaPanel, BoxLayout.Y_AXIS)); dumpAreaPanel.setBorder(BorderFactory.createTitledBorder("Template Preview")); dumpAreaPanel.add(new JScrollPane(dumpAreaTemplate)); reloadButtonDumpAreaTemplate = new JButton("Reload Template Preview", IconLoader.getImageIcon("arrow_refresh")); reloadButtonDumpAreaTemplate.addActionListener(this); dumpAreaPanel.add(reloadButtonDumpAreaTemplate); //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.SOUTH' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"' contentPanel.add(dumpAreaPanel, BorderLayout.SOUTH); }
public ShellSettingsPanel(JamochaGui gui) : base(gui) { //UPGRADE_ISSUE: Class 'java.awt.GridBagLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagLayout"' //UPGRADE_ISSUE: Constructor 'java.awt.GridBagLayout.GridBagLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagLayout"' GridBagLayout gridbag = new GridBagLayout(); //UPGRADE_ISSUE: Class 'java.awt.GridBagConstraints' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagConstraints"' //UPGRADE_ISSUE: Constructor 'java.awt.GridBagConstraints.GridBagConstraints' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagConstraints"' GridBagConstraints c = new GridBagConstraints(); //UPGRADE_ISSUE: Field 'java.awt.GridBagConstraints.weightx' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridBagConstraints"' c.weightx = 1.0; setLayout(gridbag); // Font addLabel(this, new JLabel("Font:"), gridbag, c, 0); GraphicsEnvironment ge = GraphicsEnvironment.LocalGraphicsEnvironment; System.Drawing.Font[] allFonts = ge.AllFonts; fonts = new JComboBox(allFonts); System.Drawing.Font selFont = null; System.String selFontName = gui.Preferences.get("shell.font", "Courier"); for (int idx = 0; idx < allFonts.Length; idx++) { System.Drawing.Font curFont = allFonts[idx]; if (curFont.FontName.equals(selFontName)) { selFont = curFont; break; } } if (selFont != null) { fonts.setSelectedItem(selFont); } fonts.setRenderer(new FontListCellRenderer(this)); addInputComponent(this, fonts, gridbag, c, 0); // Fontsize addLabel(this, new JLabel("Fontsize:"), gridbag, c, 1); System.Int32[] sizes = new System.Int32[17]; for (int i = 0; i < sizes.Length; ++i) { sizes[i] = 8 + i; } fontsizes = new JComboBox(sizes); //fontsizes.setSelectedItem(gui.getPreferences().getInt("shell.fontsize", // 12)); addInputComponent(this, fontsizes, gridbag, c, 1); // Fontcolor addLabel(this, new JLabel("Fontcolor:"), gridbag, c, 2); //UPGRADE_ISSUE: Constructor 'java.awt.FlowLayout.FlowLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtFlowLayout"' JPanel fontColorChooserPanel = new JPanel(new FlowLayout()); fontColorChooserPreview = new JTextField(5); fontColorChooserPreview.setEditable(false); fontColorChooserPreview.setBackground(new Color(gui.Preferences.getInt("shell.fontcolor", System.Drawing.Color.WHITE.RGB))); fontColorChooserButton = new JButton("Choose Color", IconLoader.getImageIcon("color_swatch")); fontColorChooserButton.addActionListener(this); fontColorChooserPanel.add(fontColorChooserPreview); fontColorChooserPanel.add(fontColorChooserButton); addInputComponent(this, fontColorChooserPanel, gridbag, c, 2); // Backgroundcolor addLabel(this, new JLabel("Backgroundcolor:"), gridbag, c, 3); //UPGRADE_ISSUE: Constructor 'java.awt.FlowLayout.FlowLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtFlowLayout"' JPanel backgroundColorChooserPanel = new JPanel(new FlowLayout()); backgroundColorChooserPreview = new JTextField(5); backgroundColorChooserPreview.setEditable(false); backgroundColorChooserPreview.setBackground(new Color(gui.Preferences.getInt("shell.backgroundcolor", System.Drawing.Color.BLACK.RGB))); backgroundColorChooserButton = new JButton("Choose Color", IconLoader.getImageIcon("color_swatch")); backgroundColorChooserButton.addActionListener(this); backgroundColorChooserPanel.add(backgroundColorChooserPreview); backgroundColorChooserPanel.add(backgroundColorChooserButton); addInputComponent(this, backgroundColorChooserPanel, gridbag, c, 3); }
public TemplateEditor(Rete engine) : base(engine) { InitBlock(); setSize(600, 500); //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()); setTitle("Create new Template"); //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"' contentPanel = new JPanel(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(contentPanel, BorderLayout.CENTER); cancelButton = new JButton("Cancel", IconLoader.getImageIcon("cancel")); cancelButton.addActionListener(this); assertButton = new JButton("Create Template", IconLoader.getImageIcon("brick_add")); assertButton.addActionListener(this); JPanel buttonPanel = 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.CENTER' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtFlowLayout"' buttonPanel.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 1)); buttonPanel.add(cancelButton); buttonPanel.add(assertButton); //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.SOUTH' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"' add(buttonPanel, BorderLayout.SOUTH); nameField = new JTextField(15); Collection modules = engine.WorkingMemory.Modules; System.String[] moduleNames = new System.String[modules.size()]; int i = 0; Iterator itr = modules.iterator(); while (itr.hasNext()) { System.Object obj = itr.next(); moduleNames[i++] = ((Module) obj).ModuleName; } moduleBox = new JComboBox(moduleNames); addSlotButton = new JButton("Add Slot", IconLoader.getImageIcon("add")); addSlotButton.addActionListener(this); //UPGRADE_ISSUE: Field 'java.awt.Component.RIGHT_ALIGNMENT' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtComponentRIGHT_ALIGNMENT_f"' addSlotButton.setAlignmentX(Component.RIGHT_ALIGNMENT); JPanel topPanel = new JPanel(); topPanel.setBorder(BorderFactory.createTitledBorder("General Template Settings")); //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.LEFT' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtFlowLayout"' topPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 20, 1)); //UPGRADE_ISSUE: Constructor 'java.awt.GridLayout.GridLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtGridLayout"' JPanel innerTopPanel = new JPanel(new GridLayout(2, 2)); innerTopPanel.add(new JLabel("Template-name:")); innerTopPanel.add(nameField); innerTopPanel.add(new JLabel("Template-Module:")); innerTopPanel.add(moduleBox); //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.WEST' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"' topPanel.add(innerTopPanel, BorderLayout.WEST); topPanel.add(addSlotButton); //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); dumpAreaTemplate.setEditable(false); //UPGRADE_NOTE: If the given Font Name does not exist, a default Font instance is created. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1075"' //UPGRADE_TODO: Method 'java.awt.Font.Plain' was converted to 'System.Drawing.FontStyle.Regular' which has a different behavior. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1073_javaawtFontPLAIN_f"' dumpAreaTemplate.setFont(new System.Drawing.Font("Courier", 12, (System.Drawing.FontStyle) System.Drawing.FontStyle.Regular)); dumpAreaTemplate.setRows(5); JPanel dumpAreaPanel = new JPanel(); dumpAreaPanel.setLayout(new BoxLayout(dumpAreaPanel, BoxLayout.Y_AXIS)); dumpAreaPanel.setBorder(BorderFactory.createTitledBorder("Template Preview")); dumpAreaPanel.add(new JScrollPane(dumpAreaTemplate)); reloadButtonDumpAreaTemplate = new JButton("Reload Template Preview", IconLoader.getImageIcon("arrow_refresh")); reloadButtonDumpAreaTemplate.addActionListener(this); dumpAreaPanel.add(reloadButtonDumpAreaTemplate); //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.SOUTH' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"' contentPanel.add(dumpAreaPanel, BorderLayout.SOUTH); }