⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 show.java

📁 在java环境下开发的一个笔记记录及管理工具
💻 JAVA
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package stageexperiment;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.JButton;import javax.swing.JFrame;import javax.swing.JTextArea;/** * * @author lina */ public class Show extends JFrame {     JTextArea t=new JTextArea();    JButton Jb=new JButton("确定");    public Show(final Main m) throws Exception    {           this.setLayout(null);        this.add(t);        this.add(Jb);        t.setBounds(0,0,600,400);        Jb.setBounds(0,400,600,100);        t.setMaximumSize(t.getPreferredSize());        //JScrollPane scrollPane=new JScrollPane(t);     	this.setBounds(40,20,600,500);    	this.setTitle("浏览");    	this.setVisible(true);        String s;        s="笔记文件名"+'\t'+"作者"+'\t'+"题目"+'\t'+"关键词"+'\t'+"备注"+'\t'+"路径"+'\r'+'\n';        for(int i=0;i<m.allnotes.getLength();i++)        {            s=s+m.allnotes.all[i].filename+'\t'+m.allnotes.all[i].writer+'\t'+m.allnotes.all[i].topic+'\t'+m.allnotes.all[i].keyword+'\t'+m.allnotes.all[i].remark+'\t'+m.allnotes.all[i].path+'\n';        }       t.setText(s);       Jb.addActionListener(new ActionListener()     {public void actionPerformed(ActionEvent e)       {     setVisible(false);       }    });   }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -