鹿国萍-星载SAR立体观测系统界面设计(4)

2019-04-16 22:28

将此线框对象添加到frame窗口中。 p2.setLayout(null); 设置layout布局方式为空 运行代码后显示

图3.6

4.在p1内添加按钮,文字,文本输入控件。代码如下 JButton button1 = new JButton(\主图像\); 添加按钮,名字为“主图像”

button1.setBounds(25, 19, 80, 20); 设置按钮在p1内的位置和大小 p1.add(button1); 将此按钮添加到p1

JButton button2 = new JButton(\辅图像\); 同上

button2.setBounds(25, 45, 80, 20); 同上

p1.add(button2); 同上

- 13 -

JTextArea jta1 = new JTextArea(\距离向尺寸\); 添加文字显示区域,名字为“距离向尺寸” jta1.setBounds(115, 19, 60, 20); 设置此文本在p1的位置和大小 jta1.setEditable(false);

设置此文本不可编辑,只能显示,不能修改 p1.add(jta1); 将此文本添加到p1

JTextField jtf1 = new JTextField(); jtf1.setBounds(188,19,60,20); p1.add(jtf1);

JTextArea jta2 = new JTextArea(\方向尺寸\); jta2.setBounds(275, 19, 60, 20); jta2.setEditable(false); p1.add(jta2);

JTextField jtf2 = new JTextField(); jtf2.setBounds(352,19,60,20); p1.add(jtf2);

JTextArea jta3 = new JTextArea(\距离向尺寸\); jta3.setBounds(115, 45, 60, 20); jta1.setEditable(false); p1.add(jta3);

JTextField jtf3 = new JTextField(); jtf3.setBounds(188,45,60,20); p1.add(jtf3);

JTextArea jta4 = new JTextArea(\方向尺寸\); jta4.setBounds(275, 45, 60, 20); jta4.setEditable(false); p1.add(jta4);

- 14 -

JTextField jtf4 = new JTextField(); jtf4.setBounds(352,45,60,20); p1.add(jtf4);

之上代码说明同上,执行代码后显示效果:

图3.7

5、同理在p2内添加所需的控件,代码如下。

JPanel innerP1 = new JPanel();

innerP1.setBorder(BorderFactory.createTitledBorder(\预滤波\)); innerP1.setBounds(10,20,168,65); innerP1.setLayout(null);

JTextArea innerP1TA = new JTextArea(\方式选择\); innerP1TA.setBounds(10, 15, 60, 15); innerP1.add(innerP1TA);

Choice innerP1C = new Choice(); innerP1C.setBounds(10, 30, 60, 20); innerP1C.add(\小猪\); innerP1C.add(\小鸡\);

- 15 -

innerP1C.add(\小狗\); innerP1C.add(\小羊\); innerP1.add(innerP1C);

JButton innerP1B = new JButton(\显示结果\); innerP1B.setBounds(80, 30, 100, 20); innerP1.add(innerP1B);

p2.add(innerP1);

JPanel innerP2 = new JPanel();

innerP2.setBorder(BorderFactory.createTitledBorder(\生成DEM\)); innerP2.setBounds(250,20,168,65);

JButton innerP2B = new JButton(\显示结果\); innerP2B.setBounds(80, 30, 100, 20); innerP2.add(innerP2B);

p2.add(innerP2);

JPanel innerP3 = new JPanel();

innerP3.setBorder(BorderFactory.createTitledBorder(\配准\)); innerP3.setBounds(10,96,168,65); innerP3.setLayout(null);

JTextArea innerP3TA = new JTextArea(\方式选择\); innerP3TA.setBounds(10, 15, 60, 15); innerP3.add(innerP3TA);

Choice innerP3C = new Choice(); innerP3C.setBounds(10, 30, 60, 20); innerP3.add(innerP3C);

- 16 -

JButton innerP3B = new JButton(\显示结果\); innerP3B.setBounds(80, 30, 100, 20); innerP3.add(innerP3B);

p2.add(innerP3);

JPanel innerP4 = new JPanel();

innerP4.setBorder(BorderFactory.createTitledBorder(\相位解缠\)); innerP4.setBounds(250,96,168,65); innerP4.setLayout(null);

JTextArea innerP4TA = new JTextArea(\方式选择\); innerP4TA.setBounds(10, 15, 60, 15); innerP4.add(innerP4TA);

Choice innerP4C = new Choice(); innerP4C.setBounds(10, 30, 60, 20); innerP4.add(innerP4C);

JButton innerP4B = new JButton(\显示结果\); innerP4B.setBounds(80, 30, 100, 20); innerP4.add(innerP4B);

p2.add(innerP4);

JPanel innerP5 = new JPanel();

innerP5.setBorder(BorderFactory.createTitledBorder(\干涉图滤波\)); innerP5.setBounds(10,172,168,65); innerP5.setLayout(null);

JTextArea innerP5TA = new JTextArea(\方式选择\); innerP5TA.setBounds(10, 15, 60, 15); innerP5.add(innerP5TA);

Choice innerP5C = new Choice();

- 17 -


鹿国萍-星载SAR立体观测系统界面设计(4).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:2015年松原市事业单位考试通用知识备考资料(1.18)

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: