📄 notedlg.java
字号:
package com.jestdoc.flowtools.dialog;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.border.*;
import com.jestdoc.flowdata.WfConstants;
import com.jestdoc.flowtools.*;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2002</p>
* <p>Company: wingroup</p>
* @author huangtao
* @version 1.0
*/
public class NoteDlg extends JDialog {
Comment correspondObj;
JScrollPane jScrollPane1 = new JScrollPane();
JPanel jPanel1 = new JPanel();
JTextArea taNote = new JTextArea();
Border border1;
JButton btnOk = new JButton();
JButton btnCancel = new JButton();
JPanel jPanel2 = new JPanel();
JLabel jLabel1 = new JLabel();
FlowLayout flowLayout1 = new FlowLayout();
public NoteDlg(Frame owner, String title, boolean modal) {
super(owner, title, modal);
try {
jbInit();
}
catch(Exception e) {
e.printStackTrace();
}
}
public NoteDlg(String title){
this(null, title, true);
}
public NoteDlg(){
this(null, "猔睦ず甧", true);
}
public void setCorrespondObj(Comment correspondObj){
this.correspondObj = correspondObj;
}
public void show(){
taNote.setText(correspondObj.getText());
super.show();
}
private void btnOk_Action(){
String strNote = taNote.getText().trim();
if(strNote.length() > 250){
JOptionPane.showMessageDialog(this, "块
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -