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

📄 continuesearchdialog.java

📁 Memoranda( 从前以jNotes2而闻名) 是一个日志管理和个人项目管理工具
💻 JAVA
字号:
package net.sf.memoranda.ui.htmleditor;import java.awt.BorderLayout;import java.awt.Dimension;import java.awt.FlowLayout;import java.awt.event.ActionEvent;import javax.swing.ImageIcon;import javax.swing.JButton;import javax.swing.JLabel;import javax.swing.JPanel;import javax.swing.JTextField;import net.sf.memoranda.ui.htmleditor.util.Local;public class ContinueSearchDialog extends JPanel {  JPanel panel1 = new JPanel();  BorderLayout borderLayout1 = new BorderLayout();  FlowLayout flowLayout1 = new FlowLayout();  JButton cancelB = new JButton();  JButton continueB = new JButton();  JPanel buttonsPanel = new JPanel();  JLabel jLabel1 = new JLabel();  JTextField textF = new JTextField();  String text;    Thread thread;  public boolean cont = false;  public boolean cancel = false;  public ContinueSearchDialog(Thread t, String txt) {        try {      text = txt;         thread = t;      jbInit();          }    catch(Exception ex) {      ex.printStackTrace();    }  }    void jbInit() throws Exception {      this.setLayout(borderLayout1);    textF.setEditable(false);    textF.setText(text);    cancelB.setMaximumSize(new Dimension(120, 26));    cancelB.setMinimumSize(new Dimension(80, 26));    cancelB.setPreferredSize(new Dimension(120, 26));    cancelB.setText(Local.getString("Cancel"));    cancelB.setFocusable(false);    cancelB.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(ActionEvent e) {                cancelB_actionPerformed(e);            }        });    continueB.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(ActionEvent e) {                continueB_actionPerformed(e);            }        });    continueB.setText(Local.getString("Find next"));    continueB.setPreferredSize(new Dimension(120, 26));    continueB.setMinimumSize(new Dimension(80, 26));    continueB.setMaximumSize(new Dimension(120, 26));    continueB.setFocusable(false);        flowLayout1.setAlignment(FlowLayout.RIGHT);    buttonsPanel.setLayout(flowLayout1);        jLabel1.setText(" "+Local.getString("Search for")+":  ");    jLabel1.setIcon(new ImageIcon(net.sf.memoranda.ui.htmleditor.HTMLEditor.class.getResource("resources/icons/findbig.png"))) ;       this.add(jLabel1, BorderLayout.WEST);    this.add(textF,BorderLayout.CENTER);        buttonsPanel.add(continueB, null);    buttonsPanel.add(cancelB, null);    this.add(buttonsPanel,  BorderLayout.EAST);  }  void cancelB_actionPerformed(ActionEvent e) {    cont = true;    cancel = true;        thread.resume();  }  void continueB_actionPerformed(ActionEvent e) {     cont = true;          thread.resume();  }}

⌨️ 快捷键说明

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