📄 symbolframe.java
字号:
package webmath;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.border.*;
public class SymbolFrame extends JFrame
{
JButton jButton2 = new JButton();
JButton jButton3 = new JButton();
JButton jButton4 = new JButton();
JButton jButton5 = new JButton();
JButton jButton6 = new JButton();
JButton jButton7 = new JButton();
JButton jButton8 = new JButton();
JButton jButton9 = new JButton();
JButton jButton10 = new JButton();
JButton jButton11 = new JButton();
JButton jButton12 = new JButton();
JButton jButton13 = new JButton();
JButton jButton14 = new JButton();
JButton jButton15 = new JButton();
JButton jButton16 = new JButton();
JButton jButton17 = new JButton();
JButton jButton18 = new JButton();
JButton jButton19 = new JButton();
JButton jButton20 = new JButton();
JButton jButton21 = new JButton();
JButton jButton22 = new JButton();
JButton jButton23 = new JButton();
JButton jButton24 = new JButton();
JButton jButton25 = new JButton();
JButton jButton26 = new JButton();
JButton jButton27 = new JButton();
JButton jButton28 = new JButton();
JButton jButton29 = new JButton();
JButton jButton30 = new JButton();
JButton jButton31 = new JButton();
JButton jButton32 = new JButton();
JButton jButton33 = new JButton();
JButton jButton34 = new JButton();
JButton jButton35 = new JButton();
JButton jButton36 = new JButton();
JButton jButton37 = new JButton();
JButton jButton38 = new JButton();
JButton jButton39 = new JButton();
JButton jButton40 = new JButton();
JButton jButton41 = new JButton();
JButton jButton42 = new JButton();
JButton jButton43 = new JButton();
JButton jButton44 = new JButton();
JButton jButton45 = new JButton();
JButton jButton46 = new JButton();
JButton jButton47 = new JButton();
JButton jButton48 = new JButton();
JButton jButton49 = new JButton();
JButton jButton50 = new JButton();
JButton jButton51 = new JButton();
JButton jButton52 = new JButton();
JButton jButton53 = new JButton();
JButton jButton54 = new JButton();
JButton jButton55 = new JButton();
JButton jButton56 = new JButton();
JButton jButton57 = new JButton();
JButton jButton58 = new JButton();
JButton jButton59 = new JButton();
JButton jButton60 = new JButton();
JButton jButton61 = new JButton();
JButton jButton62 = new JButton();
JButton jButton63 = new JButton();
JButton jButton64 = new JButton();
JButton jButton65 = new JButton();
JButton jButton66 = new JButton();
JButton jButton67 = new JButton();
JButton jButton68 = new JButton();
JButton jButton69 = new JButton();
JButton jButton70 = new JButton();
JButton jButton71 = new JButton();
JButton jButton72 = new JButton();
JButton jButton73 = new JButton();
JButton jButton74 = new JButton();
JButton jButton75 = new JButton();
JButton jButton76 = new JButton();
JButton jButton77 = new JButton();
JButton jButton78 = new JButton();
JButton jButton79 = new JButton();
JButton jButton80 = new JButton();
JButton jButton81 = new JButton();
JButton jButton82 = new JButton();
JButton jButton83 = new JButton();
JButton jButton84 = new JButton();
JButton jButton85 = new JButton();
JButton jButton86 = new JButton();
JButton jButton87 = new JButton();
JButton jButton88 = new JButton();
JButton jButton89 = new JButton();
JButton jButton90 = new JButton();
JButton jButton91 = new JButton();
JButton jButton92 = new JButton();
JButton jButton93 = new JButton();
JButton jButton94 = new JButton();
JButton jButton95 = new JButton();
JButton jButton96 = new JButton();
JButton jButton97 = new JButton();
JButton jButton98 = new JButton();
JButton jButton99 = new JButton();
JButton jButton100 = new JButton();
JButton jButton1 = new JButton();
JButton jButton101 = new JButton();
TitledBorder titledBorder1;
TitledBorder titledBorder2;
TitledBorder titledBorder3;
Border border1;
Panel1 panel1;
public SymbolFrame(Panel1 panel1)
{
this.panel1 = panel1;
this.setTitle("符号");
try
{
jbInit();
} catch (Exception e)
{
e.printStackTrace();
}
}
private void jbInit() throws Exception
{
titledBorder1 = new TitledBorder("");
titledBorder2 = new TitledBorder("");
titledBorder3 = new TitledBorder("");
this.getContentPane().setLayout(null);
jButton2.setText("Θ");
jButton2.addActionListener(new SymbolFrame_jButton2_actionAdapter(this));
jButton2.setPreferredSize(new Dimension(30, 15));
jButton2.setBounds(new Rectangle(169, 96, 42, 25));
jButton2.setBorder(BorderFactory.createEtchedBorder());
jButton3.setText("≈");
jButton3.addActionListener(new SymbolFrame_jButton3_actionAdapter(this));
jButton3.setPreferredSize(new Dimension(30, 15));
jButton3.setBounds(new Rectangle(170, 163, 42, 25));
jButton3.setBorder(BorderFactory.createEtchedBorder());
jButton4.setText("Ω");
jButton4.addActionListener(new SymbolFrame_jButton4_actionAdapter(this));
jButton4.setPreferredSize(new Dimension(30, 15));
jButton4.setBounds(new Rectangle(85, 121, 42, 25));
jButton4.setBorder(BorderFactory.createEtchedBorder());
jButton5.setText("a");
jButton5.addActionListener(new SymbolFrame_jButton5_actionAdapter(this));
jButton5.setPreferredSize(new Dimension(30, 15));
jButton5.setBounds(new Rectangle(339, 213, 42, 25));
jButton5.setEnabled(false);
jButton5.setBorder(BorderFactory.createEtchedBorder());
jButton6.setText("a");
jButton6.addActionListener(new SymbolFrame_jButton6_actionAdapter(this));
jButton6.setPreferredSize(new Dimension(30, 15));
jButton6.setBounds(new Rectangle(85, 213, 42, 25));
jButton6.setEnabled(false);
jButton6.setBorder(BorderFactory.createEtchedBorder());
jButton7.setText("a");
jButton7.addActionListener(new SymbolFrame_jButton7_actionAdapter(this));
jButton7.setPreferredSize(new Dimension(30, 15));
jButton7.setBounds(new Rectangle(128, 256, 42, 25));
jButton7.setEnabled(false);
jButton7.setBorder(BorderFactory.createEtchedBorder());
jButton8.setText("a");
jButton8.addActionListener(new SymbolFrame_jButton8_actionAdapter(this));
jButton8.setPreferredSize(new Dimension(30, 15));
jButton8.setBounds(new Rectangle(43, 213, 42, 25));
jButton8.setEnabled(false);
jButton8.setBorder(BorderFactory.createEtchedBorder());
jButton9.setText("a");
jButton9.addActionListener(new SymbolFrame_jButton9_actionAdapter(this));
jButton9.setPreferredSize(new Dimension(30, 15));
jButton9.setBounds(new Rectangle(85, 256, 42, 25));
jButton9.setEnabled(false);
jButton9.setBorder(BorderFactory.createEtchedBorder());
jButton10.setText("≤");
jButton10.addActionListener(new SymbolFrame_jButton10_actionAdapter(this));
jButton10.setPreferredSize(new Dimension(30, 15));
jButton10.setBounds(new Rectangle(1, 163, 42, 25));
jButton10.setBorder(BorderFactory.createEtchedBorder());
jButton11.setText("±");
jButton11.addActionListener(new SymbolFrame_jButton11_actionAdapter(this));
jButton11.setPreferredSize(new Dimension(30, 15));
jButton11.setBounds(new Rectangle(1, 188, 42, 25));
jButton11.setBorder(BorderFactory.createEtchedBorder());
jButton12.setText("Δ");
jButton12.addActionListener(new SymbolFrame_jButton12_actionAdapter(this));
jButton12.setPreferredSize(new Dimension(30, 15));
jButton12.setBounds(new Rectangle(127, 96, 42, 25));
jButton12.setBorder(BorderFactory.createEtchedBorder());
jButton13.setText("Λ");
jButton13.addActionListener(new SymbolFrame_jButton13_actionAdapter(this));
jButton13.setPreferredSize(new Dimension(30, 15));
jButton13.setBounds(new Rectangle(212, 96, 42, 25));
jButton13.setBorder(BorderFactory.createEtchedBorder());
jButton14.setText("σ");
jButton14.addActionListener(new SymbolFrame_jButton14_actionAdapter(this));
jButton14.setPreferredSize(new Dimension(30, 15));
jButton14.setBounds(new Rectangle(213, 27, 42, 25));
jButton14.setBorder(BorderFactory.createEtchedBorder());
jButton15.setText("∩");
jButton15.addActionListener(new SymbolFrame_jButton15_actionAdapter(this));
jButton15.setPreferredSize(new Dimension(30, 15));
jButton15.setBounds(new Rectangle(255, 163, 42, 25));
jButton15.setBorder(BorderFactory.createEtchedBorder());
jButton16.setText("′");
jButton16.addActionListener(new SymbolFrame_jButton16_actionAdapter(this));
jButton16.setPreferredSize(new Dimension(30, 15));
jButton16.setBounds(new Rectangle(297, 188, 42, 25));
jButton16.setBorder(BorderFactory.createEtchedBorder());
jButton17.setText("a");
jButton17.addActionListener(new SymbolFrame_jButton17_actionAdapter(this));
jButton17.setPreferredSize(new Dimension(30, 15));
jButton17.setBounds(new Rectangle(255, 213, 42, 25));
jButton17.setEnabled(false);
jButton17.setBorder(BorderFactory.createEtchedBorder());
jButton18.setText("a");
jButton18.addActionListener(new SymbolFrame_jButton18_actionAdapter(this));
jButton18.setPreferredSize(new Dimension(30, 15));
jButton18.setBounds(new Rectangle(297, 213, 42, 25));
jButton18.setEnabled(false);
jButton18.setBorder(BorderFactory.createEtchedBorder());
jButton19.setText("a");
jButton19.addActionListener(new SymbolFrame_jButton19_actionAdapter(this));
jButton19.setPreferredSize(new Dimension(30, 15));
jButton19.setActionCommand("a");
jButton19.setBounds(new Rectangle(381, 213, 42, 25));
jButton19.setEnabled(false);
jButton19.setBorder(BorderFactory.createEtchedBorder());
jButton20.setText("a");
jButton20.addActionListener(new SymbolFrame_jButton20_actionAdapter(this));
jButton20.setPreferredSize(new Dimension(30, 15));
jButton20.setBounds(new Rectangle(170, 256, 42, 25));
jButton20.setEnabled(false);
jButton20.setBorder(BorderFactory.createEtchedBorder());
jButton21.setText("a");
jButton21.addActionListener(new SymbolFrame_jButton21_actionAdapter(this));
jButton21.setPreferredSize(new Dimension(30, 15));
jButton21.setBounds(new Rectangle(85, 283, 42, 25));
jButton21.setEnabled(false);
jButton21.setBorder(BorderFactory.createEtchedBorder());
jButton22.setText("Υ");
jButton22.addActionListener(new SymbolFrame_jButton22_actionAdapter(this));
jButton22.setPreferredSize(new Dimension(30, 15));
jButton22.setBounds(new Rectangle(380, 96, 42, 25));
jButton22.setBorder(BorderFactory.createEtchedBorder());
jButton23.setText("a");
jButton23.addActionListener(new SymbolFrame_jButton23_actionAdapter(this));
jButton23.setPreferredSize(new Dimension(30, 15));
jButton23.setBounds(new Rectangle(128, 310, 42, 25));
jButton23.setEnabled(false);
jButton23.setBorder(BorderFactory.createEtchedBorder());
jButton24.setText("a");
jButton24.addActionListener(new SymbolFrame_jButton24_actionAdapter(this));
jButton24.setPreferredSize(new Dimension(30, 15));
jButton24.setBounds(new Rectangle(255, 256, 42, 25));
jButton24.setEnabled(false);
jButton24.setBorder(BorderFactory.createEtchedBorder());
jButton25.setText("a");
jButton25.addActionListener(new SymbolFrame_jButton25_actionAdapter(this));
jButton25.setPreferredSize(new Dimension(30, 15));
jButton25.setBounds(new Rectangle(43, 310, 42, 25));
jButton25.setEnabled(false);
jButton25.setBorder(BorderFactory.createEtchedBorder());
jButton26.setText("Ψ");
jButton26.addActionListener(new SymbolFrame_jButton26_actionAdapter(this));
jButton26.setPreferredSize(new Dimension(30, 15));
jButton26.setBounds(new Rectangle(43, 121, 42, 25));
jButton26.setBorder(BorderFactory.createEtchedBorder());
jButton27.setText("Γ");
jButton27.addActionListener(new SymbolFrame_jButton27_actionAdapter(this));
jButton27.setPreferredSize(new Dimension(30, 15));
jButton27.setBounds(new Rectangle(84, 96, 42, 25));
jButton27.setBorder(BorderFactory.createEtchedBorder());
jButton28.setText("∈");
jButton28.addActionListener(new SymbolFrame_jButton28_actionAdapter(this));
jButton28.setPreferredSize(new Dimension(30, 15));
jButton28.setBounds(new Rectangle(297, 163, 42, 25));
jButton28.setBorder(BorderFactory.createEtchedBorder());
jButton29.setText("∏");
jButton29.addActionListener(new SymbolFrame_jButton29_actionAdapter(this));
jButton29.setPreferredSize(new Dimension(30, 15));
jButton29.setBounds(new Rectangle(213, 121, 42, 25));
jButton29.setBorder(BorderFactory.createEtchedBorder());
jButton30.setText("Φ");
jButton30.addActionListener(new SymbolFrame_jButton30_actionAdapter(this));
jButton30.setPreferredSize(new Dimension(30, 15));
jButton30.setBounds(new Rectangle(1, 121, 42, 25));
jButton30.setBorder(BorderFactory.createEtchedBorder());
jButton31.setText("a");
jButton31.setVerticalAlignment(SwingConstants.CENTER);
jButton31.setVerticalTextPosition(SwingConstants.CENTER);
jButton31.addActionListener(new SymbolFrame_jButton31_actionAdapter(this));
jButton31.setPreferredSize(new Dimension(30, 15));
jButton31.setToolTipText("");
jButton31.setVerifyInputWhenFocusTarget(true);
jButton31.setBounds(new Rectangle(381, 188, 42, 25));
jButton31.setEnabled(false);
jButton31.setBorder(BorderFactory.createEtchedBorder());
jButton32.setText("τ");
jButton32.addActionListener(new SymbolFrame_jButton32_actionAdapter(this));
jButton32.setPreferredSize(new Dimension(30, 15));
jButton32.setBounds(new Rectangle(255, 27, 42, 25));
jButton32.setBorder(BorderFactory.createEtchedBorder());
jButton33.setText("÷");
jButton33.addActionListener(new SymbolFrame_jButton33_actionAdapter(this));
jButton33.setPreferredSize(new Dimension(30, 15));
jButton33.setBounds(new Rectangle(339, 188, 42, 25));
jButton33.setBorder(BorderFactory.createEtchedBorder());
jButton34.setText("φ");
jButton34.addActionListener(new SymbolFrame_jButton34_actionAdapter(this));
jButton34.setPreferredSize(new Dimension(30, 15));
jButton34.setBounds(new Rectangle(339, 27, 42, 25));
jButton34.setBorder(BorderFactory.createEtchedBorder());
jButton35.setText("a");
jButton35.addActionListener(new SymbolFrame_jButton35_actionAdapter(this));
jButton35.setPreferredSize(new Dimension(30, 15));
jButton35.setBounds(new Rectangle(339, 256, 42, 25));
jButton35.setEnabled(false);
jButton35.setBorder(BorderFactory.createEtchedBorder());
jButton36.setText("a");
jButton36.addActionListener(new SymbolFrame_jButton36_actionAdapter(this));
jButton36.setPreferredSize(new Dimension(30, 15));
jButton36.setBounds(new Rectangle(213, 213, 42, 25));
jButton36.setEnabled(false);
jButton36.setBorder(BorderFactory.createEtchedBorder());
jButton37.setText("≥");
jButton37.addActionListener(new SymbolFrame_jButton37_actionAdapter(this));
jButton37.setPreferredSize(new Dimension(30, 15));
jButton37.setBounds(new Rectangle(43, 163, 42, 25));
jButton37.setBorder(BorderFactory.createEtchedBorder());
jButton38.setText("π");
jButton38.addActionListener(new SymbolFrame_jButton38_actionAdapter(this));
jButton38.setPreferredSize(new Dimension(30, 15));
jButton38.setBounds(new Rectangle(128, 27, 42, 25));
jButton38.setBorder(BorderFactory.createEtchedBorder());
jButton39.setText("a");
jButton39.addActionListener(new SymbolFrame_jButton39_actionAdapter(this));
jButton39.setPreferredSize(new Dimension(30, 15));
jButton39.setBounds(new Rectangle(213, 256, 42, 25));
jButton39.setEnabled(false);
jButton39.setBorder(BorderFactory.createEtchedBorder());
jButton40.setText("a");
jButton40.addActionListener(new SymbolFrame_jButton40_actionAdapter(this));
jButton40.setPreferredSize(new Dimension(30, 15));
jButton40.setBounds(new Rectangle(85, 310, 42, 25));
jButton40.setEnabled(false);
jButton40.setBorder(BorderFactory.createEtchedBorder());
jButton41.setText("a");
jButton41.addActionListener(new SymbolFrame_jButton41_actionAdapter(this));
jButton41.setPreferredSize(new Dimension(30, 15));
jButton41.setBounds(new Rectangle(297, 256, 42, 25));
jButton41.setEnabled(false);
jButton41.setBorder(BorderFactory.createEtchedBorder());
jButton42.setText("≮");
jButton42.addActionListener(new SymbolFrame_jButton42_actionAdapter(this));
jButton42.setPreferredSize(new Dimension(30, 15));
jButton42.setBounds(new Rectangle(85, 163, 42, 25));
jButton42.setBorder(BorderFactory.createEtchedBorder());
jButton43.setText("ξ");
jButton43.addActionListener(new SymbolFrame_jButton43_actionAdapter(this));
jButton43.setPreferredSize(new Dimension(30, 15));
jButton43.setBounds(new Rectangle(85, 27, 42, 25));
jButton43.setBorder(BorderFactory.createEtchedBorder());
jButton44.setText("γ");
jButton44.addActionListener(new SymbolFrame_jButton44_actionAdapter(this));
jButton44.setPreferredSize(new Dimension(30, 15));
jButton44.setBounds(new Rectangle(85, 0, 42, 25));
jButton44.setBorder(BorderFactory.createEtchedBorder());
jButton45.addActionListener(new SymbolFrame_jButton45_actionAdapter(this));
jButton45.setPreferredSize(new Dimension(30, 15));
jButton45.setToolTipText("");
jButton45.setActionCommand("1");
jButton45.setText("δ");
jButton45.setVerticalAlignment(SwingConstants.CENTER);
jButton45.setVerticalTextPosition(SwingConstants.TOP);
jButton45.setBounds(new Rectangle(128, 0, 42, 25));
jButton45.setAlignmentX((float) 0.0);
jButton45.setAlignmentY((float) 0.0);
jButton45.setBorder(BorderFactory.createEtchedBorder());
jButton45.setOpaque(true);
jButton46.setText("λ");
jButton46.addActionListener(new SymbolFrame_jButton46_actionAdapter(this));
jButton46.setPreferredSize(new Dimension(30, 15));
jButton46.setBounds(new Rectangle(1, 27, 42, 25));
jButton46.setBorder(BorderFactory.createEtchedBorder());
jButton47.setText("←");
jButton47.addActionListener(new SymbolFrame_jButton47_actionAdapter(this));
jButton47.setPreferredSize(new Dimension(30, 15));
jButton47.setBounds(new Rectangle(128, 188, 42, 25));
jButton47.setBorder(BorderFactory.createEtchedBorder());
jButton48.setText("Σ");
jButton48.addActionListener(new SymbolFrame_jButton48_actionAdapter(this));
jButton48.setPreferredSize(new Dimension(30, 15));
jButton48.setBounds(new Rectangle(338, 96, 42, 25));
jButton48.setBorder(BorderFactory.createEtchedBorder());
jButton49.setText("⊥");
jButton49.addActionListener(new SymbolFrame_jButton49_actionAdapter(this));
jButton49.setPreferredSize(new Dimension(30, 15));
jButton49.setBounds(new Rectangle(43, 188, 42, 25));
jButton49.setBorder(BorderFactory.createEtchedBorder());
jButton50.setText("a");
jButton50.addActionListener(new SymbolFrame_jButton50_actionAdapter(this));
jButton50.setPreferredSize(new Dimension(30, 15));
jButton50.setBounds(new Rectangle(339, 310, 42, 25));
jButton50.setEnabled(false);
jButton50.setBorder(BorderFactory.createEtchedBorder());
jButton51.setText("a");
jButton51.addActionListener(new SymbolFrame_jButton51_actionAdapter(this));
jButton51.setPreferredSize(new Dimension(30, 15));
jButton51.setBounds(new Rectangle(297, 310, 42, 25));
jButton51.setEnabled(false);
jButton51.setBorder(BorderFactory.createEtchedBorder());
jButton52.setText("η");
jButton52.addActionListener(new SymbolFrame_jButton52_actionAdapter(this));
jButton52.setPreferredSize(new Dimension(30, 15));
jButton52.setBounds(new Rectangle(255, 0, 42, 25));
jButton52.setBorder(BorderFactory.createEtchedBorder());
jButton53.setText("κ");
jButton53.addActionListener(new SymbolFrame_jButton53_actionAdapter(this));
jButton53.setPreferredSize(new Dimension(30, 15));
jButton53.setBounds(new Rectangle(381, 0, 42, 25));
jButton53.setBorder(BorderFactory.createEtchedBorder());
jButton54.setText("∠");
jButton54.addActionListener(new SymbolFrame_jButton54_actionAdapter(this));
jButton54.setPreferredSize(new Dimension(30, 15));
jButton54.setBounds(new Rectangle(128, 121, 42, 25));
jButton54.setBorder(BorderFactory.createEtchedBorder());
jButton55.setText("×");
jButton55.addActionListener(new SymbolFrame_jButton55_actionAdapter(this));
jButton55.setPreferredSize(new Dimension(30, 15));
jButton55.setBounds(new Rectangle(339, 121, 42, 25));
jButton55.setBorder(BorderFactory.createEtchedBorder());
jButton56.setText("∣");
jButton56.addActionListener(new SymbolFrame_jButton56_actionAdapter(this));
jButton56.setPreferredSize(new Dimension(30, 15));
jButton56.setBounds(new Rectangle(381, 163, 42, 25));
jButton56.setBorder(BorderFactory.createEtchedBorder());
jButton57.setText("θ");
jButton57.addActionListener(new SymbolFrame_jButton57_actionAdapter(this));
jButton57.setPreferredSize(new Dimension(30, 15));
jButton57.setBounds(new Rectangle(297, 0, 42, 25));
jButton57.setBorder(BorderFactory.createEtchedBorder());
jButton58.setText("υ");
jButton58.addActionListener(new SymbolFrame_jButton58_actionAdapter(this));
jButton58.setPreferredSize(new Dimension(30, 15));
jButton58.setBounds(new Rectangle(297, 27, 42, 25));
jButton58.setBorder(BorderFactory.createEtchedBorder());
jButton59.setText("↓");
jButton59.addActionListener(new SymbolFrame_jButton59_actionAdapter(this));
jButton59.setPreferredSize(new Dimension(30, 15));
jButton59.setBounds(new Rectangle(255, 188, 42, 25));
jButton59.setBorder(BorderFactory.createEtchedBorder());
jButton60.setText("↑");
jButton60.addActionListener(new SymbolFrame_jButton60_actionAdapter(this));
jButton60.setPreferredSize(new Dimension(30, 15));
jButton60.setBounds(new Rectangle(213, 188, 42, 25));
jButton60.setBorder(BorderFactory.createEtchedBorder());
jButton61.setText("Ξ");
jButton61.addActionListener(new SymbolFrame_jButton61_actionAdapter(this));
jButton61.setPreferredSize(new Dimension(30, 15));
jButton61.setBounds(new Rectangle(254, 96, 42, 25));
jButton61.setBorder(BorderFactory.createEtchedBorder());
jButton62.setText("ε");
jButton62.addActionListener(new SymbolFrame_jButton62_actionAdapter(this));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -