6

Java Swing 用の完全にカスタマイズ可能な (すべての標準 LnF と互換性のある) 高速ファイル ブラウザ コンポーネントを見つけた人はいますか?

このコンポーネントを Netbeans UI パレットに配置し、UI の設計中に任意の JPanel にドラッグ アンド ドロップできるはずです。また、ディレクトリ、単一ファイル、複数ファイルの選択、およびファイル タイプのフィルタリングもサポートする必要があります。jEditなどのアプリケーションでこれを見たので、何かがあるに違いありません.

ブラウザ/エクスプローラー/ツリービューのようなコンポーネントではなく、JFileChooser のようなダイアログ ボックスについて質問していないことに注意してください。

4

2 に答える 2

11

に組み込まれた比較的単純なファイル システム ブラウザを次に示しますJPanel

アイコン、ポップアップ メニュー、およびツールチップを備えたファイル ブラウザーのより複雑な例をいくつか示します。
これらはすべて に組み込まれていJFrameます:

These examples probably aren't as customizable as you may want, but they're a pretty good starting point for adding new functionality.

For further reading, Swing, Second Edition (Chapter 17) walks through implementing a JTree component for browsing your file system complete with lazy loading, custom renders, popup menus, and tooltips.
If you'd like to see just the source, you can get it here.

There is also the FileBro that you may want to take a look at. Perhaps you can use it, or at least borrow implementation details.

于 2011-08-25T19:50:28.190 に答える
2

see DJ Project: http://djproject.sourceforge.net/ns/index.html

于 2011-08-25T19:51:55.303 に答える