ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

GUI 之 JScrollPane (面板)

2021-08-07 12:32:13  阅读:156  来源: 互联网

标签:textArea GUI JScrollPane CLMs JScrollDemo new 面板 MRC


编写代码 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\n" +
                "languages, which is a long-standing goal of natural language processing (NLP). With the burst of\n" +
                "deep neural networks and the evolution of contextualized language models (CLMs), the research\n" +
                "of MRC has experienced two significant breakthroughs. MRC and CLM, as a phenomenon,\n" +
                "have a great impact on the NLP community. In this survey, we provide a comprehensive and\n" +
                "comparative review on MRC covering overall research topics about 1) the origin and development\n" +
                "of MRC and CLM, with particular focus on the role of CLMs; 2) the impact of MRC and CLM\n" +
                "to the NLP community; 3) the definition, datasets, and evaluation of MRC; 4) general MRC\n" +
                "architecture and technical methods in the view of two-stage Encoder-Decoder solving archi\u0002tecture from the insights of the cognitive process of humans; 5) previous highlights, emerging\n" +
                "topics, and our empirical analysis, among which we especially focus on what works in different\n" +
                "periods of MRC researches. We propose a full-view categorization and new taxonomies on these\n" +
                "topics. The primary views we have arrived at are that 1) MRC boosts the progress from language\n" +
                "processing to understanding; 2) the rapid improvement of MRC systems greatly benefits from\n" +
                "the development of CLMs; 3) the theme of MRC is gradually moving from shallow text matching\n" +
                "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();
    }
}

运行结果

标签:textArea,GUI,JScrollPane,CLMs,JScrollDemo,new,面板,MRC
来源: https://www.cnblogs.com/d534/p/15111592.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有