<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5420953248933930628</id><updated>2011-10-11T20:25:37.697+09:00</updated><category term='java db'/><category term='java math'/><category term='java etc'/><category term='java io'/><category term='java rss'/><category term='java print'/><category term='java servlet'/><category term='java image'/><category term='java util'/><category term='java xml'/><category term='Java mail'/><category term='java excel'/><category term='java swing'/><category term='java pdf'/><category term='java net'/><title type='text'>Javaテクニカルサービス</title><subtitle type='html'>Javaの小技集、サンプル集、ニュースなどを紹介していきます。みんなで参考にしてください。</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>53</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-120427051714739634</id><published>2007-05-22T09:28:00.000+09:00</published><updated>2007-07-10T15:51:17.841+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java util'/><title type='text'>リソースバンドル（ResourceBundle）をアップレットから使う</title><content type='html'>リソースバンドルをAppletから利用する方法です。便利なのでよく使います。&lt;br /&gt;&lt;br /&gt;普通に昔のWindowsのINIファイルのように使ってます。&lt;br /&gt;自分でファイルを開いたり、行を読んだりしなくてよいので便利です。&lt;br /&gt;MyApplet.propertiesはアップレットのJARファイルと同じ場所においておきます。&lt;br /&gt;&lt;br /&gt;&lt;a href="http://javatec.blog105.fc2.com/blog-entry-56.html" target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-56.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-120427051714739634?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/120427051714739634/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=120427051714739634' title='6 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/120427051714739634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/120427051714739634'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/05/resourcebundle_22.html' title='リソースバンドル（ResourceBundle）をアップレットから使う'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-2617802029632318954</id><published>2007-05-21T10:22:00.000+09:00</published><updated>2007-06-19T09:41:06.727+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java util'/><title type='text'>リソースバンドルをサーブレットから使う</title><content type='html'>リソースバンドルは便利なのでよく使います。&lt;br /&gt;本来は、別の言語への対応に使ったりするのですが、そんなにインターナショナルな&lt;br /&gt;コーディングをしている人がいるとは思えません。日本人で。欧州人なら分かりますが。&lt;br /&gt;&lt;br /&gt;普通に昔のWindowsのINIファイルのように使ってます。&lt;br /&gt;自分でファイルを開いたり、行を読んだりしなくてよいので便利です。&lt;br /&gt;下の例ではサーブレットから読み込んでます。&lt;br /&gt;&lt;br /&gt;MyServlet.properties は WEBページのWEB-INF/classes/の下においておきます。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-52.html target=blank&gt;http://javatec.blog105.fc2.com/blog-entry-52.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-2617802029632318954?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/2617802029632318954/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=2617802029632318954' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/2617802029632318954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/2617802029632318954'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/05/resourcebundle.html' title='リソースバンドルをサーブレットから使う'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-4177695390018965856</id><published>2007-05-16T09:27:00.000+09:00</published><updated>2007-06-15T09:35:39.447+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java etc'/><title type='text'>AppletのImageをクリップボードにコピーする</title><content type='html'>Appletで表示した図形や画像などをWindowsのクリップボードに貼り付けるサンプルです。&lt;br /&gt;ただし、Appletからクリップボードのリソースにアクセスするには、Javaのポリシーファイルを&lt;br /&gt;書き換える必要があります。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-51.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-51.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-4177695390018965856?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/4177695390018965856/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=4177695390018965856' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/4177695390018965856'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/4177695390018965856'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/05/appletimage.html' title='AppletのImageをクリップボードにコピーする'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-5320676477437581417</id><published>2007-05-15T14:41:00.000+09:00</published><updated>2007-06-12T01:01:47.400+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java db'/><title type='text'>データベースのコミットとロールバックの制御</title><content type='html'>SQLを実行した結果によって、データベースの変更結果をコミットしたり、ロールバックしたり&lt;br /&gt;するサンプルです。&lt;br /&gt;以下のような一行のSQLの実行では意味がありませんが、複数行SQLを実行して、成功した場合だ&lt;br /&gt;けデータベースを更新したい場合には以下のようにコミットとロールバックを使い分けます。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-50.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-50.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-5320676477437581417?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/5320676477437581417/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=5320676477437581417' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/5320676477437581417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/5320676477437581417'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/05/blog-post.html' title='データベースのコミットとロールバックの制御'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-728072740506176910</id><published>2007-05-15T10:17:00.000+09:00</published><updated>2007-06-09T00:33:10.174+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java db'/><title type='text'>データベースへJDBC接続（PostgreSQL）</title><content type='html'>データベースへJDBC接続するためのサンプルです。&lt;br /&gt;以下の例ではデータベースはPostgreSQLを使用しています。&lt;br /&gt;PostgreSQLのJDBCドライバは、RPMであれば postgresql-jdbc というRPM名で取得できます。&lt;br /&gt;ソースファイルの場合はコンパイルするか、PostgreSQLのサイトにJARライブラリがダウンロードできるようになっています。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-49.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-49.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-728072740506176910?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/728072740506176910/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=728072740506176910' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/728072740506176910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/728072740506176910'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/05/jdbcpostgresql.html' title='データベースへJDBC接続（PostgreSQL）'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-1907915134717361536</id><published>2007-05-11T16:38:00.000+09:00</published><updated>2007-06-05T23:21:22.755+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java swing'/><title type='text'>Appletをブラウザにあわせてリサイズする方法</title><content type='html'>Appletをブラウザにあわせてサイズを変更する方法は、簡単です。&lt;br /&gt;&lt;br /&gt;Appletを埋め込むタグ InternetExplorerでは OBJECT タグ、Mozillaなどでは EMBED タグの WIDTH、HEIGHTを％指定します。&lt;br /&gt;&lt;br /&gt;そうすると、Appletのサイズはブラウザに合わせて変更されます。&lt;br /&gt;&lt;br /&gt;ただ、AppletでJSplitPaneやJLayeredPaneを使っていてウィンドウを複数表示している場合は、プログラムでウィンドウのリサイズや再配置を行ってやる必要があります。&lt;br /&gt;例ではリサイズのイベントは以下で取得できますので、イベント発生したらupdateLayout()を実行します。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-48.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-48.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-1907915134717361536?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/1907915134717361536/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=1907915134717361536' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/1907915134717361536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/1907915134717361536'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/05/applet.html' title='Appletをブラウザにあわせてリサイズする方法'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-8598584646995498144</id><published>2007-05-10T00:08:00.000+09:00</published><updated>2007-06-05T23:19:21.650+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java rss'/><title type='text'>RSSの配信</title><content type='html'>RSSを読み込むには、RSS4jというライブラリを利用します。&lt;br /&gt;ライブラリがダウンロードできるURLは&lt;br /&gt;http://www.churchillobjects.com/c/13005.html&lt;br /&gt;ですが、今現在立ち上がっていないようです。移動したのか落ちているのか。。。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-47.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-47.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-8598584646995498144?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/8598584646995498144/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=8598584646995498144' title='270 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/8598584646995498144'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/8598584646995498144'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/05/rss.html' title='RSSの配信'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>270</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-8417845412464406222</id><published>2007-05-06T23:37:00.000+09:00</published><updated>2007-06-05T00:38:57.368+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java etc'/><title type='text'>javascriptからAppletの関数を実行する方法</title><content type='html'>まず、HTMLではAppletのタグの名前を指定します。例ではTestAppletとします。&lt;br /&gt;MozillaなどはEMBEDタグを使用すると思いますが、NAMEをTestAppletとしてください。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-46.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-46.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-8417845412464406222?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/8417845412464406222/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=8417845412464406222' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/8417845412464406222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/8417845412464406222'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/05/javascriptapplet.html' title='javascriptからAppletの関数を実行する方法'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-4261330020859619959</id><published>2007-05-05T23:56:00.000+09:00</published><updated>2007-06-05T00:36:53.490+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java etc'/><title type='text'>Appletからjavascriptを実行する方法</title><content type='html'>Appletからjavascriptを実行するサンプルです。&lt;br /&gt;まず、必要なライブラリとして、plugin.jarが必要です。&lt;br /&gt;特にダウンロードしてくる必要はなく、jreのlibの下にあります。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-45.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-45.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-4261330020859619959?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/4261330020859619959/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=4261330020859619959' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/4261330020859619959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/4261330020859619959'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/04/appletjavascript.html' title='Appletからjavascriptを実行する方法'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-1648469942856308515</id><published>2007-04-27T14:45:00.000+09:00</published><updated>2007-06-04T00:10:26.671+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java util'/><title type='text'>パスワードの復号化</title><content type='html'>前回の記事で暗号化したパスワードを復号化するサンプルです。&lt;br /&gt;入力パスワードは16進数化されています。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-44.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-44.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-1648469942856308515?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/1648469942856308515/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=1648469942856308515' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/1648469942856308515'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/1648469942856308515'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/04/blog-post_8821.html' title='パスワードの復号化'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-1093076775562548456</id><published>2007-04-27T11:08:00.000+09:00</published><updated>2007-06-04T00:08:04.785+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java util'/><title type='text'>パスワードの暗号化</title><content type='html'>パスワードの暗号化サンプルです。&lt;br /&gt;特にライブラリを追加する必要はありません。&lt;br /&gt;最後に１６進数化してます。データベースに入れる場合はその方が短くなりますしね。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-43.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-43.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-1093076775562548456?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/1093076775562548456/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=1093076775562548456' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/1093076775562548456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/1093076775562548456'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/04/blog-post_27.html' title='パスワードの暗号化'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-2439102874348495761</id><published>2007-04-25T22:53:00.000+09:00</published><updated>2007-06-01T01:22:03.858+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java db'/><title type='text'>jdbc文字コード変換 EUC_JP-&gt;UNICODE</title><content type='html'>前回の記事でデータベースに登録できたものの、取り出すときにも変換しないと&lt;br /&gt;今度は表示で文字化けしてしまいます。&lt;br /&gt;以下の関数で元に戻してください。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-42.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-42.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-2439102874348495761?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/2439102874348495761/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=2439102874348495761' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/2439102874348495761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/2439102874348495761'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/04/jdbc-eucjp-unicode.html' title='jdbc文字コード変換 EUC_JP-&gt;UNICODE'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-8766193510067706817</id><published>2007-04-25T13:02:00.000+09:00</published><updated>2007-06-01T01:20:10.941+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java db'/><title type='text'>jdbc文字コード変換 UNICODE-&gt;EUC_JP</title><content type='html'>JDBCを使ってPostgreSQLなどにデータを登録しようとしたときに、&lt;br /&gt;java.sql.SQLException: ERROR:  character 0xe3809c of encoding "UNICODE" has no equivalent in "EUC_JP"&lt;br /&gt;のようなエラーが表示されたことはないでしょうか？&lt;br /&gt;チルダやハイフンなどがUNICODEとEUCの間でうまく変換されないのが原因のようです。&lt;br /&gt;自分は以下の関数を使ってあらかじめUNICODEをMS932に変換して登録してます。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-41.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-41.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-8766193510067706817?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/8766193510067706817/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=8766193510067706817' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/8766193510067706817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/8766193510067706817'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/04/jdbc-unicode-eucjp.html' title='jdbc文字コード変換 UNICODE-&gt;EUC_JP'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-3486868274970526167</id><published>2007-04-24T14:43:00.000+09:00</published><updated>2007-05-30T23:50:05.093+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java rss'/><title type='text'>RSSの読み込み</title><content type='html'>RSSを読み込むには、RSS4jというライブラリを利用します。&lt;br /&gt;ライブラリがダウンロードできるURLは&lt;br /&gt;http://www.churchillobjects.com/c/13005.html&lt;br /&gt;ですが、今現在立ち上がっていないようです。移動したのか落ちているのか。。。&lt;br /&gt;ただ、このライブラリはRSS2.0には対応していません。&lt;br /&gt;&lt;br /&gt;2.0に対応しているライブラリは、koders(http://www.koders.com/)というサイトにあります。&lt;br /&gt;ただ、ファイル一個ずつダウンロードして、自分でコンパイルしないと&lt;br /&gt;いけないかもしれません。まとめてダウンロードする方法があるのかもしれませんが。&lt;br /&gt;とりあえずRssParser.javaのダウンロード先は以下になります。&lt;br /&gt;http://www.koders.com/java/fidB95969F8738787971C9A47C0F6AC2A50478D6361.aspx?s=cdef%3aparser&lt;br /&gt;このページからたどって全ファイルをダウンロードしてください。&lt;br /&gt;面倒ですが、自分で作るよりは早いです。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-40.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-40.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-3486868274970526167?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/3486868274970526167/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=3486868274970526167' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/3486868274970526167'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/3486868274970526167'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/04/rss.html' title='RSSの読み込み'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-6598647683730924441</id><published>2007-04-24T14:17:00.000+09:00</published><updated>2007-05-30T23:46:43.876+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java util'/><title type='text'>生年月日から年齢の計算</title><content type='html'>年齢計算の関数サンプルです。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-39.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-39.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-6598647683730924441?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/6598647683730924441/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=6598647683730924441' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/6598647683730924441'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/6598647683730924441'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/04/blog-post_24.html' title='生年月日から年齢の計算'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-6807040915880076402</id><published>2007-04-24T10:21:00.000+09:00</published><updated>2007-05-30T01:51:32.588+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java swing'/><title type='text'>FileFilterの使い方</title><content type='html'>FileFilterの使い方は以下のようになります。&lt;br /&gt;したの例ではCSVファイルのFileFilterです。&lt;br /&gt;いちいちクラスを作ってやらないといけません。&lt;br /&gt;VCのように簡単になりませんかね。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-38.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-38.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-6807040915880076402?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/6807040915880076402/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=6807040915880076402' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/6807040915880076402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/6807040915880076402'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/04/filefilter.html' title='FileFilterの使い方'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-7476246687654097091</id><published>2007-04-23T14:38:00.000+09:00</published><updated>2007-05-30T01:47:21.886+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java xml'/><title type='text'>XMLの読み込み（SAX）</title><content type='html'>SAX仕様でXMLを読み込むサンプルです。&lt;br /&gt;DOMはとにかくメモリを食いますので、その点ではSAXを使ったほうがよさそうですが、SAXはプログラムが分かりにくくなるという欠点もあります。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-37.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-37.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-7476246687654097091?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/7476246687654097091/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=7476246687654097091' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/7476246687654097091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/7476246687654097091'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/04/xmlsax.html' title='XMLの読み込み（SAX）'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-8177759839129366065</id><published>2007-04-23T14:08:00.000+09:00</published><updated>2007-05-30T01:39:07.854+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java net'/><title type='text'>URLConnection HTTP接続</title><content type='html'>JAVAで他のサーブレットやホームページにアクセスする方法は以下のサンプルを参照してください。&lt;br /&gt;ホームページを読む場合は、InputStreamをBufferedReaderで読んでファイルに保存したりすればよいでしょう。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-36.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-36.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-8177759839129366065?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/8177759839129366065/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=8177759839129366065' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/8177759839129366065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/8177759839129366065'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/04/http.html' title='URLConnection HTTP接続'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-8116412918693995403</id><published>2007-04-23T00:11:00.000+09:00</published><updated>2007-05-28T01:34:39.199+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java swing'/><title type='text'>JButtonのサンプル</title><content type='html'>JButtonのサンプル集です。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-35.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-35.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-8116412918693995403?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/8116412918693995403/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=8116412918693995403' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/8116412918693995403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/8116412918693995403'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/04/jbutton.html' title='JButtonのサンプル'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-514299180315863800</id><published>2007-04-23T00:04:00.000+09:00</published><updated>2007-05-28T01:31:05.765+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java image'/><title type='text'>イメージの回転</title><content type='html'>AffineTransformを使用してイメージを回転させるサンプルです。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-34.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-34.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-514299180315863800?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/514299180315863800/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=514299180315863800' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/514299180315863800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/514299180315863800'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/04/blog-post.html' title='イメージの回転'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-1006690443660914527</id><published>2007-04-10T12:00:00.000+09:00</published><updated>2007-05-28T01:28:12.442+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java xml'/><title type='text'>XMLの読み込み（DOM）</title><content type='html'>DOM仕様でXMLを読み込むパーサーのサンプルです。&lt;br /&gt;XMLはいろいろなライブラリが出ていますので、それを使用するのもいいですが、&lt;br /&gt;コアパッケージだけで実装する方法は以下になります。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-33.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-33.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-1006690443660914527?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/1006690443660914527/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=1006690443660914527' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/1006690443660914527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/1006690443660914527'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/03/xmldom.html' title='XMLの読み込み（DOM）'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-4141356591208299126</id><published>2007-04-03T12:44:00.000+09:00</published><updated>2007-05-27T00:24:12.551+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java pdf'/><title type='text'>PDFに表を描く</title><content type='html'>PDFに表を描画するサンプルです。&lt;br /&gt;PDF用のライブラリはiText.jarが以下のHPから&lt;br /&gt;http://www.lowagie.com/iText/docs.html#download&lt;br /&gt;日本語フォントを使用するために、iTextAsian.jarを以下からダウンロードしてください。&lt;br /&gt;http://prdownloads.sourceforge.net/itext/iTextAsian.jar?download&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-32.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-32.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-4141356591208299126?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/4141356591208299126/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=4141356591208299126' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/4141356591208299126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/4141356591208299126'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/04/pdf.html' title='PDFに表を描く'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-8262574475990714045</id><published>2007-03-23T09:52:00.000+09:00</published><updated>2007-05-27T00:19:56.876+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java pdf'/><title type='text'>PDFのグラフィックスを取得して絵を描く</title><content type='html'>PDFファイルのGraphicsを取得する方法です。&lt;br /&gt;Graphicsが取得できれば、イメージ貼り付けたり線を描画したり出来ますね。&lt;br /&gt;PDF用のライブラリはiText.jarが以下のHPから&lt;br /&gt;http://www.lowagie.com/iText/docs.html#download&lt;br /&gt;日本語フォントを使用するために、iTextAsian.jarを以下からダウンロードしてください。&lt;br /&gt;http://prdownloads.sourceforge.net/itext/iTextAsian.jar?download&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-31.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-31.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-8262574475990714045?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/8262574475990714045/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=8262574475990714045' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/8262574475990714045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/8262574475990714045'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/03/pdf.html' title='PDFのグラフィックスを取得して絵を描く'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-2912596470985317021</id><published>2007-03-22T16:11:00.000+09:00</published><updated>2007-05-27T00:15:38.004+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java excel'/><title type='text'>EXCELファイルのセルのピクセル数</title><content type='html'>Excelファイルのセルのピクセル数を取得するサンプルです。&lt;br /&gt;かなり強引なプログラムです。&lt;br /&gt;ただこうやるとうまくいきますので、必要なピクセル数にちゃんとイメージが張り付きます。&lt;br /&gt;getHeightInPointsという関数はあっても、getWidthInPointsという関数はないです。&lt;br /&gt;なぜ？Excelというのはそういう世界なんでしょうか？&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-30.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-30.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-2912596470985317021?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/2912596470985317021/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=2912596470985317021' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/2912596470985317021'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/2912596470985317021'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/03/excel.html' title='EXCELファイルのセルのピクセル数'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-6666759909974120400</id><published>2007-03-17T21:53:00.000+09:00</published><updated>2007-05-26T00:48:27.748+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java math'/><title type='text'>図形の回転（AffineTransform）</title><content type='html'>X,Yを中心にして点を回転させるサンプルです。&lt;br /&gt;したの例では９０度反時計回りにまわしてます。&lt;br /&gt;点が移動できれば、線でも何でも図形はまわせますね。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-29.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-29.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-6666759909974120400?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/6666759909974120400/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=6666759909974120400' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/6666759909974120400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/6666759909974120400'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/03/blog-post_17.html' title='図形の回転（AffineTransform）'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-5610570789955413066</id><published>2007-03-15T09:01:00.000+09:00</published><updated>2007-05-26T00:45:26.994+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java excel'/><title type='text'>EXCELファイルにイメージを貼り付ける（POIFSFileSystem）</title><content type='html'>EXCELファイルにイメージを貼り付けるサンプルです。&lt;br /&gt;&lt;a href=http://www.apache.org/dyn/closer.cgi/jakarta/poi/&gt;こちらから&lt;/a&gt;ライブラリをダウンロードします。&lt;br /&gt;2.5.1と、3.0alphaがあって、3.0alphaの方を使用しないとイメージは扱えません。&lt;br /&gt;HSSFClientAnchorでセルの位置とセルの数を指定します。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-28.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-28.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-5610570789955413066?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/5610570789955413066/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=5610570789955413066' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/5610570789955413066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/5610570789955413066'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/03/excelpoifsfilesystem_15.html' title='EXCELファイルにイメージを貼り付ける（POIFSFileSystem）'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-2005157023683791559</id><published>2007-03-13T23:44:00.000+09:00</published><updated>2007-05-26T00:42:21.644+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java excel'/><title type='text'>EXCELファイルの読み込み（POIFSFileSystem）</title><content type='html'>EXCELファイルをJavaで読み込むサンプルです。&lt;br /&gt;&lt;a href=http://www.apache.org/dyn/closer.cgi/jakarta/poi/ target=_blank&gt;こちらから&lt;/a&gt;ライブラリをダウンロードします。&lt;br /&gt;2.5.1と、3.0alphaがあって、何が違うかというと、自分が使っているのはイメージを貼り付けられることです。&lt;br /&gt;イメージの貼り付けは別のページで紹介します。&lt;br /&gt;下記は3.0alphaの文字を読み込むサンプルです。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-27.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-27.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-2005157023683791559?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/2005157023683791559/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=2005157023683791559' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/2005157023683791559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/2005157023683791559'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/03/excelpoifsfilesystem.html' title='EXCELファイルの読み込み（POIFSFileSystem）'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-6486918747743283737</id><published>2007-03-11T10:03:00.000+09:00</published><updated>2007-05-25T00:18:00.679+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java swing'/><title type='text'>ボタンのサイズ変更</title><content type='html'>Appletのコンポーネントってサイズを自動的に決められてしまうのが一般的ですが、&lt;br /&gt;たまにボタンを他のボタンと揃えたいときもありますよね。&lt;br /&gt;Layoutの選択によっていろいろですが、ボタンの文字数によってボタンのサイズが決められてしまいます。&lt;br /&gt;自分は以下の方法でサイズ調整してます。あまり余白を削りすぎると、今度は表示文字を削られてしまいますので要注意です。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-26.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-26.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-6486918747743283737?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/6486918747743283737/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=6486918747743283737' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/6486918747743283737'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/6486918747743283737'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/03/blog-post_11.html' title='ボタンのサイズ変更'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-4728888155853177308</id><published>2007-03-08T11:01:00.000+09:00</published><updated>2007-05-25T00:15:01.152+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java mail'/><title type='text'>添付ファイル付きメールの送信</title><content type='html'>メールに画像などを添付して、送信するサンプルを載せます。&lt;br /&gt;JAFというライブラリを使用しますので、以下からダウンロードしてください。&lt;br /&gt;http://java.sun.com/products/javabeans/jaf/downloads/index.html&lt;br /&gt;添付ファイルはURLを指定することも可能です。&lt;br /&gt;その場合はURLDataSourceを作成します。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-25.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-25.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-4728888155853177308?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/4728888155853177308/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=4728888155853177308' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/4728888155853177308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/4728888155853177308'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/03/blog-post_08.html' title='添付ファイル付きメールの送信'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-6608322439416332054</id><published>2007-03-07T09:50:00.000+09:00</published><updated>2007-05-25T00:10:56.034+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java image'/><title type='text'>イメージサイズ変更３</title><content type='html'>イメージサイズ変更で、もっとも遅いですが、きれいな方法です。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-24.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-24.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-6608322439416332054?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/6608322439416332054/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=6608322439416332054' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/6608322439416332054'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/6608322439416332054'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/03/blog-post_05.html' title='イメージサイズ変更３'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-7211217498553142691</id><published>2007-03-07T00:19:00.000+09:00</published><updated>2007-05-23T23:55:52.850+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java etc'/><title type='text'>シングルトン</title><content type='html'>シングルトンクラスは、メモリの負担を軽減します。&lt;br /&gt;メモリ上にオブジェクトが一つしか存在しなくなるので、例えば別のサーブレットから&lt;br /&gt;そのオブジェクトを共有できるので、非常に便利です。ただし同期を常に意識しないと、&lt;br /&gt;オブジェクトに変更があった場合、他のプログラムが影響を受けてしまいます。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-23.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-23.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-7211217498553142691?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/7211217498553142691/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=7211217498553142691' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/7211217498553142691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/7211217498553142691'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/03/blog-post_4453.html' title='シングルトン'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-1460225609378696289</id><published>2007-03-07T00:07:00.000+09:00</published><updated>2007-05-23T23:53:16.432+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java servlet'/><title type='text'>ファイルのダウンロード</title><content type='html'>クライアントにファイルのダウンロードさせるサンプルです。&lt;br /&gt;ブラウザではいきなりファイルが開くのではなく、「保存」するか「開く」かを選択してもらうダイアログが表示されます。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-22.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-22.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-1460225609378696289?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/1460225609378696289/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=1460225609378696289' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/1460225609378696289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/1460225609378696289'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/03/blog-post_07.html' title='ファイルのダウンロード'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-2085131825733766451</id><published>2007-03-07T00:00:00.000+09:00</published><updated>2007-05-23T23:45:05.750+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java image'/><title type='text'>イメージサイズ変更２</title><content type='html'>イメージサイズ変更で、早さもきれいさも中間の方法です。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-21.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-21.html&lt;/a&gt;に移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-2085131825733766451?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/2085131825733766451/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=2085131825733766451' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/2085131825733766451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/2085131825733766451'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/03/blog-post_3659.html' title='イメージサイズ変更２'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-1481157291900257468</id><published>2007-03-04T00:11:00.001+09:00</published><updated>2007-05-23T01:13:59.010+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java image'/><title type='text'>イメージ減色処理</title><content type='html'>減色処理はJimiの ColorReducer を使用します。&lt;br /&gt;Jimiのライブラリは以下からダウンロードしてください。&lt;br /&gt;http://java.sun.com/products/jimi/&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-20.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-20.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-1481157291900257468?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/1481157291900257468/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=1481157291900257468' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/1481157291900257468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/1481157291900257468'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/03/blog-post_04.html' title='イメージ減色処理'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-5364515027046240599</id><published>2007-03-04T00:10:00.001+09:00</published><updated>2007-05-23T01:10:41.525+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java image'/><title type='text'>イメージファイル出力（TIFF)</title><content type='html'>TIFFファイルの出力は以下を参考にしてください。&lt;br /&gt;ライブラリとしてJAIを使用します。以下からダウンロードしてください。&lt;br /&gt;http://java.sun.com/javase/technologies/desktop/media/jai/&lt;br /&gt;グラフィックスにお絵かきする部分は適当に編集してください。&lt;br /&gt;圧縮の指定 encParam.setCompression を TIFFEncodeParam.COMPRESSION_PACKBITS&lt;br /&gt;以外のもっと圧縮率の高いものを指定してもうまく動作しないです。&lt;br /&gt;実装方法が悪いのかもしれませんが。。。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-19.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-19.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-5364515027046240599?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/5364515027046240599/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=5364515027046240599' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/5364515027046240599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/5364515027046240599'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/03/tiff.html' title='イメージファイル出力（TIFF)'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-2384719070690423885</id><published>2007-03-04T00:09:00.000+09:00</published><updated>2007-05-23T01:11:05.367+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java image'/><title type='text'>イメージファイル出力（BMP)</title><content type='html'>BMPファイルの出力は以下を参考にしてください。&lt;br /&gt;ライブラリとしてJIMIを使用します。以下からダウンロードしてください。&lt;br /&gt;http://java.sun.com/products/jimi/&lt;br /&gt;グラフィックスにお絵かきする部分は適当に編集してください。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-18.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-18.html&lt;/a&gt;に移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-2384719070690423885?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/2384719070690423885/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=2384719070690423885' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/2384719070690423885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/2384719070690423885'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/03/bmp.html' title='イメージファイル出力（BMP)'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-6326564702136902160</id><published>2007-03-03T23:57:00.000+09:00</published><updated>2007-05-21T23:04:36.400+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java image'/><title type='text'>イメージファイル出力（PNG)</title><content type='html'>PNGファイルの出力は以下を参考にしてください。&lt;br /&gt;ライブラリとしてJIMIを使用します。以下からダウンロードしてください。&lt;br /&gt;http://java.sun.com/products/jimi/&lt;br /&gt;グラフィックスにお絵かきする部分は適当に編集してください。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-17.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-17.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-6326564702136902160?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/6326564702136902160/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=6326564702136902160' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/6326564702136902160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/6326564702136902160'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/03/png.html' title='イメージファイル出力（PNG)'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-5314438390191536039</id><published>2007-03-03T23:56:00.000+09:00</published><updated>2007-05-21T23:08:20.289+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java image'/><title type='text'>イメージのサイズ変更１</title><content type='html'>イメージのサイズ変更にはいくつかの方法があります。&lt;br /&gt;早いけど、荒くなる方法、きれいだけど、遅くなる方法。。。&lt;br /&gt;３パターン公開しますので、イメージの種類や用途によって使い分けてください。&lt;br /&gt;&lt;br /&gt;まずは、早いけど、荒く表示される方法です。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-16.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-16.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-5314438390191536039?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/5314438390191536039/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=5314438390191536039' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/5314438390191536039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/5314438390191536039'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/03/blog-post.html' title='イメージのサイズ変更１'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-3251246098722921146</id><published>2007-03-03T23:46:00.000+09:00</published><updated>2007-05-21T23:08:10.439+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java io'/><title type='text'>ファイルの圧縮（Zip）</title><content type='html'>基本的なZipファイルの圧縮サンプルです。&lt;br /&gt;特に追加ライブラリは必要ありません。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-15.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-15.html&lt;/a&gt;へ移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-3251246098722921146?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/3251246098722921146/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=3251246098722921146' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/3251246098722921146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/3251246098722921146'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/03/zip.html' title='ファイルの圧縮（Zip）'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-8095418625441340009</id><published>2007-03-02T14:20:00.000+09:00</published><updated>2007-05-21T23:07:57.809+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java io'/><title type='text'>ファイルの解凍（Lha）</title><content type='html'>Lhaファイルの解凍のサンプルを投稿します。&lt;br /&gt;Lhaファイルを解凍するためのライブラリは、&lt;br /&gt;http://homepage1.nifty.com/dangan/Content/Program/Java/jLHA/LhaLibrary.html&lt;br /&gt;からダウンロードします。&lt;br /&gt;java.util.zipに似ているので、分かりやすいです。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-14.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-14.html&lt;/a&gt;に移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-8095418625441340009?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/8095418625441340009/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=8095418625441340009' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/8095418625441340009'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/8095418625441340009'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/03/lha.html' title='ファイルの解凍（Lha）'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-7262764186833406405</id><published>2007-03-01T23:58:00.000+09:00</published><updated>2007-05-21T23:07:48.021+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java io'/><title type='text'>ファイルの解凍（tar+gz）</title><content type='html'>ファイルの解凍のサンプルを投稿します。&lt;br /&gt;今回は tar と gz の組み合わせで圧縮されたファイルの解凍です。&lt;br /&gt;Linuxユーザでは一般的ですね。&lt;br /&gt;TarInputStreamは jakarta-ant のライブラリを使用しますので、&lt;br /&gt;Jakartaサイトからダウンロードしてください。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-13.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-13.html&lt;/a&gt;に移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-7262764186833406405?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/7262764186833406405/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=7262764186833406405' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/7262764186833406405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/7262764186833406405'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/03/targz.html' title='ファイルの解凍（tar+gz）'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-4979978625270684265</id><published>2007-03-01T09:25:00.000+09:00</published><updated>2007-05-21T23:07:31.386+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java io'/><title type='text'>LittleEndian対応の出力ストリーム</title><content type='html'>JavaはBigEndianですが、LittleEndianのファイルを出力する場面がたまにあります。&lt;br /&gt;Javaはあれだけライブラリがあっても、バイト操作関係は貧弱ですよね。&lt;br /&gt;LittleEndianの出力は以下を参考にしてください。&lt;br /&gt;入力ストリームのほうはIntegerの場合を書きましたが、出力はLongとDoubleです。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-12.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-12.html&lt;/a&gt;に移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-4979978625270684265?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/4979978625270684265/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=4979978625270684265' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/4979978625270684265'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/4979978625270684265'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/03/littleendian_01.html' title='LittleEndian対応の出力ストリーム'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-7312488250905021209</id><published>2007-03-01T00:33:00.000+09:00</published><updated>2007-05-21T23:07:21.526+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java io'/><title type='text'>LittleEndianバイトオーダー対応の入力ストリーム</title><content type='html'>JavaはBigEndianですが、まれにLittleEndianのファイルを入出力しなければならない場合があります。&lt;br /&gt;Javaはバイト操作関係が非常にやりづらいと思うのは私だけでしょうか？&lt;br /&gt;LittleEndianの入力ストリームは以下を参考にしてください。&lt;br /&gt;intの場合だけしか書いてありません。ここまで書けばshortやdoubleも大丈夫ですよね。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-11.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-11.html&lt;/a&gt;に移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-7312488250905021209?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/7312488250905021209/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=7312488250905021209' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/7312488250905021209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/7312488250905021209'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/03/littleendian.html' title='LittleEndianバイトオーダー対応の入力ストリーム'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-1115021110466005232</id><published>2007-02-28T09:21:00.000+09:00</published><updated>2007-05-21T23:07:11.295+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java print'/><title type='text'>Appletからデフォルトのプリンター以外に印刷</title><content type='html'>Appletからの印刷は以下を参考にしてください。&lt;br /&gt;&lt;br /&gt;印刷のポイントは、Javaのバグだと思いますが、デフォルトのプリンターを変更できるダイアログと、ページフォーマットを変更できるダイアログとが違うことです。&lt;br /&gt;３行目、pj.pageDialog(pf)でページフォーマットを変更します。そこでプリンターを変更してもデフォルトに印刷されます。&lt;br /&gt;７行目、pj.printDialog() でプリンタを変更します。ここでページフォーマットを変更しても変わりません。。。早く治して欲しいですね。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-10.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-10.html&lt;/a&gt;に移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-1115021110466005232?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/1115021110466005232/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=1115021110466005232' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/1115021110466005232'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/1115021110466005232'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/02/applet.html' title='Appletからデフォルトのプリンター以外に印刷'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-5244499545250195717</id><published>2007-02-28T00:20:00.000+09:00</published><updated>2008-12-10T05:03:30.512+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java swing'/><title type='text'>ツリーにチェックボックスをつける</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_N6yrksA3skE/ReRMh7MHGNI/AAAAAAAAAAg/UATB5zUS_g0/s1600-h/java3.gif"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="http://1.bp.blogspot.com/_N6yrksA3skE/ReRMh7MHGNI/AAAAAAAAAAg/UATB5zUS_g0/s320/java3.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5036234429014939858" /&gt;&lt;/a&gt;&lt;br /&gt;チェックボックスをツリーにつけるには、以下を参照してください。&lt;br&gt;&lt;br /&gt;TreeCellRendererを継承して自分のレンダラを作成します。&lt;br&gt;&lt;br /&gt;チェックのON/OFFのところは適当に実装してください。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-9.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-9.html&lt;/a&gt;に移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-5244499545250195717?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/5244499545250195717/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=5244499545250195717' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/5244499545250195717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/5244499545250195717'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/02/blog-post_28.html' title='ツリーにチェックボックスをつける'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_N6yrksA3skE/ReRMh7MHGNI/AAAAAAAAAAg/UATB5zUS_g0/s72-c/java3.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-5328489260150774411</id><published>2007-02-27T09:24:00.000+09:00</published><updated>2007-05-21T23:06:49.948+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java math'/><title type='text'>ポリゴンの重心を求める</title><content type='html'>ポリゴンの重心は以下のように計算します。&lt;br /&gt;ポリゴンを三角形に分割して、その三角形について計算してきます。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-8.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-8.html&lt;/a&gt;に移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-5328489260150774411?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/5328489260150774411/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=5328489260150774411' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/5328489260150774411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/5328489260150774411'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/02/blog-post_3830.html' title='ポリゴンの重心を求める'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-4216784463855135025</id><published>2007-02-27T00:48:00.000+09:00</published><updated>2007-05-21T23:06:39.032+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java math'/><title type='text'>ポリゴンの面積</title><content type='html'>ポリゴンの面積は以下のようにもとめます。&lt;br /&gt;面積が正なら右回り、負の値なら左回りのポリゴンです。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-7.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-7.html&lt;/a&gt;に移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-4216784463855135025?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/4216784463855135025/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=4216784463855135025' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/4216784463855135025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/4216784463855135025'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/02/blog-post_27.html' title='ポリゴンの面積'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-6625656328616176443</id><published>2007-02-26T09:41:00.000+09:00</published><updated>2008-12-10T05:03:30.714+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java swing'/><title type='text'>アップレットに小さい子ウィンドウ</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_N6yrksA3skE/ReIrvrMHGMI/AAAAAAAAAAY/pQInL3APZZ4/s1600-h/java2.gif"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="http://2.bp.blogspot.com/_N6yrksA3skE/ReIrvrMHGMI/AAAAAAAAAAY/pQInL3APZZ4/s320/java2.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5035635431401003202" /&gt;&lt;/a&gt;&lt;br /&gt;アップレットに小さい子ウィンドウを貼り付けるには以下のように実装します。&lt;br /&gt;参考にしてください。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-6.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-6.html&lt;/a&gt;に移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-6625656328616176443?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/6625656328616176443/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=6625656328616176443' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/6625656328616176443'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/6625656328616176443'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/02/blog-post_26.html' title='アップレットに小さい子ウィンドウ'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_N6yrksA3skE/ReIrvrMHGMI/AAAAAAAAAAY/pQInL3APZZ4/s72-c/java2.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-634384162491714776</id><published>2007-02-25T22:12:00.000+09:00</published><updated>2008-12-10T05:03:30.857+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java swing'/><title type='text'>アップレットの子ウィンドウ</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_N6yrksA3skE/ReGMMLMHGLI/AAAAAAAAAAM/EiDsrLvM5dw/s1600-h/java1.gif"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="http://3.bp.blogspot.com/_N6yrksA3skE/ReGMMLMHGLI/AAAAAAAAAAM/EiDsrLvM5dw/s320/java1.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5035459999166830770" /&gt;&lt;/a&gt;&lt;br /&gt;画像のようなJInternalFrameを使った子ウィンドウは以下のように作ります。&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-5.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-5.html&lt;/a&gt;に移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-634384162491714776?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/634384162491714776/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=634384162491714776' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/634384162491714776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/634384162491714776'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/02/blog-post_25.html' title='アップレットの子ウィンドウ'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_N6yrksA3skE/ReGMMLMHGLI/AAAAAAAAAAM/EiDsrLvM5dw/s72-c/java1.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-6490518727794925915</id><published>2007-02-24T11:12:00.000+09:00</published><updated>2007-05-21T23:06:01.142+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java mail'/><title type='text'>SSLを使ったメール受信</title><content type='html'>SSLを使用してのPOPメール受信は以下を参考にしてください。&lt;br&gt;&lt;br /&gt;JavaMail1.4をダウンロードして使用してください。&lt;br /&gt;http://java.sun.com/products/javamail/index.jsp&lt;br /&gt;使用したライブラリは mailapi.jar と pop3.jar です。&lt;br /&gt;&lt;br&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-4.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-4.html&lt;/a&gt;に移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-6490518727794925915?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/6490518727794925915/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=6490518727794925915' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/6490518727794925915'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/6490518727794925915'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/02/ssl.html' title='SSLを使ったメール受信'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-2221549376862224767</id><published>2007-02-23T23:34:00.000+09:00</published><updated>2007-05-21T23:05:48.021+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java mail'/><title type='text'>メールの受信（POP）</title><content type='html'>メールの受信は以下のサンプルを参考にしてください。&lt;br /&gt;JavaMail1.3ベースです。ライブラリは以下のURLからダウンロードできます。&lt;br /&gt;http://java.sun.com/products/javamail/index.jsp&lt;br /&gt;JAFでダウンロード可能な activation.jar が追加ライブラリとして必要です。&lt;br /&gt;http://java.sun.com/products/javabeans/jaf/downloads/index.html&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-3.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-3.html&lt;/a&gt;に移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-2221549376862224767?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/2221549376862224767/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=2221549376862224767' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/2221549376862224767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/2221549376862224767'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/02/pop.html' title='メールの受信（POP）'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-4642333913924118144</id><published>2007-02-22T23:48:00.000+09:00</published><updated>2007-05-21T23:05:00.785+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java mail'/><title type='text'>メール送信のサンプル</title><content type='html'>メール送信のサンプルです。&lt;br /&gt;メールのライブラリは以下からダウンロードします。&lt;br /&gt;http://java.sun.com/products/javamail/downloads/index.html&lt;br /&gt;&lt;br /&gt;サンプルは&lt;a href=http://javatec.blog105.fc2.com/blog-entry-2.html target=_blank&gt;http://javatec.blog105.fc2.com/blog-entry-2.html&lt;/a&gt;に移動しました。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-4642333913924118144?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/4642333913924118144/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=4642333913924118144' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/4642333913924118144'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/4642333913924118144'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/02/blog-post.html' title='メール送信のサンプル'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5420953248933930628.post-8664851004105708063</id><published>2007-02-22T23:47:00.000+09:00</published><updated>2007-02-22T23:48:21.243+09:00</updated><title type='text'>Javaのサンプル集を投稿します。</title><content type='html'>Javaのサンプル集を投稿します。よろしくです。みんなで参考にしてください。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5420953248933930628-8664851004105708063?l=javateck.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javateck.blogspot.com/feeds/8664851004105708063/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5420953248933930628&amp;postID=8664851004105708063' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/8664851004105708063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5420953248933930628/posts/default/8664851004105708063'/><link rel='alternate' type='text/html' href='http://javateck.blogspot.com/2007/02/java.html' title='Javaのサンプル集を投稿します。'/><author><name>eddy</name><uri>http://www.blogger.com/profile/11145414399840295435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
