Windows Explorer has many capabilities, which are difficult or cumbersome to implement in Java. This software allows to include a Windows Explorer into Java Swing applications. You can do everything from within Java, what you can do normally from Windows.
The demo application shows, how to access windows search capabilites from Java.
Please note that this software does not allow to include an Internet Explorer window into Java. There exist already enough tools which allow for this.
Embedding a Windows Explorer window into your Java Swing application
Navigation both by mouse and by code
You can add custom options to the right click menu. These options may depend on the currently focused item
You can use Windows search by code, with very detailed control over search scope. I found that Windows search is much better than its reputation …
For a simple demo:
download the suitable jar in ExplorerCancas/jar. If you do not know if your default Java is 32bit or 64bit download both.
doubleclick the jar
This software by its nature runs only under Windows, not Unix or other systems.
Windows7 is minimum, it is only tested under Windows7.
Java 7, both 32 and 64 bit operation is suported
You just need to download the appropriate 32 bit or 64 bit jar and include it into your Java project
The jar extracts the dll into a temporary path on your computer when loaded for the first time. On my system this is C:\Users\myname\AppData\Local\Temp\ExplorerCanvas. If you install a newer jar, you have to empty or delete this folder.
MinGW 64 bit compiler suite, also supports 32 bit builds. You can get it from here http://tdm-gcc.tdragon.net/. 4.8.1 version is used
This is to the best of my knowledge the only MinGW based compiler suite with enough windows header files to support the build
Some functions of shell32 are included in the MinGW header files, but not in the MinGW library. This is why you have to include libshell32_ms777.a. Generation of the libshell32_ms777.a is described in the batch files in shell32
This is work in process and my first project in C++. So I am quite sure that there are many memory leaks …
Copyright 2014 Martin Schell
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.