i am designing a desktop application like nero for removable media storage that also includes features of copyfast. i want to add an option of my own choice in the windows explorer right click menu. how can i do that? am i proceeding in the right direction?
What does your question has to do with shell scripting?
You can get the functionality with c sharp easily:
http://www.codeproject.com/KB/cs/appendmenu.aspx
But take a look other peoples work where the embed the windows context menu within a java app:
_ttp://timealias.bplaced.net/ContextMenuPlugin/ (can only post only link; need more rep)
Related
I never deal with java before. Recently I want to add a game Metal Slug into my website, I got the game source codes from http://www.hackchina.com/en/cont/45242 , but the game is in Java format, is it possible to add the Java game into a html/php website?
Do I need to modify the Java codes? Or I just need to write html to embed the Java game? Mind to show me the example of codes or reference or terms for searching that might help me out?
Is there any place I can download the source codes of Metal Slug game which can embed to website? Haha. I need to modify the game codes because my website allow users to buy the cloth/dress of characters in the game, so I need to change the outfits of the characters in the game...
is it possible to add the Java game into a html/php website?
If it is Java based, it can either be embedded in a web page (applet) or launched from a web page (frame launched with Java Web Start).
Natives (e.g. DLLs) cause a challenge for applets. Either you can launch them free floating with web start, embedded with web start (requires 'next generation' plug-in2 JRE) or otherwise the user needs to run an installer that puts them somewhere that is on the path for Java related natives.
This seems to be a game which needs to be installed on the users drive. You can not embed it in an html file.
we have created an installer to finish it off,
i want to make a shortcut for the normal software and place it on desktop,
but i wish to do this from my installer, can someone help me,
i wish to learn from this, so don't come spam answers like don't make your own installer, etc...
kind regards jonathan
https://github.com/jimmc/jshortcut
shortcut library
"JShortcut is a JNI library to allow Java programs to create shortcuts
and menu items on Windows"
Here is an explanation of the LNK-File-Format
http://www.stdlib.com/art6-Shortcut-File-Format-lnk.html
Java Web Start can arrange shortcuts (or menu items) for any platform that supports them. These can be specified in the JNLP file, or installed programmatically using the IntegrationService.
How to make your desktop Java app looks like Open Office or Eclipse etc ?
Installation process looks like any Windpws app. installation. There is no Java logo on the to on a app window. You run it by .exe file. How it is done? Is this jar->exe conversion?
Is there any free tool to do that?
For the native look, you can obviously go the SWT way, like Eclipse does, however it's a painful one. You could/should prefer the Swing look'n'feel, by using, as an example, the Substance Look'n'Feel.
For the installation part, you can use
InstallAnywhere
IzPack
For the exe wrapper, you can use
Launch4J
JSmooth
or others ...
However, I think that, by doing so, you're doing it wrong.
indeed, instead of the classical download/install step, which is cumbersome, you can go the Java Web Start way : user only has to click one webpage link to install application to its machine (with an update mechanism directly integrated in), an install that go as far as potentially including desktop and start menu shortcuts, and an element in the Windows install panel to remove installed software.
I tried Jar2Exe, and JSmooth, they both produce exe files from jar archives.
The question is a little unclear, but I think that what you're after is making your java app behave like a native app (stuff like running it when an icon is double-clicked, etc...). There is an excellent tutorial on this here.
Note that, for the graphic part, Eclipse uses a library called SWT, which is a set of widgets that feel and behave in a different way that Java Swing or AWT.
Anyway, if you go the normal Java (Swing) way, the Java logo on the top of an app window is setIconImage() method in JFrame components.
Riduidel already told you about .exe wrappers and installers you can use. For the installer, I also suggest you to consider Java Web Start instead of a normal Windows installer.
I think it uses LookAndFeel, I let you read: http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
}
catch(Exception e){}
EDIT: I didn't read the entire question ^^' Maybe it will be useful to someone...
I would like to create a folder selector for my application which will only run on Internet Explorer Browsers (IE6+).
I would like to get the full folder path a user wishes to use via a HTML browse button or similar and then pass this to my server side application which is written in PHP! This can not be done via JavaScript for security reasons so I am looking for any other alternative that will work.
I had implemented a solution using a Java Applet but this did not work out as it didn't work on IE6, plus the browser security is locked down where I am deploying this app, meaning I am unlikely to get away with an applet.
The current solution is getting the user to paste in the folder location into a textfiel, this isn't acceptable any more.
Any implementation advice welcome!
Thanks all
If your app is IE only you can create a simple ActiveX Control with only one method:
HRESULT BrowseForFolder([out] BSTR folderName);
ATL Wizard will give you major portion of code.
But I would consider using flash for this:
It is more widely used then Java (I
think so).
ActiveX is strongly depends on
browser's security options and more annoying to install.
Your task is rather small, so it can
be implemented without deep skills, if you not familiar with flash
I want to create an application in Java that lists a directory and add drag and drop support to it for copying files from that directory to the explorer window opened and vice-versa(Windows system).
While adding support to drag and drop from windows explorer to the java application is quite easy, it kind of eludes me how to do it when the action starts from the java application and ends in explorer.
I tried searching google and SO, but to no avail.
Any pointers, directions, snippets of codes or pseudocodes will be appreciated.
So, is it possible to drag from a java application and transfer data to a drop target in a native application? If yes (it should be), can you point me in the right direction?
Yes, what you have to do is set the mime type on the transferable, and set the accepted actions (i.e. copy, move, etc) as well as the default action (it sounds like a copy action for what you are trying to do). This class is the transfer handler, which is what is used to handle DnD in Swing.
Just use the fileListFlavour DataFlavour and File drag'n drop will "just work" in both directions.
I'm sure you found the section on drag n drop in the java tutorial.
Book: Swing Hacks
Hack # 65
That's your answer :)