📄 processorframe.java
字号:
this.jLabelStepping.setText( myX86ProcessorInstance.Stepping.IsNull() ? "(null)" : String.valueOf(myX86ProcessorInstance.Stepping.GetValue()) ); this.jLabelModel.setText( myX86ProcessorInstance.Model.IsNull() ? "(null)" : String.valueOf(myX86ProcessorInstance.Model.GetValue()) ); } */ this.jLabelNumOfPhysical.setText( myInstance.CoreCount.IsNull() ? "(null)" : String.valueOf(myInstance.CoreCount.GetValue()) ); this.jLabelNumOfLogical.setText( myInstance.LogicalCount.IsNull() ? "(null)" : String.valueOf(myInstance.LogicalCount.GetValue()) ); } /** * This method initializes jLabelBrand * * @return javax.swing.JLabel */ private javax.swing.JLabel getJLabelBrand() { if (jLabelBrand == null) { jLabelBrand = new javax.swing.JLabel(); jLabelBrand.setBounds(18, 20, 1000, 25); jLabelBrand.setText(""); } return jLabelBrand; } /** * This method initializes jPanelInfo * * @return javax.swing.JPanel */ private javax.swing.JPanel getJPanelInfo() { if (jPanelInfo == null) { jPanelInfo = new javax.swing.JPanel(); jPanelInfo.setLayout(null); jPanelInfo.add(getJLabel1(), null); jPanelInfo.add(getJLabel2(), null); jPanelInfo.add(getJLabel3(), null); jPanelInfo.add(getJLabel4(), null); jPanelInfo.add(getJLabel5(), null); jPanelInfo.add(getJLabel6(), null); jPanelInfo.add(getJLabel7(), null); jPanelInfo.add(getJLabel8(), null); jPanelInfo.add(getJLabel10(), null); jPanelInfo.add(getJLabelManufacturer(), null); jPanelInfo.add(getJLabelID(), null); jPanelInfo.add(getJLabelRole(), null); jPanelInfo.add(getJLabelCpuUsage(), null); jPanelInfo.add(getJLabelModel(), null); jPanelInfo.add(getJLabelType(), null); jPanelInfo.add(getJLabelNumOfPhysical(), null); jPanelInfo.add(getJLabelNumOfLogical(), null); jPanelInfo.add(getJButton1(), null); jPanelInfo.add(getJButton2(), null); jPanelInfo.add(getJLabelStepping(), null); jPanelInfo.setBounds(18, 55, 550, 250); jPanelInfo.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Device", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null)); } return jPanelInfo; } /** * This method initializes jLabel1 * * @return javax.swing.JLabel */ private javax.swing.JLabel getJLabel1() { if (jLabel1 == null) { jLabel1 = new javax.swing.JLabel(); jLabel1.setBounds(20, 20, 100, 25); jLabel1.setText("Manufacturer:"); } return jLabel1; } /** * This method initializes jLabel2 * * @return javax.swing.JLabel */ private javax.swing.JLabel getJLabel2() { if (jLabel2 == null) { jLabel2 = new javax.swing.JLabel(); jLabel2.setBounds(20, 50, 100, 25); jLabel2.setText("Id:"); } return jLabel2; } /** * This method initializes jLabel3 * * @return javax.swing.JLabel */ private javax.swing.JLabel getJLabel3() { if (jLabel3 == null) { jLabel3 = new javax.swing.JLabel(); jLabel3.setBounds(20, 80, 100, 25); jLabel3.setText("Role:"); } return jLabel3; } /** * This method initializes jLabel4 * * @return javax.swing.JLabel */ private javax.swing.JLabel getJLabel4() { if (jLabel4 == null) { jLabel4 = new javax.swing.JLabel(); jLabel4.setBounds(20, 110, 100, 25); jLabel4.setText("CpuUsage(%):"); } return jLabel4; } /** * This method initializes jLabel5 * * @return javax.swing.JLabel */ private javax.swing.JLabel getJLabel5() { if (jLabel5 == null) { jLabel5 = new javax.swing.JLabel(); jLabel5.setBounds(20, 140, 100, 25); jLabel5.setText("Features:"); } return jLabel5; } /** * This method initializes jLabel6 * * @return javax.swing.JLabel */ private javax.swing.JLabel getJLabel6() { if (jLabel6 == null) { jLabel6 = new javax.swing.JLabel(); jLabel6.setBounds(290, 20, 100, 25); jLabel6.setText("Physical#:"); } return jLabel6; } /** * This method initializes jLabel7 * * @return javax.swing.JLabel */ private javax.swing.JLabel getJLabel7() { if (jLabel7 == null) { jLabel7 = new javax.swing.JLabel(); jLabel7.setBounds(290, 50, 100, 25); jLabel7.setText("Logical#:"); } return jLabel7; } /** * This method initializes jLabel8 * * @return javax.swing.JLabel */ private javax.swing.JLabel getJLabel8() { if (jLabel8 == null) { jLabel8 = new javax.swing.JLabel(); jLabel8.setBounds(290, 80, 100, 25); jLabel8.setText("Stepping:"); } return jLabel8; } /** * This method initializes jLabel10 * * @return javax.swing.JLabel */ private javax.swing.JLabel getJLabel10() { if (jLabel10 == null) { jLabel10 = new javax.swing.JLabel(); jLabel10.setBounds(290, 110, 100, 25); jLabel10.setText("Model:"); } return jLabel10; } /** * This method initializes jLabelManufacturer * * @return javax.swing.JLabel */ private javax.swing.JLabel getJLabelManufacturer() { if (jLabelManufacturer == null) { jLabelManufacturer = new javax.swing.JLabel(); jLabelManufacturer.setBounds(125, 20, 140, 25); jLabelManufacturer.setText(""); } return jLabelManufacturer; } /** * This method initializes jLabelID * * @return javax.swing.JLabel */ private javax.swing.JLabel getJLabelID() { if (jLabelID == null) { jLabelID = new javax.swing.JLabel(); jLabelID.setBounds(125, 50, 140, 25); jLabelID.setText(""); } return jLabelID; } /** * This method initializes jLabelFamily * * @return javax.swing.JLabel */ private javax.swing.JLabel getJLabelRole() { if (jLabelRole == null) { jLabelRole = new javax.swing.JLabel(); jLabelRole.setBounds(125, 80, 140, 25); jLabelRole.setText(""); } return jLabelRole; } /** * This method initializes jLabelModel * * @return javax.swing.JLabel */ private javax.swing.JLabel getJLabelCpuUsage() { if (jLabelCpuUsage == null) { jLabelCpuUsage = new javax.swing.JLabel(); jLabelCpuUsage.setBounds(125, 110, 140, 25); jLabelCpuUsage.setText(""); } return jLabelCpuUsage; } private javax.swing.JLabel getJLabelModel() { if (jLabelModel == null) { jLabelModel = new javax.swing.JLabel(); jLabelModel.setBounds(395, 110, 140, 25); jLabelModel.setText(""); } return jLabelModel; } /** * This method initializes jLabelType * * @return javax.swing.JLabel */ private javax.swing.JLabel getJLabelType() { if (jLabelType == null) { jLabelType = new javax.swing.JLabel(); jLabelType.setBounds(125, 140, 400, 25); jLabelType.setText(""); } return jLabelType; } /** * This method initializes jLabelNumOfPhysical * * @return javax.swing.JLabel */ private javax.swing.JLabel getJLabelNumOfPhysical() { if (jLabelNumOfPhysical == null) { jLabelNumOfPhysical = new javax.swing.JLabel(); jLabelNumOfPhysical.setBounds(395, 20, 140, 25); jLabelNumOfPhysical.setText(""); } return jLabelNumOfPhysical; } /** * This method initializes jLabelNumOfLogical * * @return javax.swing.JLabel */ private javax.swing.JLabel getJLabelNumOfLogical() { if (jLabelNumOfLogical == null) { jLabelNumOfLogical = new javax.swing.JLabel(); jLabelNumOfLogical.setBounds(395, 50, 140, 25); jLabelNumOfLogical.setText(""); } return jLabelNumOfLogical; } private Vector vectPropertyWindows1=new Vector(); private Vector vectPropertyWindows2=new Vector(); private javax.swing.JButton getJButton1() { if (jButton1 == null) { jButton1 = new javax.swing.JButton(); jButton1.setBounds(20, 170, 200, 25); jButton1.setText("Core Imformation"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { jButton1.setEnabled(false); // new Thread() { // public void run() { class frameHandle { public String key; public CoreFrame frame;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -