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

📄 jb4-1-13.htm

📁 这是一个JAVA的教学课件,详细的讲解了JAVA的内容
💻 HTM
📖 第 1 页 / 共 4 页
字号:

<p class="MsoNormal"><span lang="EN-US"><span style="mso-tab-count:1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>10</span><span  
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">、从</span><span lang="EN-US">dbSwing</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">标签页中添加</span><span lang="EN-US">DBDisposeMonitor</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">组件。当窗体关闭时,</span><span lang="EN-US">DBDisposeMonitor</span><span
style="font-family:宋体;mso-ascii-font-family:
&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">组件将关闭</span><span lang="EN-US">JdataStore</span><span
style="font-family:宋体;mso-ascii-font-family:
&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">。</span></p>

<p class="MsoNormal" style="margin-left:21.0pt"><span lang="EN-US">11</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">、为</span><span lang="EN-US">DBDisposeMonitor</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">设置</span><span lang="EN-US">dataAwareComponentContainer</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">属性。</span></p>

<p class="MsoNormal"><span lang="EN-US">&nbsp;</span><span style="mso-tab-count:1" lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">为了能在应用程序中浏览数据,要按如下步骤添加用户界面组件并同</span><span
lang="EN-US">DataSet</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">组件绑定在一起:</span><span style="mso-tab-count:1" lang="EN-US">&nbsp;&nbsp;&nbsp;</span></p>

<p class="MsoNormal" style="margin-left:60.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo3;
tab-stops:list 60.0pt"><span lang="EN-US">1、<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp; </span></span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">在组件树中选择</span><span lang="EN-US">contentPane</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">(</span><span lang="EN-US">BorderLayout</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">)并设置</span><span lang="EN-US">layout</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">属性项为</span><span lang="EN-US">null</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">(空)。</span></p>

<p class="MsoNormal" style="margin-left:60.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo3;
tab-stops:list 60.0pt"><span lang="EN-US">2、<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp; </span></span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">放置一个</span><span lang="EN-US">JdbNavToolBar</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">组件到用户界面设计器中</span><span lang="EN-US">panel</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">(画板)的顶部。</span><span lang="EN-US">JdbNavToolBar1</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">(译者注:默认组件名)就自动粘贴在获得当前焦点的那个</span><span
lang="EN-US">DataSet</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">组件上。所以你不必设置它的</span><span lang="EN-US">DataSet</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">属性。</span></p>

<p class="MsoNormal" style="margin-left:60.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo3;
tab-stops:list 60.0pt"><span lang="EN-US">3、<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp; </span></span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">放置一个</span><span lang="EN-US">JdbStatusLabel</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">组件到用户界面设计器的底部,</span><span lang="EN-US">JdbStatusLabel1</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">(译者注:默认组件名)就自动粘贴在获得当前焦点的那个</span><span
lang="EN-US">DataSet</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">上。所以你不必设置它的</span><span lang="EN-US">DataSet</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">属性。</span></p>

<p class="MsoNormal" style="margin-left:60.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo3;
tab-stops:list 60.0pt"><span lang="EN-US">4、<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp; </span></span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">将</span><span lang="EN-US">dbSwing</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">标签页的</span><span lang="EN-US">TableScrollPane</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">组件添加到用户界面设计器中。</span></p>

<p class="MsoNormal" style="margin-left:60.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo3;
tab-stops:list 60.0pt"><span lang="EN-US">5、<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp; </span></span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">将</span><span lang="EN-US">JdbTable</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">组件放置到</span><span lang="EN-US">tableScrollPane1</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">(译者注:默认组件名)的中央,并设其</span><span lang="EN-US">dataSet</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">属性为</span><span lang="EN-US">queryDataSet1</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">。</span></p>

<p class="MsoNormal" style="margin-left:60.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo3;
tab-stops:list 60.0pt"><span lang="EN-US">6、<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp; </span></span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">选择菜单项</span><span lang="EN-US">Run | Run Project</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">运行应用程序、浏览数据。</span></p>

<p class="MsoNormal"><span lang="EN-US">&nbsp;</span><span
style="font-family:宋体;
mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">表</span><span lang="EN-US">EMPLOYEE</span><span
style="font-family:宋体;mso-ascii-font-family:
&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">的数据集包含</span><span lang="EN-US">42</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">条记录和</span><span lang="EN-US">11</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">个字段。在这个应用程序的状态标签一栏中可见到记录数量的显示。首次运行应用程序时,该状态标签显示</span><span
lang="EN-US"> “Record 1 of 42”</span><span
style="font-family:宋体;mso-ascii-font-family:
&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">。一些教程有从视图中移除行的操作,而状态标签就会显示返回到每一个应用程序的数据集的行数。</span></p>

<p class="MsoNormal"><span style="mso-tab-count:1" lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">欲获得更多的信息,参见</span><span lang="EN-US">Retrieving data from a data source</span><span
style="font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">(从数据源返回数据)一章。</span><span lang="EN-US"> <span
style="mso-tab-count:1">&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span
style="font-family:宋体;
mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">应用程序运行图例如下:</span><img
border="0" src="app_query.gif" width="400" height="300"></p>

<p class="MsoNormal" style="margin-left:21.0pt"><span lang="EN-US">&nbsp;<o:p>
</o:p>
</span></p>

<p class="MsoNormal"><span lang="EN-US">&nbsp;<o:p>
</o:p>
</span></p>

<p> </p>

 
		 
	

</BODY>
</HTML>

⌨️ 快捷键说明

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