今回は、階層的にデータを表示する「JTree」の基本について説明します。 JTreeのモデルには、いくつもの種類があります。固定されたデータを扱うものから、自由にデータ構造を変更できるものまで、働きの異なるものがいくつか揃っているのですね。
今回は、階層的にデータを表示する「JTree」の基本について説明します。 このTreeModelとTreeNodeを使った方法は、非常に ...
ちょっと間が空いてしまいましたが,前回に引き続きSwingのドラッグ&ドロップについて解説しましょう。 前回はJ2SE 5.0までのSwingのドラッグ&ドロップについて説明しました。今週は,Java SE 6のドラッグ&ドロップに関する強化点を説明していきます。
今月はJavaにおける最大のお祭りJavaOneがサンフランシスコで行われます。櫻庭も例年のごとく参加します。せっかく参加するのですから,この連載でもJavaOneをレポートしたいと思います。 そこで,変則的なのですが,今月は今週と第4週をJava SE 6完全攻略 ...
Over the ages, drag and drop with the Swing component set has changed considerably. Early versions had a basic API in the java.awt.dnd package (with support from java.awt.datatransfer), but you had to ...
I'm working on a program where I want to show a bunch of categories and sub-categories using one of those menu trees. I'm using NetBeans to do most of the GUI grunt ...
Adding drag-and-drop support to JTrees has been covered already in Java Tip 97: Add Drag and Drop to Your JTrees. I encourage you to read that tip first to get a good understanding of the ...