博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年8月7日

摘要: import javax.swing.*;import java.awt.BorderLayout;import java.awt.event.*;public class JComponentDemo extends JFrame{ JComponentDemo(){ setTitle("JComponentDemo Test"); setSize(500,50... 阅读全文

posted @ 2012-08-07 18:03 紫冰龙 阅读(204) 评论(0) 推荐(0) 编辑

摘要: import javax.swing.*;import java.awt.BorderLayout;import java.awt.Color;import java.awt.Dimension;import java.awt.Graphics;import java.awt.event.*;public class MouseMoveDemo extends JPanel implements ... 阅读全文

posted @ 2012-08-07 17:44 紫冰龙 阅读(195) 评论(0) 推荐(0) 编辑

2012年8月3日

摘要: import java.awt.Dimension;import java.awt.GridBagConstraints;import java.awt.GridBagLayout;import java.awt.GridLayout;import java.awt.Insets;import javax.swing.*;public class Layout2 { /** *... 阅读全文

posted @ 2012-08-03 00:08 紫冰龙 阅读(360) 评论(0) 推荐(0) 编辑

2012年8月2日

摘要: import java.awt.BorderLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.*;public class DictDemo { public static void main(String[] args) { new ... 阅读全文

posted @ 2012-08-02 18:04 紫冰龙 阅读(151) 评论(0) 推荐(0) 编辑

2012年8月1日

摘要: import java.awt.BorderLayout;import java.awt.Dimension;import java.awt.GridLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.*;public class GridLayoutDem... 阅读全文

posted @ 2012-08-01 16:28 紫冰龙 阅读(189) 评论(0) 推荐(0) 编辑

2012年7月31日

摘要: import java.awt.BorderLayout;import java.awt.CardLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.*;class MyPanel extends JPanel { MyPanel(int n) { add(new JLabel(" "+n+" ")); }}class MainFrame extends JFrame implements ActionListe. 阅读全文

posted @ 2012-07-31 14:36 紫冰龙 阅读(165) 评论(0) 推荐(0) 编辑

摘要: //找出两个字符串中最长的相同子字符串public class Stringdemo { public static void main(String[] args) { String str1 = new String("eeabcde"); String str2 = new String("bcdefabcabcdedegg"); by... 阅读全文

posted @ 2012-07-31 12:22 紫冰龙 阅读(2079) 评论(0) 推荐(0) 编辑

2012年7月27日

摘要: --载入图片到数据库declare alob blob; afile bfile; amount int; src_offset int := 1; dest_offset int := 1;begin select photo into alob from photo_tab for update; afile :... 阅读全文

posted @ 2012-07-27 18:05 紫冰龙 阅读(152) 评论(0) 推荐(0) 编辑

摘要: --载入图片到数据库declare alob blob; afile bfile; amount int; src_offset int := 1; dest_offset int := 1;begin select photo into alob from photo_tab for update; afile :... 阅读全文

posted @ 2012-07-27 17:17 紫冰龙 阅读(151) 评论(0) 推荐(0) 编辑

摘要: 可以把所选内容中的硬回车替换为软回车 Sub 替换手动换行符成回车符()With Selection.Find.Text = "^p";.Replacement.Text = "^l";.Forward = False.Wrap = wdFindStop.Format = True.MatchCase = False.MatchWholeWord = False.MatchByte = False... 阅读全文

posted @ 2012-07-27 15:53 紫冰龙 阅读(448) 评论(0) 推荐(0) 编辑