Reading from InputStream
Tuesday, 11. November 2008, 09:40:56
http://jajatips.blogspot.com
Tuesday, 11. November 2008, 09:40:56
Trouble: we have some JComponent. We need paint this component and remove all logic from it.At the begining, I think that solution is very simple: override paint() method, and draw inner component in wrpapper's Graphics.public class ComponentWrapper extends JComponent { private JComponent inner ...
When I try to solve this problem I read two docs: help in Netbeans 6(http://www.netbeans.org/kb/60/web/mysql-webapp.html#settingUpConnPool) and jndi help from tomcat.apache.org(http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html). But when I lookup InitialContext, application ...
.ln { color: rgb(0,0,0); font-weight: normal; font-style: normal; }.s0 { color: rgb(0,0,128); font-weight: bold; }.s1 { }.s2 { color: rgb(128,128,128); font-style: italic; }.s3 { color: rgb(128,128,128); font-weight: bold; font-style: italic; }.s4 { color: rgb(128,128,128); font-style: italic; }.s5 ...
Lately I've faced a simple problem: I needed to read all bytes from the InputStream. I didn't know type of the InputStream, so, I've spent more then two hours solving this problem without any success. I didn't want to read each byte from the stream. All evening I could think only about this problem. ...
Hello everyone! In the Spring Framework (I use Spring 2.5), we can use property placeholders in the spring xml-based configuration file. I wrote simple example that consist of four beans. Two of them are simple beans, one is a factory and one is a result bean that we want to get from factory bean. ...