测试 Netbeans 组件面板内容的简单用法 Table 、 JList 、 JComboBox 、JSlider 、JProgressBar 、 JSpinner_mfanw的博客-程序员宅基地

技术标签: layout  variables  null  测试  netbeans  table  

 测试 Netbeans 组件面板内容的简单用法

包含:JTable 、 JList 、 JComboBox 、JSlider 、JProgressBar 、 JSpinner

/*
 * MainFrame.java
 * 作者:孟伟
 * 欢迎和我联系,期待和你共同进步。
 * QQ:772333621
 * 我只是一个孤独的java学习者。
 * Created on 2009-11-15, 20:25:46
 */
package tabletest;

import javax.swing.DefaultComboBoxModel;
import javax.swing.DefaultListModel;
import javax.swing.table.DefaultTableModel;

/**
 * @author FL
 */
public class MainFrame extends javax.swing.JFrame {
    /**
     * data 用来初始化 表格(table) 的值
     */
    private Object[][] data = new Object[][]{
        {6, "shiba", null, null},
        {null, null, "nihao", null},
        {null, null, null, true},
        {null, null, null, null}
    };
    /**
     * 用来初始化 表格(table) 的键值(title)
     * 后面还会看到它用来初始化 组合框(combobox)的值
     */
    private String columnNames[] = {"学号", "姓名", "性别", "年龄"};
    private DefaultTableModel defaultTableModel = null;
    private DefaultComboBoxModel defaultComboBoxModel = null;
    private DefaultListModel defaultListModel = null;

    public MainFrame() {
        this.setTitle("测试 Netbeans 组件面板内容的简单用法");
        initComponents();
        /**为什么要另外设置 Model 呢<BR>
         * 其实,直接拖过来的Table就已经设置了它了。<BR>
         * 我们再次重新设置就是为了拿到引用,方便修改。<BR>
         * 毕竟拖过来的东西是固定的,不能修改,要想修改,必须重新设置。<BR>
         * 以下的内容原理相同。
         */
        defaultTableModel = new DefaultTableModel(data, columnNames);
        table.setModel(defaultTableModel);

        defaultComboBoxModel = new DefaultComboBoxModel(columnNames);
        comboBox.setModel(defaultComboBoxModel);

        defaultListModel = new DefaultListModel();
        itemList.setModel(defaultListModel);
        defaultListModel.add(0, "nihao");
        /**
         * 如果你不知道该选用哪个函数或者是类来重新设置 Model的话。
         * OK,打开本类中的 private void initComponents() 这个方法查看一下就行了。
         * 这个方法是自动生成的,用户不能修改,这也正是我们要重新设置 Model 的原因。
         *
         * 为什么我一直在强调是 设置 Model 呢??
         * 因为他们是有共性的,那就是 得设置 Model。
         * 其余的很多类也是有这样的特点,例如:JTree。
         */
    }

    public static void main(String[] args) {
        new MainFrame().setVisible(true);
    }

    /**
     * 以下蓝色的字体的内容 除了 按键的 ActionPerformed 方法其余的
     * 都是 Netbeans 自动生成的!!!!!!

     * 我只是修改了键盘事件中的代码而已。
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {

        jPanel2 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        table = new javax.swing.JTable();
        TestTable = new javax.swing.JButton();
        jPanel3 = new javax.swing.JPanel();
        comboBox = new javax.swing.JComboBox();
        TestComboBox = new javax.swing.JButton();
        jPanel1 = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        itemList = new javax.swing.JList();
        TestList = new javax.swing.JButton();
        jPanel4 = new javax.swing.JPanel();
        progressBar = new javax.swing.JProgressBar();
        testProgressBar = new javax.swing.JButton();
        jPanel5 = new javax.swing.JPanel();
        slider = new javax.swing.JSlider();
        testSlider = new javax.swing.JButton();
        jPanel6 = new javax.swing.JPanel();
        jSpinner1 = new javax.swing.JSpinner();
        jLabel1 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("TestTable"));

        table.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "学号", "姓名", "性别", "年龄"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Integer.class, java.lang.String.class, java.lang.String.class, java.lang.Integer.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        jScrollPane1.setViewportView(table);

        TestTable.setText("TestTable");
        TestTable.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                TestTableActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(TestTable)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 323, javax.swing.GroupLayout.PREFERRED_SIZE)))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(TestTable)
                .addContainerGap(22, Short.MAX_VALUE))
        );

        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("TestComboBox"));

        comboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        TestComboBox.setText("TestComboBox");
        TestComboBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                TestComboBoxActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(comboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(TestComboBox))
                .addContainerGap(39, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(comboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(TestComboBox)
                .addContainerGap(109, Short.MAX_VALUE))
        );

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("TestList"));

        itemList.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "中国", "中国", "中国" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jScrollPane2.setViewportView(itemList);

        TestList.setText("TestList");
        TestList.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                TestListActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(TestList))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 10, Short.MAX_VALUE)
                .addComponent(TestList)
                .addContainerGap())
        );

        jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder("TestProgressBar"));

        testProgressBar.setText("TestProgressBar");
        testProgressBar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                testProgressBarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(progressBar, javax.swing.GroupLayout.DEFAULT_SIZE, 196, Short.MAX_VALUE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGap(35, 35, 35)
                        .addComponent(testProgressBar)))
                .addContainerGap())
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(testProgressBar)
                .addContainerGap(13, Short.MAX_VALUE))
        );

        jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder("TestSlider"));

        testSlider.setText("TestSlider");
        testSlider.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                testSliderActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGap(24, 24, 24)
                        .addComponent(slider, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGap(78, 78, 78)
                        .addComponent(testSlider)))
                .addContainerGap(41, Short.MAX_VALUE))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addComponent(slider, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(testSlider)
                .addContainerGap(44, Short.MAX_VALUE))
        );

        jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder("TestSpinner"));

        jSpinner1.setModel(new javax.swing.SpinnerDateModel());

        jLabel1.setText("可上下调节的按键");

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addGap(38, 38, 38)
                        .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(103, Short.MAX_VALUE))
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(47, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jPanel3, 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)
                    .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(44, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jPanel2, 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.LEADING)
                            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>

    private void TestTableActionPerformed(java.awt.event.ActionEvent evt) {
        defaultTableModel.addColumn("测");//添加新的一列数据
        defaultTableModel.setValueAt("设置的值", 2, 2); //修改一个已知坐标的位置的数据
        System.out.println("行数:" + defaultTableModel.getRowCount());
        System.out.println("列数:" + defaultTableModel.getColumnCount());
}

    private void TestListActionPerformed(java.awt.event.ActionEvent evt) {
        defaultListModel.addElement("添加了"+ this.defaultListModel.size());
        System.out.println("这个 List 的大小是:" + this.defaultListModel.size());
    }

    private void TestComboBoxActionPerformed(java.awt.event.ActionEvent evt) {
        System.out.println(this.comboBox.getSelectedIndex() + "是:" + this.comboBox.getSelectedItem());
        System.out.println(this.comboBox.getSelectedIndex() + "是:" + this.comboBox.getSelectedItem());
    }

    private void testProgressBarActionPerformed(java.awt.event.ActionEvent evt) {
        this.progressBar.setValue(this.progressBar.getValue() + 10);
}

    private void testSliderActionPerformed(java.awt.event.ActionEvent evt) {
        this.slider.setValue(this.slider.getValue() + 10);
    }

    // Variables declaration - do not modify
    private javax.swing.JButton TestComboBox;
    private javax.swing.JButton TestList;
    private javax.swing.JButton TestTable;
    private javax.swing.JComboBox comboBox;
    private javax.swing.JList itemList;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JSpinner jSpinner1;
    private javax.swing.JProgressBar progressBar;
    private javax.swing.JSlider slider;
    private javax.swing.JTable table;
    private javax.swing.JButton testProgressBar;
    private javax.swing.JButton testSlider;
    // End of variables declaration
}

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/fl772333621/article/details/4814041

智能推荐

使用JavaMail实现邮件发送_隐匿的猫的博客-程序员宅基地

 电子邮件协议电子邮件在网络中传输和网页一样需要遵从特定的协议,常用的电子邮件协议包括 SMTP,POP3,IMAP。其中邮件的创建和发送只需要用到 SMTP协议,所以本文也只会涉及到SMTP协议。SMTP 是 Simple Mail Transfer Protocol 的简称,即简单邮件传输协议。JavaMail 介绍JavaMail API是Sun公司为方便Java开发人员在...

有没有学java的小游戏_现在好多JAVA小游戏啊··可以自学不_weixin_39622568的博客-程序员宅基地

展开全部给你一个例子:import java.applet.Applet;import java.applet.AudioClip;import java.awt.Dimension;import java.awt.Font;import java.awt.Toolkit;import javax.sound.sampled.AudioFileFormat;import javax.sound.s...

SpringBoot 项目构建 Docker 镜像调优实践_Java团长在csdn的博客-程序员宅基地

来源:http://www.mydlq.club/article/16/PS:已经在生产实践中验证,解决在生产环境下,网速带宽小,每次推拉镜像影响线上服务问题,按本文方式构建镜像,除了第...

捷联惯导系统学习7.5(地磁场测量及误差方程 )_磊磊哈哈的博客-程序员宅基地

地磁北向与地理北向一般不重合,它们之间的夹角称为磁偏角,在我国一般为2~3度,最大可为10度。地磁场为矢量场,强度大小为:0.5∼0.6Gs(1Gs=10−4T(特斯拉))0.5\sim 0.6Gs(1Gs=10^{-4}T(特斯拉))0.5∼0.6Gs(1Gs=10−4T(特斯拉)),顺着地磁方向为正。...

Oracle SQL优化_nh3rn的博客-程序员宅基地

听“俊”一席话,胜读十年书。看了这篇由DBA+社群联合发起人丁俊大师(网名:dingjun123)分享的SQL优化大作,其他Oracle SQL优化文章都不必再看了! 专家简介  丁俊网名:dingjun123DBA+社群联合发起人 性能优化专家,Oracle ACEA,ITPUB开发版资深版主。8年电信行业从业经验,在某大型电信系统提供

python学习第三课_qq_45415372的博客-程序员宅基地

python学习第三课1.python基础1.1 python语法1.1.1 概念(1)表达式(2)语句(3)程序(4)函数1.1.2 标识符(1)关键字(2)标识符概念1.2 变量1.2.1 概念1.3 变量在内存中的原理2. 基本数据类型2.1 整数和小数2.2 布尔值和空值2.3 字符串2.3.1 概念2.3.2 转义字符2.3.3 长字符串2.3.4 格式化字符串2.3.5 字符串的其他操作3. 第三讲作业1.python基础1.1 python语法1.1.1 概念(1)表达式  表达式,

随便推点

(大数据工程师学习路径)第五步 MySQL参考手册中文版----MySQL语句语法_weixin_30699955的博客-程序员宅基地

一、数据定义语言1.1 ALTER DATABASE语法ALTER {DATABASE | SCHEMA} [db_name] alter_specification [, alter_specification] ...alter_specification: [DEFAULT] CHARACTER SET charset_name | [DEFAULT...

阿里热修复之Sophix的集成详解_weixin_34077371的博客-程序员宅基地

前言这几天开始接触热修复,体验了一把阿里热修复Sophix的傻瓜式接入。虽说是傻瓜式接入,但实际操作起来还是遇到不少坑,而且Sophix的官方文档有些地方有点难理解,部分图片也跟现在的不一样,所以今天我整理了一下我接入Sophix的过程,希望对大家有所帮助。当然,如果你对热修复并不了解,可以先去了解下Android的热修复,再来看这个文章。一、Sophix是什么Sophix提供了一套更加完美...

Javac和Java_天亮了就会很美的博客-程序员宅基地

Javac编译机制:第一步:Javac *.java-->加载源文件。第二步:进行格式校验(这一步主要判断Java的一些语法有没有错误)。第三步:生成*.class的字节码文件;以上每一步都是在前一步成立也就是通过的情况下,才可以继续往下执行。Java运行机制:第一步:Java 文件名-->通过ClassLoader(类加载器)来加载*.class字节码文件;第二步:还

设置TabBarItem选中时的图片及文字颜色_dengguanpu6216的博客-程序员宅基地

TabBarItem选中时,默认文字和图片都变为蓝色。使用以下代码可以进行修改。 MainViewController *mainVC = [[MainViewController alloc] init]; UINavigationController *mainNVC = [[UINavigationController alloc] initWithRootView...

对Android开发的现状和未来发展的思考,已拿offer附真题解析_椰果学Android的博客-程序员宅基地

前言前不久写过一篇博客,里面介绍了一位朋友由二本渣渣毕业在外包公司工作两年多后,跳槽逆袭成功,现在进入了OPPO公司的故事。后面很多朋友私信我,表示想要这位朋友的面经。其实我觉得,大家对面经完全没必要这么执着,因为面试官的提问都是根据你的学历、工作经历、意向岗位和简历信息来的,而这些,大家都是不一样的,所以,面经里面除了部分技术题可以参考一下,检测自己的知识掌握程度,面试过程让大家稍微熟悉一下,其他的借鉴意义不大。这里特别提醒那些平时不努力,喜欢临时抱佛脚的同学:不要指望多看些面经就可以应对面试官的

推荐文章

热门文章

相关标签