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

📄 小生杂谈--java中mdi的实现.htm

📁 行业分类数据库管理系统
💻 HTM
📖 第 1 页 / 共 5 页
字号:
                  style="COLOR: #000000">0</SPAN><SPAN 
                  style="COLOR: #000000">;&nbsp;i&nbsp;</SPAN><SPAN 
                  style="COLOR: #000000">&lt;</SPAN><SPAN 
                  style="COLOR: #000000">&nbsp;array.length;&nbsp;i</SPAN><SPAN 
                  style="COLOR: #000000">++</SPAN><SPAN 
                  style="COLOR: #000000">)<BR><A 
                  href="小生杂谈--Java中MDI的实现.files/None.gif" target=_blank><IMG 
                  onmousewheel="return bbimg(this)" title=点击在新窗口查看原始图片 
                  src="小生杂谈--Java中MDI的实现.files/None.gif" 
                  onload="java_script_:if(this.width>500)this.width=500" 
                  align=top 
                  border=0></A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR><A 
                  href="小生杂谈--Java中MDI的实现.files/None.gif" target=_blank><IMG 
                  onmousewheel="return bbimg(this)" title=点击在新窗口查看原始图片 
                  src="小生杂谈--Java中MDI的实现.files/None.gif" 
                  onload="java_script_:if(this.width>500)this.width=500" 
                  align=top 
                  border=0></A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
                  style="COLOR: #0000ff">if</SPAN><SPAN 
                  style="COLOR: #000000">&nbsp;(&nbsp;array[&nbsp;i&nbsp;].isVisible()&nbsp;)<BR><A 
                  href="小生杂谈--Java中MDI的实现.files/None.gif" target=_blank><IMG 
                  onmousewheel="return bbimg(this)" title=点击在新窗口查看原始图片 
                  src="小生杂谈--Java中MDI的实现.files/None.gif" 
                  onload="java_script_:if(this.width>500)this.width=500" 
                  align=top 
                  border=0></A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR><A 
                  href="小生杂谈--Java中MDI的实现.files/None.gif" target=_blank><IMG 
                  onmousewheel="return bbimg(this)" title=点击在新窗口查看原始图片 
                  src="小生杂谈--Java中MDI的实现.files/None.gif" 
                  onload="java_script_:if(this.width>500)this.width=500" 
                  align=top 
                  border=0></A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
                  style="COLOR: #0000ff">int</SPAN><SPAN 
                  style="COLOR: #000000">&nbsp;cx;<BR><A 
                  href="小生杂谈--Java中MDI的实现.files/None.gif" target=_blank><IMG 
                  onmousewheel="return bbimg(this)" title=点击在新窗口查看原始图片 
                  src="小生杂谈--Java中MDI的实现.files/None.gif" 
                  onload="java_script_:if(this.width>500)this.width=500" 
                  align=top 
                  border=0></A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cx&nbsp;</SPAN><SPAN 
                  style="COLOR: #000000">=</SPAN><SPAN 
                  style="COLOR: #000000">&nbsp;array[i].getX();<BR><A 
                  href="小生杂谈--Java中MDI的实现.files/None.gif" target=_blank><IMG 
                  onmousewheel="return bbimg(this)" title=点击在新窗口查看原始图片 
                  src="小生杂谈--Java中MDI的实现.files/None.gif" 
                  onload="java_script_:if(this.width>500)this.width=500" 
                  align=top 
                  border=0></A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
                  style="COLOR: #0000ff">int</SPAN><SPAN 
                  style="COLOR: #000000">&nbsp;x&nbsp;</SPAN><SPAN 
                  style="COLOR: #000000">=</SPAN><SPAN 
                  style="COLOR: #000000">&nbsp;cx&nbsp;</SPAN><SPAN 
                  style="COLOR: #000000">+</SPAN><SPAN 
                  style="COLOR: #000000">&nbsp;array[i].getWidth();<BR><A 
                  href="小生杂谈--Java中MDI的实现.files/None.gif" target=_blank><IMG 
                  onmousewheel="return bbimg(this)" title=点击在新窗口查看原始图片 
                  src="小生杂谈--Java中MDI的实现.files/None.gif" 
                  onload="java_script_:if(this.width>500)this.width=500" 
                  align=top 
                  border=0></A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
                  style="COLOR: #0000ff">if</SPAN><SPAN 
                  style="COLOR: #000000">&nbsp;(x&nbsp;</SPAN><SPAN 
                  style="COLOR: #000000">&gt;</SPAN><SPAN 
                  style="COLOR: #000000">&nbsp;maxX)&nbsp;maxX&nbsp;</SPAN><SPAN 
                  style="COLOR: #000000">=</SPAN><SPAN 
                  style="COLOR: #000000">&nbsp;x;<BR><A 
                  href="小生杂谈--Java中MDI的实现.files/None.gif" target=_blank><IMG 
                  onmousewheel="return bbimg(this)" title=点击在新窗口查看原始图片 
                  src="小生杂谈--Java中MDI的实现.files/None.gif" 
                  onload="java_script_:if(this.width>500)this.width=500" 
                  align=top 
                  border=0></A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
                  style="COLOR: #0000ff">int</SPAN><SPAN 
                  style="COLOR: #000000">&nbsp;cy;<BR><A 
                  href="小生杂谈--Java中MDI的实现.files/None.gif" target=_blank><IMG 
                  onmousewheel="return bbimg(this)" title=点击在新窗口查看原始图片 
                  src="小生杂谈--Java中MDI的实现.files/None.gif" 
                  onload="java_script_:if(this.width>500)this.width=500" 
                  align=top 
                  border=0></A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cy&nbsp;</SPAN><SPAN 
                  style="COLOR: #000000">=</SPAN><SPAN 
                  style="COLOR: #000000">&nbsp;array[i].getY();<BR><A 
                  href="小生杂谈--Java中MDI的实现.files/None.gif" target=_blank><IMG 
                  onmousewheel="return bbimg(this)" title=点击在新窗口查看原始图片 
                  src="小生杂谈--Java中MDI的实现.files/None.gif" 
                  onload="java_script_:if(this.width>500)this.width=500" 
                  align=top 
                  border=0></A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
                  style="COLOR: #0000ff">int</SPAN><SPAN 
                  style="COLOR: #000000">&nbsp;y&nbsp;</SPAN><SPAN 
                  style="COLOR: #000000">=</SPAN><SPAN 
                  style="COLOR: #000000">&nbsp;cy&nbsp;</SPAN><SPAN 
                  style="COLOR: #000000">+</SPAN><SPAN 
                  style="COLOR: #000000">&nbsp;array[i].getHeight();<BR><A 
                  href="小生杂谈--Java中MDI的实现.files/None.gif" target=_blank><IMG 
                  onmousewheel="return bbimg(this)" title=点击在新窗口查看原始图片 
                  src="小生杂谈--Java中MDI的实现.files/None.gif" 
                  onload="java_script_:if(this.width>500)this.width=500" 
                  align=top 
                  border=0></A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
                  style="COLOR: #0000ff">if</SPAN><SPAN 
                  style="COLOR: #000000">&nbsp;(y&nbsp;</SPAN><SPAN 
                  style="COLOR: #000000">&gt;</SPAN><SPAN 
                  style="COLOR: #000000">&nbsp;maxY)&nbsp;maxY&nbsp;</SPAN><SPAN 
                  style="COLOR: #000000">=</SPAN><SPAN 
                  style="COLOR: #000000">&nbsp;y;<BR><A 
                  href="小生杂谈--Java中MDI的实现.files/None.gif" target=_blank><IMG 
                  onmousewheel="return bbimg(this)" title=点击在新窗口查看原始图片 
                  src="小生杂谈--Java中MDI的实现.files/None.gif" 
                  onload="java_script_:if(this.width>500)this.width=500" 
                  align=top 
                  border=0></A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR><A 
                  href="小生杂谈--Java中MDI的实现.files/None.gif" target=_blank><IMG 
                  onmousewheel="return bbimg(this)" title=点击在新窗口查看原始图片 
                  src="小生杂谈--Java中MDI的实现.files/None.gif" 
                  onload="java_script_:if(this.width>500)this.width=500" 
                  align=top 
                  border=0></A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR><A 
                  href="小生杂谈--Java中MDI的实现.files/None.gif" target=_blank><IMG 
                  onmousewheel="return bbimg(this)" title=点击在新窗口查看原始图片 
                  src="小生杂谈--Java中MDI的实现.files/None.gif" 
                  onload="java_script_:if(this.width>500)this.width=500" 
                  align=top 
                  border=0></A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
                  style="COLOR: #0000ff">return</SPAN><SPAN 
                  style="COLOR: #000000">&nbsp;</SPAN><SPAN 
                  style="COLOR: #0000ff">new</SPAN><SPAN 
                  style="COLOR: #000000">&nbsp;Dimension(maxX,&nbsp;maxY);<BR><A 
                  href="小生杂谈--Java中MDI的实现.files/None.gif" target=_blank><IMG 
                  onmousewheel="return bbimg(this)" title=点击在新窗口查看原始图片 
                  src="小生杂谈--Java中MDI的实现.files/None.gif" 
                  onload="java_script_:if(this.width>500)this.width=500" 
                  align=top border=0></A>&nbsp;&nbsp;&nbsp;&nbsp;}<BR><A 
                  href="小生杂谈--Java中MDI的实现.files/None.gif" target=_blank><IMG 
                  onmousewheel="return bbimg(this)" title=点击在新窗口查看原始图片 
                  src="小生杂谈--Java中MDI的实现.files/None.gif" 
                  onload="java_script_:if(this.width>500)this.width=500" 
                  align=top border=0></A>}<BR><A 
                  href="小生杂谈--Java中MDI的实现.files/None.gif" target=_blank><IMG 
                  onmousewheel="return bbimg(this)" title=点击在新窗口查看原始图片 
                  src="小生杂谈--Java中MDI的实现.files/None.gif" 
                  onload="java_script_:if(this.width>500)this.width=500" 
                  align=top 
                  border=0></A></SPAN></DIV></DIV>(这是一位网友陈先波的代码)<BR><BR>  然后可以往里加入子窗口JInternalFrame了:<BR>
                  <DIV 
                  style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
                  <DIV><A href="小生杂谈--Java中MDI的实现.files/None.gif" 
                  target=_blank><IMG onmousewheel="return bbimg(this)" 
                  title=点击在新窗口查看原始图片 src="小生杂谈--Java中MDI的实现.files/None.gif" 
                  onload="java_script_:if(this.width>500)this.width=500" 
                  align=top border=0></A><SPAN 
                  style="COLOR: #000000">JInternalFrame&nbsp;frame&nbsp;</SPAN><SPAN 
                  style="COLOR: #000000">=</SPAN><SPAN 
                  style="COLOR: #000000">&nbsp;</SPAN><SPAN 
                  style="COLOR: #0000ff">new</SPAN><SPAN 
                  style="COLOR: #000000">&nbsp;</SPAN><SPAN 
                  style="COLOR: #000000">??</SPAN><SPAN 
                  style="COLOR: #000000">();<BR><A 
                  href="小生杂谈--Java中MDI的实现.files/None.gif" target=_blank><IMG 
                  onmousewheel="return bbimg(this)" title=点击在新窗口查看原始图片 
                  src="小生杂谈--Java中MDI的实现.files/None.gif" 
                  onload="java_script_:if(this.width>500)this.width=500" 
                  align=top border=0></A>desktop.add(frame);<BR><A 
                  href="小生杂谈--Java中MDI的实现.files/None.gif" target=_blank><IMG 
                  onmousewheel="return bbimg(this)" title=点击在新窗口查看原始图片 
                  src="小生杂谈--Java中MDI的实现.files/None.gif" 
                  onload="java_script_:if(this.width>500)this.width=500" 
                  align=top border=0></A></SPAN><SPAN 
                  style="COLOR: #0000ff">try</SPAN><SPAN 
                  style="COLOR: #000000">{<BR><A 
                  href="小生杂谈--Java中MDI的实现.files/None.gif" target=_blank><IMG 
                  onmousewheel="return bbimg(this)" title=点击在新窗口查看原始图片 
                  src="小生杂谈--Java中MDI的实现.files/None.gif" 
                  onload="java_script_:if(this.width>500)this.width=500" 
                  align=top border=0></A>frame.setVisible(</SPAN><SPAN 
                  style="COLOR: #0000ff">true</SPAN><SPAN 
                  style="COLOR: #000000">);<BR><A 
                  href="小生杂谈--Java中MDI的实现.files/None.gif" target=_blank><IMG 
                  onmousewheel="return bbimg(this)" title=点击在新窗口查看原始图片 
                  src="小生杂谈--Java中MDI的实现.files/None.gif" 
                  onload="java_script_:if(this.width>500)this.width=500" 
                  align=top border=0></A>frame.setSelected(</SPAN><SPAN 
                  style="COLOR: #0000ff">true</SPAN><SPAN 
                  style="COLOR: #000000">);<BR><A 
                  href="小生杂谈--Java中MDI的实现.files/None.gif" target=_blank><IMG 
                  onmousewheel="return bbimg(this)" title=点击在新窗口查看原始图片 
                  src="小生杂谈--Java中MDI的实现.files/None.gif" 
                  onload="java_script_:if(this.width>500)this.width=500" 
                  align=top border=0></A>}</SPAN><SPAN 
                  style="COLOR: #0000ff">catch</SPAN><SPAN 
                  style="COLOR: #000000">(java.beans.PropertyVetoException&nbsp;ex){}<BR><A 
                  href="小生杂谈--Java中MDI的实现.files/None.gif" target=_blank><IMG 
                  onmousewheel="return bbimg(this)" title=点击在新窗口查看原始图片 

⌨️ 快捷键说明

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