随笔 - 630  文章 - 7 评论 - 47 阅读 - 49万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

11 2011 档案
Reliable Multicast Pipes project Source Code
摘要:/Files/cuizhf/rmp.zip 阅读全文
posted @ 2011-11-30 22:56 网络大豆 阅读(208) 评论(0) 推荐(0) 编辑
About JXTA message reliable design
摘要:http://www.java.net/node/684200———————————————————————————————————————————————————————————— About JXTA message reliable design September 24, 2008 - 21:29 mk926 ... 阅读全文
posted @ 2011-11-30 22:45 网络大豆 阅读(163) 评论(0) 推荐(0) 编辑
Ubuntu下Firefox打开mht格式文件
摘要:http://ironurbane.iteye.com/blog/348796————————————————————————————————————————————————————————————————————原来在windows下上网的时候,有把好的网页保存成.mht格式文件的习惯。但是在 ubuntu系统,默认的Firefox浏览器不能打开.mht格式的文件,所以这时候就需要一个 Firefox的插件(UnMHT for Firefox)。 插件地址: http://www.unmht.org/unmht/en_previous.html 当我选择 Ver.5.2.0 unmht-5. 阅读全文
posted @ 2011-11-29 13:00 网络大豆 阅读(942) 评论(0) 推荐(0) 编辑
一个单独的UDP数据包能够放入数据的最大长度是65508
摘要:如题,所以声明65535的字节数组是浪费的 另外这个网站有好多java的教程http://tutorials.jenkov.com/ 阅读全文
posted @ 2011-11-28 16:39 网络大豆 阅读(326) 评论(0) 推荐(0) 编辑
org.jdesktop.swingx.JXCollapsiblePane要在构造函数中设置方向
摘要:发现JXCollapsiblePane如果不再构造函数中设置方向JXCollapsiblePane.Direction.RIGHT的话,会导致其无法Collapse。如下:JXCollapsiblePane cp = new org.jdesktop.swingx.JXCollapsiblePane(JXCollapsiblePane.Direction.RIGHT); 阅读全文
posted @ 2011-11-19 09:08 网络大豆 阅读(480) 评论(0) 推荐(0) 编辑
关于Java中GridBagLayout布局管理器的用法
摘要:http://sword03.blog.sohu.com/26246269.html————————————————————————————————————————————————————关于Java中GridBagLayout布局管理器的用法。 最近要写一个界面,我却发现一般的布局管理器都不那么好用。上网百度了一下,有人推荐GridBagLayout,却有很多人说GridBagLayout不好用,看不懂。 于是我仔细查了一下java API,感觉掌握GridBagLayout最简单的用法还是蛮简单的,也是很有必要的。因为个人不喜欢绝对定位,而使用相对定位的话就必须用到GridBagLayo. 阅读全文
posted @ 2011-11-18 22:30 网络大豆 阅读(719) 评论(0) 推荐(0) 编辑
发现一个新的基于jxta的应用ConneX
摘要:Project Information About this project: This is... 阅读全文
posted @ 2011-11-17 16:33 网络大豆 阅读(342) 评论(0) 推荐(0) 编辑
vujxdp项目源代码(UDP via Jxta (not Jxta over UDP))
摘要:vUjxDP: UDP via Jxta (not Jxta over UDP) Introduction It all started because one day I wanted to send video and voice over Jxta for a chat application. My model using the Java Media Framework (JMF) was easy to develop. JMF uses the Real Time Transport Protocol (rtp) over UDP. My application us... 阅读全文
posted @ 2011-11-16 20:04 网络大豆 阅读(300) 评论(0) 推荐(0) 编辑
JxtaSocket vs. Java Socket
摘要:http://blogs.oracle.com/hamada/entry/jxtasocket_vs_java_socket—————————————————————————————————————————————— JxtaSocket vs. Java Socket By hamada on May 25, 2006 If you have wondered about JxtaSocket performance vs. Java ... 阅读全文
posted @ 2011-11-16 19:37 网络大豆 阅读(260) 评论(0) 推荐(0) 编辑
使用jetty做为server提供多线程文件下载
摘要:http://agapple.iteye.com/blog/1189612———————————————————————————————————————————————————————— 使用jetty做为server提供多线程文件下载 博客分类:javalinux 背景 最近在做的一个项目,两个java进程之间会涉及一个大数据量的传递过程,基本都是图片文件,(做了压缩后还是会比较大,最大的有超过600MB)。其次这两个java进程是在跨机房,比如中国和美国机房,网络待框也就几百kB。 这就是本文... 阅读全文
posted @ 2011-11-16 14:49 网络大豆 阅读(732) 评论(0) 推荐(0) 编辑
Creating a Custom Socket Type
摘要:http://download.oracle.com/javase/1.3/docs/guide/rmi/sockettype.doc.html—————————————————————————————————————————————————— Creating a Custom Socket Type Often it is necessary to process data either before it is sent to, or after it has been received from, a socket. Instead o... 阅读全文
posted @ 2011-11-13 17:02 网络大豆 阅读(242) 评论(0) 推荐(0) 编辑
Extending Sockets in JDK 1.1
摘要:http://download.oracle.com/javase/1.3/docs/guide/net/extendingSocks.html———————————————————————————————————————————————— Extending Sockets in JDK 1.1 Some of the improvements to the java.net classes in JDK 1.1 allow sockets (Socket/ServerSocket) to be non-final, extendable classes. The basic ... 阅读全文
posted @ 2011-11-13 16:41 网络大豆 阅读(222) 评论(0) 推荐(0) 编辑
p2psockets代码
摘要:http://www.koders.com/info.aspx?c=ProjectInfo&pid=WD8AFGBXX2TD6KFMHBMY58N78B&s=mdef%3astring——————————————————————————————————————————————————————————————————/Files/cuizhf/p2psockets.rar 阅读全文
posted @ 2011-11-12 18:48 网络大豆 阅读(259) 评论(0) 推荐(0) 编辑
Introduction to the Peer-to-Peer Sockets Project
摘要:http://onjava.com/lpt/a/4421———————————————————————————————————————————————————————————— Published on ONJava.com (http://www.onjava.com/) See this if you're having trouble printing code examples Introduction to the Peer-to-Peer Sockets Project by Brad Neuberg 12/03/2003 ... 阅读全文
posted @ 2011-11-12 15:35 网络大豆 阅读(420) 评论(0) 推荐(0) 编辑
New ContentService API committed into trunk (JXSE)
摘要:http://javakenai-dev.cognisync.net/forum/topic/jxta/jxta-community-forum/new-contentservice-api-committed-trunk-jxse-0———————————————————————————————————————————————————————————————————— New ContentService API committed into trunk (JXSE) Wed, 2008-08-06 22:... 阅读全文
posted @ 2011-11-11 15:18 网络大豆 阅读(280) 评论(0) 推荐(0) 编辑
摄像头说明
摘要:YUV(亦称YCrCb)是被欧洲电视系统所采用的一种颜色编码方法(属于PAL)。YUV主要用于优化彩色视频信号的传输,使其向后兼容老式黑白电视。与R GB视频信号传输相比,它最大的优点在于只需占用极少的带宽(RGB要求三个独立的视频信号同时传输)。其中“Y”表示明亮度(Lumina nce或Luma),也就是灰阶值;而“U”和“V”表示的则是色度(Chrominance或Chroma),作用是描述影像色彩及饱和度,用于指定像素的颜色。“亮度”是通过R GB输入信号来创建的,方法是将RGB信号的特定部分叠加到一起。“色度”则定义了颜色的两个方面—色调与饱和度,分别用Cr和CB来表示。其中,C r 阅读全文
posted @ 2011-11-09 16:58 网络大豆 阅读(845) 评论(0) 推荐(0) 编辑
NetBeans Visual Library Tutorial
摘要:http://platform.netbeans.org/tutorials/nbm-visual_library.html————————————————————————————————————————————————————————————NetBeans Visual Library Tutorial In this tutorial, you will learn how to use the main features provided by the NetBeans Visual Library API. The library provides a set of reusa... 阅读全文
posted @ 2011-11-06 16:55 网络大豆 阅读(444) 评论(0) 推荐(0) 编辑
Best practice to use ConcurrentMap's putIfAbsent
摘要:http://stackoverflow.com/questions/3752194/best-practice-to-use-concurrentmaps-putifabsent——————————————————————————————————————————————————I have been using Java's ConcurrentMap for a map that can be used from multiple threads. The putIfAbsent is a great method and is much easier to read/write 阅读全文
posted @ 2011-11-04 14:01 网络大豆 阅读(470) 评论(0) 推荐(0) 编辑
格式化文本支持:JTextPane
摘要:http://www.cnblogs.com/xingqi/archive/2011/04/20/2022188.html————————————————————————————————————————————————————————Java Swing的JTextPane支持格式化文本,即字体、大小、加粗、倾斜、下划线、颜色等,还支持图片、任意组件Component及段落格式等,相关 概念还有文档StyledDocument、编辑器StyledEditorKit、格式集AttributeSet和格式工具 StyleConstants。 常见的聊天窗口之记录框和输入框的显示不太一样,记录框.. 阅读全文
posted @ 2011-11-03 20:40 网络大豆 阅读(644) 评论(2) 推荐(0) 编辑
转:jxmultisplitpane: how to use?
摘要:http://stackoverflow.com/questions/6117826/jxmultisplitpane-how-to-use————————————————————————————————————————————————————————//Simplecase:createsasplitpanewiththree//compartmentsJXMultiSplitPanesp=newJXMultiSplitPane();sp.setModel(newDefaultSplitPaneModel());sp.add(left,DefaultSplitPaneModel.LEFT); 阅读全文
posted @ 2011-11-03 16:03 网络大豆 阅读(461) 评论(0) 推荐(0) 编辑
转:JXCollapsiblePane/JXTaskPane via NetBeans 6.9.1 designer
摘要:http://forums.netbeans.org/ntopic32575.html————————————————————————————————————————————————————————————————Author Message jim_akmerJoined: 20 Oct 2010Posts: 2 Posted: Wed Oct 20, 2010 12:15 pm Post subject: JXCollapsiblePane/JXTaskPane via NetBeans 6.9.1 designer ... 阅读全文
posted @ 2011-11-03 15:37 网络大豆 阅读(525) 评论(0) 推荐(0) 编辑
Pluggable JXTaskPane
摘要:http://blogs.oracle.com/geertjan/entry/pluggable_jxtaskpane—————————————————————————————————————————————————————————————— Pluggable JXTaskPane By Geertjan on May 21, 2010 Some of the students on the recent NetBeans Platform Certified Train... 阅读全文
posted @ 2011-11-03 12:00 网络大豆 阅读(340) 评论(0) 推荐(0) 编辑
关于Native Library在NetbeansRCP应用中的设置
摘要:在Netbeans RCP中利用JMF框架实现音频视频的传输,开始就遇到一个问题,网上搜索了一下,与下面这个类似,直接贴过来吧——————————————————————————————————————————————————————————————http://stackoverflow.com/questions/5887383/netbeans-platform-application-doesnt-detect-webcam-devices-with-jmfI've been trying to develop an application with Netbeans RCP 阅读全文
posted @ 2011-11-02 11:22 网络大豆 阅读(870) 评论(0) 推荐(0) 编辑
Simple example of using the Java Native Interface
摘要:http://www.java-tips.org/other-api-tips/jni/simple-example-of-using-the-java-native-interface.html————————————————————————————————————————————————————————————This tip shows you how to program a simple example of using the Java Native Interface. We will write a Java application that calls a C functio 阅读全文
posted @ 2011-11-02 09:50 网络大豆 阅读(216) 评论(0) 推荐(0) 编辑
Java Application Development(包括如何设置本地库)
摘要:Choosing the JDK version for your program: Right-click on your project ⇒ "Properties" ⇒ "Source" node ⇒ You can select the JDK level of your project in pull-donw menu "Source/Binary Format".Enabling JDK 7 support: If JDK 7 is already installed in your system, right-clic 阅读全文
posted @ 2011-11-02 09:43 网络大豆 阅读(321) 评论(0) 推荐(0) 编辑
转:通信程序中图文混排与表情选择的实现
摘要:http://severus-zhang.iteye.com/blog/1198049———————————————————————————————————————————————————————— 最近在做的一个仿QQ的通信项目中,需要实现QQ聊天界面中的表情选择和显示功能,纠结了许久,终于解决。 首先对这个流程进行分析:点击单人聊天界面上的表情按钮后,自动弹出表情选择框,单击表情框中图标,聊天界面编辑区添加上表情包中指定的表情图标,点击发 送按钮后,程序获取编辑区的图文混合信息,按照通信协议传输该信息,接收方收到之后,解析该图文信息,区分开图标和文本信息,然后在己方聊天显示界面上显... 阅读全文
posted @ 2011-11-01 09:10 网络大豆 阅读(314) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示