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

📄 f057a971a33d001d192abbead0da6110

📁 动态演绎2叉树的原理。演示二叉树的前序遍历过程。 演示二叉树的中序遍历过程。 演示二叉树的后序遍历过程。
💻
📖 第 1 页 / 共 5 页
字号:
					TrackingNum++;
				}
				BT.insert(pleaseGiveNodeText_6.getText(), "1", true,pleaseGiveNodeText_6);
			}
		});
		
		confirmButton_1_3_1.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				extendTheLeftButton_2_3_2.setVisible(true);
				extendTheLeftButton_2_3_1_1.setVisible(true);			
				confirmButton_1_3_1.setVisible(false);
				Color color =new Color(e.widget.getDisplay(),0,0,255);
				pleaseGiveNodeText_6.setBackground(color);
				pleaseGiveNodeText_6.setEditable(false);
			}
		});
		
		extendTheLeftButton_2_2.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				extendTheLeftButton_2_2.setVisible(false);
				pleaseGiveNodeText_7.setVisible(true);
				confirmButton_1_2_2.setVisible(true);
				
			}
		});
		
		extendTheLeftButton_3_2.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				extendTheLeftButton_3_2.setVisible(false);
				pleaseGiveNodeText_8.setVisible(true);
				confirmButton_1_2_2_1.setVisible(true);
				
			}
		});
		
		extendTheLeftButton_2_3_1.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				extendTheLeftButton_2_3_1.setVisible(false);
				pleaseGiveNodeText_10.setVisible(true);
				confirmButton_1_2_2_1_2.setVisible(true);
				
				
			}
		});
		
		extendTheLeftButton_2_3.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				extendTheLeftButton_2_3.setVisible(false);
				pleaseGiveNodeText_9.setVisible(true);
				confirmButton_1_2_2_1_1.setVisible(true);
			}
		});
		
		extendTheLeftButton_2_2_1.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				extendTheLeftButton_2_2_1.setVisible(false);
				pleaseGiveNodeText_11.setVisible(true);
				confirmButton_1_2_2_1_3.setVisible(true);
				
			}
		});
		
		extendTheLeftButton_3_2_1.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				extendTheLeftButton_3_2_1.setVisible(false);
				pleaseGiveNodeText_12.setVisible(true);
				confirmButton_1_2_2_1_4.setVisible(true);
				
			}
		});
		
		extendTheLeftButton_2_3_2.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				extendTheLeftButton_2_3_2.setVisible(false);
				pleaseGiveNodeText_13.setVisible(true);
				confirmButton_1_2_2_1_5.setVisible(true);
				
			}
		});
		
		extendTheLeftButton_2_3_1_1.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				extendTheLeftButton_2_3_1_1.setVisible(false);
				pleaseGiveNodeText_14.setVisible(true);
				confirmButton_1_2_2_1_6.setVisible(true);
				
			}
		});
		
		confirmButton_1_2_2_1.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				extendTheLeftButton_2_2_2_1.setVisible(true);
				extendTheLeftButton_3_2_2_1.setVisible(true);
				confirmButton_1_2_2_1.setVisible(false);
				Color color =new Color(e.widget.getDisplay(),0,0,255);
				pleaseGiveNodeText_8.setBackground(color);
				pleaseGiveNodeText_8.setEnabled(false);
				confirmButton_1_2_2_1.addSelectionListener(new SelectionAdapter() 
				{
					public void widgetSelected(SelectionEvent e)
					{		shell.addPaintListener(new PaintListener() {
						public void paintControl(PaintEvent e)
						{
							GC gc = e.gc;
							gc.drawLine(132, 138 ,173, 166);
						}
					});
						
					}
				});
				shell.redraw();
				if (pleaseGiveNodeText_8.getText()=="")
				{
					pleaseGiveNodeText_8.setText(Integer.toString(TrackingNum));
					TrackingNum++;
				}
				BT.insert(pleaseGiveNodeText_8.getText(), "00", true,pleaseGiveNodeText_8);
			}
		});
		
		confirmButton_1_2.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				extendTheLeftButton_2_2.setVisible(true);
				extendTheLeftButton_3_2.setVisible(true);
				confirmButton_1_2.setVisible(false);
				Color color =new Color(e.widget.getDisplay(),0,0,255);
				pleaseGiveNodeText_3.setBackground(color);
				//pleaseGiveNodeText_3.setEditable(false);
				pleaseGiveNodeText_3.setEnabled(false);
				confirmButton_1_2.addSelectionListener(new SelectionAdapter() 
				{
					public void widgetSelected(SelectionEvent e)
					{		shell.addPaintListener(new PaintListener() {
						public void paintControl(PaintEvent e)
						{
							GC gc = e.gc;
							gc.drawLine(202, 92 ,134, 116);
						}
					});
						
					}
				});
				shell.redraw();
				if (pleaseGiveNodeText_3.getText()=="")
				{
					pleaseGiveNodeText_3.setText(Integer.toString(TrackingNum));
					TrackingNum++;
				}
				BT.insert(pleaseGiveNodeText_3.getText(), "0", false,pleaseGiveNodeText_3);
				
			}
		});

		pleaseGiveNodeText_15 = new Text(shell, SWT.CENTER | SWT.BORDER);
		pleaseGiveNodeText_15.setBounds(20, 216, 36, 22);
		pleaseGiveNodeText_15.setVisible(false);

		final Button confirmButton_1_2_2_2 = new Button(shell, SWT.NONE);
		confirmButton_1_2_2_2.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				confirmButton_1_2_2_2.setVisible(false);
				Color color =new Color(e.widget.getDisplay(),0,0,255);
				pleaseGiveNodeText_15.setBackground(color);
				pleaseGiveNodeText_15.setEnabled(false);
				confirmButton_1_2_2_2.addSelectionListener(new SelectionAdapter() 
				{
					public void widgetSelected(SelectionEvent e)
					{		shell.addPaintListener(new PaintListener() {
						public void paintControl(PaintEvent e)
						{
							GC gc = e.gc;
							gc.drawLine(94, 188 ,38, 216);
						}
					});
						
					}
				});
				shell.redraw();
				if (pleaseGiveNodeText_15.getText()=="")
				{
					pleaseGiveNodeText_15.setText(Integer.toString(TrackingNum));
					TrackingNum++;
				}
				BT.insert(pleaseGiveNodeText_15.getText(), "000", false,pleaseGiveNodeText_15);
			}
		});
		confirmButton_1_2_2_2.setBounds(15, 240, 43, 22);
		confirmButton_1_2_2_2.setVisible(false);
		confirmButton_1_2_2_2.setText("Confirm");

		pleaseGiveNodeText_16 = new Text(shell, SWT.CENTER | SWT.BORDER);
		pleaseGiveNodeText_16.setBounds(116, 216, 36, 22);
		pleaseGiveNodeText_16.setVisible(false);

		final Button confirmButton_1_2_2_2_1 = new Button(shell, SWT.NONE);
		confirmButton_1_2_2_2_1.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				confirmButton_1_2_2_2_1.setVisible(false);
				Color color =new Color(e.widget.getDisplay(),0,0,255);
				pleaseGiveNodeText_26.setBackground(color);
				pleaseGiveNodeText_26.setEnabled(false);
				confirmButton_1_2_2_2_1.addSelectionListener(new SelectionAdapter() 
				{
					public void widgetSelected(SelectionEvent e)
					{		shell.addPaintListener(new PaintListener() {
						public void paintControl(PaintEvent e)
						{
							GC gc = e.gc;
							gc.drawLine(94, 188 ,86, 216);
						}
					});
						
					}
				});
				shell.redraw();
				if (pleaseGiveNodeText_26.getText()=="")
				{
					pleaseGiveNodeText_26.setText(Integer.toString(TrackingNum));
					TrackingNum++;
				}
				BT.insert(pleaseGiveNodeText_26.getText(), "000", true,pleaseGiveNodeText_26);
			}
		});
		confirmButton_1_2_2_2_1.setBounds(65, 240, 43, 22);
		confirmButton_1_2_2_2_1.setVisible(false);
		confirmButton_1_2_2_2_1.setText("Confirm");

		pleaseGiveNodeText_17 = new Text(shell, SWT.CENTER | SWT.BORDER);
		pleaseGiveNodeText_17.setBounds(212, 216, 36, 22);
		pleaseGiveNodeText_17.setVisible(false);

		final Button confirmButton_1_2_2_2_2 = new Button(shell, SWT.NONE);
		confirmButton_1_2_2_2_2.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				confirmButton_1_2_2_2_2.setVisible(false);
				Color color =new Color(e.widget.getDisplay(),0,0,255);
				pleaseGiveNodeText_16.setBackground(color);
				pleaseGiveNodeText_16.setEnabled(false);
				confirmButton_1_2_2_2_2.addSelectionListener(new SelectionAdapter() 
				{
					public void widgetSelected(SelectionEvent e)
					{		shell.addPaintListener(new PaintListener() {
						public void paintControl(PaintEvent e)
						{
							GC gc = e.gc;
							gc.drawLine(173, 188 ,134, 216);
						}
					});
						
					}
				});
				shell.redraw();
				if (pleaseGiveNodeText_16.getText()=="")
				{
					pleaseGiveNodeText_16.setText(Integer.toString(TrackingNum));
					TrackingNum++;
				}
				BT.insert(pleaseGiveNodeText_16.getText(), "001", false,pleaseGiveNodeText_16);
			}
		});
		confirmButton_1_2_2_2_2.setBounds(114, 240, 43, 22);
		confirmButton_1_2_2_2_2.setVisible(false);
		confirmButton_1_2_2_2_2.setText("Confirm");

		pleaseGiveNodeText_18 = new Text(shell, SWT.CENTER | SWT.BORDER);
		pleaseGiveNodeText_18.setBounds(308, 216, 36, 22);
		pleaseGiveNodeText_18.setVisible(false);

		final Button confirmButton_1_2_2_2_3 = new Button(shell, SWT.NONE);
		confirmButton_1_2_2_2_3.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				confirmButton_1_2_2_2_3.setVisible(false);
				Color color =new Color(e.widget.getDisplay(),0,0,255);
				pleaseGiveNodeText_28.setBackground(color);
				pleaseGiveNodeText_28.setEnabled(false);
				confirmButton_1_2_2_2_3.addSelectionListener(new SelectionAdapter() 
				{
					public void widgetSelected(SelectionEvent e)
					{		shell.addPaintListener(new PaintListener() {
						public void paintControl(PaintEvent e)
						{
							GC gc = e.gc;
							gc.drawLine(173, 188 ,182, 216);
						}
					});
						
					}
				});
				shell.redraw();
				if (pleaseGiveNodeText_28.getText()=="")
				{
					pleaseGiveNodeText_28.setText(Integer.toString(TrackingNum));
					TrackingNum++;
				}
				BT.insert(pleaseGiveNodeText_28.getText(), "001", true,pleaseGiveNodeText_28);
			}
		});
		confirmButton_1_2_2_2_3.setBounds(160, 240, 43, 22);
		confirmButton_1_2_2_2_3.setVisible(false);
		confirmButton_1_2_2_2_3.setText("Confirm");

		pleaseGiveNodeText_19 = new Text(shell, SWT.CENTER | SWT.BORDER);
		pleaseGiveNodeText_19.setBounds(356, 216, 36, 22);
		pleaseGiveNodeText_19.setVisible(false);

		final Button confirmButton_1_2_2_2_3_1 = new Button(shell, SWT.NONE);
		confirmButton_1_2_2_2_3_1.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				confirmButton_1_2_2_2_3_1.setVisible(false);
				Color color =new Color(e.widget.getDisplay(),0,0,255);
				pleaseGiveNodeText_17.setBackground(color);
				pleaseGiveNodeText_17.setEnabled(false);
				confirmButton_1_2_2_2_3_1.addSelectionListener(new SelectionAdapter() 
				{
					public void widgetSelected(SelectionEvent e)
					{		shell.addPaintListener(new PaintListener() {
						public void paintControl(PaintEvent e)
						{
							GC gc = e.gc;
							gc.drawLine(253, 188 ,230, 216);
						}
					});
						
					}
				});
				shell.redraw();
				if (pleaseGiveNodeText_17.getText()=="")
				{
					pleaseGiveNodeText_17.setText(Integer.toString(TrackingNum));
					TrackingNum++;
				}
				BT.insert(pleaseGiveNodeText_17.getText(), "010", false,pleaseGiveNodeText_17);
			}
		});
		confirmButton_1_2_2_2_3_1.setBounds(209, 240, 43, 22);
		confirmButton_1_2_2_2_3_1.setVisible(false);
		confirmButton_1_2_2_2_3_1.setText("Confirm");

		pleaseGiveNodeText_20 = new Text(shell, SWT.CENTER | SWT.BORDER);
		pleaseGiveNodeText_20.setBounds(452, 216, 36, 22);
		pleaseGiveNodeText_20.setVisible(false);
		pleaseGiveNodeText_29 = new Text(shell, SWT.CENTER | SWT.BORDER);
		pleaseGiveNodeText_29.setBounds(260, 216, 36, 22);
		pleaseGiveNodeText_29.setVisible(false);
		final Button confirmButton_1_2_2_2_3_2 = new Button(shell, SWT.NONE);
		confirmButton_1_2_2_2_3_2.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				confirmButton_1_2_2_2_3_2.setVisible(false);
				Color color =new Color(e.widget.getDisplay(),0,0,255);
				pleaseGiveNodeText_29.setBackground(color);
				pleaseGiveNodeText_29.setEnabled(false);
				confirmButton_1_2_2_2_3_2.addSelectionListener(new SelectionAdapter() 
				{
					public void widgetSelected(SelectionEvent e)
					{		shell.addPaintListener(new PaintListener() {
						public void paintControl(PaintEvent e)
						{
							GC gc = e.gc;
							gc.drawLine(253, 188 ,278, 216);
						}
					});
						
					}
				});
				shell.redraw();
				if (pleaseGiveNodeText_29.getText()=="")
				{
					pleaseGiveNodeText_29.setText(Integer.toString(TrackingNum));
					TrackingNum++;
				}
				BT.insert(pleaseGiveNodeText_29.getText(), "010", true,pleaseGiveNodeText_29);
			}
		});
		confirmButton_1_2_2_2_3_2.setBounds(257, 240, 43, 22);
		confirmButton_1_2_2_2_3_2.setVisible(false);
		confirmButton_1_2_2_2_3_2.setText("Confirm");

		pleaseGiveNodeText_21 = new Text(shell, SWT.CENTER | SWT.BORDER);
		pleaseGiveNodeText_21.setBounds(500, 216, 36, 22);
		pleaseGiveNodeText_21.setVisible(false);

		final Button confirmButton_1_2_2_2_3_3 = new Button(shell, SWT.NONE);
		confirmButton_1_2_2_2_3_3.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				confirmButton_1_2_2_2_3_3.setVisible(false);
				Color color =new Color(e.widget.getDisplay(),0,0,255);
				pleaseGiveNodeText_18.setBackground(color);
				pleaseGiveNodeText_18.setEnabled(false);
				confirmButton_1_2_2_2_3_3.addSelectionListener(new SelectionAdapter() 

⌨️ 快捷键说明

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