zoukankan      html  css  js  c++  java
  • GUI 之 JScrollPane (面板)

    编写代码 JScrollDemo测试类

    package com.xiang.lesson05;
    
    import javax.swing.*;
    import java.awt.*;
    
    //滚动条 JScrollPane 面板
    public class JScrollDemo extends JFrame {
        public JScrollDemo() {
            Container container = getContentPane();
    
    //        文本域
            JTextArea textArea = new JTextArea(20, 10);
            textArea.setText("Machine reading comprehension (MRC) aims to teach machines to read and comprehend human
    " +
                    "languages, which is a long-standing goal of natural language processing (NLP). With the burst of
    " +
                    "deep neural networks and the evolution of contextualized language models (CLMs), the research
    " +
                    "of MRC has experienced two significant breakthroughs. MRC and CLM, as a phenomenon,
    " +
                    "have a great impact on the NLP community. In this survey, we provide a comprehensive and
    " +
                    "comparative review on MRC covering overall research topics about 1) the origin and development
    " +
                    "of MRC and CLM, with particular focus on the role of CLMs; 2) the impact of MRC and CLM
    " +
                    "to the NLP community; 3) the definition, datasets, and evaluation of MRC; 4) general MRC
    " +
                    "architecture and technical methods in the view of two-stage Encoder-Decoder solving archiu0002tecture from the insights of the cognitive process of humans; 5) previous highlights, emerging
    " +
                    "topics, and our empirical analysis, among which we especially focus on what works in different
    " +
                    "periods of MRC researches. We propose a full-view categorization and new taxonomies on these
    " +
                    "topics. The primary views we have arrived at are that 1) MRC boosts the progress from language
    " +
                    "processing to understanding; 2) the rapid improvement of MRC systems greatly benefits from
    " +
                    "the development of CLMs; 3) the theme of MRC is gradually moving from shallow text matching
    " +
                    "to cognitive reasoning.");
    
    //        JScrollPane 面板
            JScrollPane scrollPane = new JScrollPane(textArea);
    
    
            container.add(scrollPane);
    
            setVisible(true);
            setBounds(100, 100, 400, 200);
            setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    
        }
    
        public static void main(String[] args) {
            new JScrollDemo();
        }
    }
    
    

    运行结果

  • 相关阅读:
    番外篇 之 JS调用
    C# 匿名方法及Lambda表达式
    番外篇 之 C#委托
    番外篇之多线程
    23----2013.07.01---Div和Span区别,Css常用属性,选择器,使用css的方式,脱离文档流,div+css布局,盒子模型,框架,js基本介绍
    22----2013.06.29---HTML--html介绍.超链接和图片,表格,表单,表单标签,meta,复习当天内容
    AccessHelper类
    WPF视频教程系列笔记
    《深入浅出WPF》 学习笔记
    基于MAVEN构建Spring MVC初始化配置
  • 原文地址:https://www.cnblogs.com/d534/p/15111592.html
Copyright © 2011-2022 走看看