gift

所属分类Java编程
开发工具:Java
文件大小:807KB
下载次数:361
上传日期:2003-09-24 22:45:59
上 传 者管理员
说明:  4个swing界面程序,一个小的通讯录,其中有详细的文档描述
(-Four swing interface programs, a small address book, and detail documents are provided)

文件列表:
gift (0, 2003-05-26)
gift\LookAndFeel (0, 2003-05-26)
gift\LookAndFeel\LookAndFeel.jpx (2127, 2001-09-14)
gift\LookAndFeel\LookAndFeel.jpx.local (1301, 2001-09-14)
gift\LookAndFeel\LookAndFeel.jpx.local~ (829, 2001-09-14)
gift\LookAndFeel\LookAndFeel.jpx~ (1169, 2001-09-14)
gift\LookAndFeel\MyTheme.theme (438, 2001-05-06)
gift\LookAndFeel\run.bat (25, 2001-09-14)
gift\LookAndFeel\runcmd.bat (5, 2001-09-14)
gift\LookAndFeel\lookfeel.jpg (17483, 2003-01-15)
gift\LookAndFeel\LookAndFeel.html (724, 2003-01-15)
gift\LookAndFeel\src (0, 2003-05-26)
gift\LookAndFeel\src\lookandfeel (0, 2003-05-26)
gift\LookAndFeel\src\lookandfeel\Application1.java (1273, 2001-09-14)
gift\LookAndFeel\src\lookandfeel\AquaMetalTheme.java (821, 2001-09-14)
gift\LookAndFeel\src\lookandfeel\AquaMetalTheme.java.bak (2415, 2001-09-12)
gift\LookAndFeel\src\lookandfeel\BigContrastMetalTheme.java (2469, 2001-09-14)
gift\LookAndFeel\src\lookandfeel\BigContrastMetalTheme.java.bak (4070, 2001-09-12)
gift\LookAndFeel\src\lookandfeel\ContrastMetalTheme.java (2885, 2001-09-14)
gift\LookAndFeel\src\lookandfeel\ContrastMetalTheme.java.bak (4484, 2001-09-12)
gift\LookAndFeel\src\lookandfeel\DemoMetalTheme.java (1973, 2001-09-14)
gift\LookAndFeel\src\lookandfeel\DemoMetalTheme.java.bak (3567, 2001-09-12)
gift\LookAndFeel\src\lookandfeel\Frame1.java (7922, 2001-09-14)
gift\LookAndFeel\src\lookandfeel\Frame1_AboutBox.java (5076, 2001-09-14)
gift\LookAndFeel\src\lookandfeel\GreenMetalTheme.java (844, 2001-09-14)
gift\LookAndFeel\src\lookandfeel\GreenMetalTheme.java.bak (2439, 2001-09-12)
gift\LookAndFeel\src\lookandfeel\KhakiMetalTheme.java (1282, 2001-09-14)
gift\LookAndFeel\src\lookandfeel\KhakiMetalTheme.java.bak (2877, 2001-09-12)
gift\LookAndFeel\src\lookandfeel\MyTheme.theme (438, 2001-05-06)
gift\LookAndFeel\src\lookandfeel\PropertiesMetalTheme.java (4473, 2001-09-14)
gift\LookAndFeel\src\lookandfeel\PropertiesMetalTheme.java.bak (6073, 2001-09-12)
gift\HtmlDemo (0, 2003-05-26)
gift\HtmlDemo\HtmlDemo.jpx (1794, 2001-10-08)
gift\HtmlDemo\HtmlDemo.jpx.local~ (1006, 2001-10-08)
gift\HtmlDemo\HtmlDemo.jpx~ (1166, 2001-10-07)
gift\HtmlDemo\run.bat (22, 2001-10-08)
gift\HtmlDemo\html.jpg (33900, 2002-12-13)
gift\HtmlDemo\HtmlDemo.html (780, 2002-12-13)
... ...

此程序要注意使用JEditorPane类它可用其构造函数来指定URL,从而实现浏览器的功能。 此外一定要注意Images所在的位置,以及必需调用JEditorPane类中的setEditable()方法,否则不能实现功能。 还要注意 void jedtrpnHtml_hyperlinkUpdate(HyperlinkEvent e) { if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) { if (e instanceof HTMLFrameHyperlinkEvent) { ((HTMLDocument)jedtrpnHtml.getDocument()).processHTMLFrameHyperlinkEvent( (HTMLFrameHyperlinkEvent)e); } else { try { jedtrpnHtml.setPage(e.getURL()); } catch (IOException ioe) { System.out.println("IOE: " + ioe); } } } }

近期下载者

相关文件

评论我要评论

收藏者