This question already has answers here:
Read/write to Windows registry using Java
(25 answers)
Closed 9 years ago.
How do I use regedit so as to store some deatails of my program ?
I would like to use this to store some data like the program folder, some user cofigs and also some extensions that the computer should recognize as my program's extension.
Consider using the Preferences API. Preferences.systemRoot() should let you touch the registry node at HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Prefs on a 64 bit computer with 32 bit java.
Related
This question already has answers here:
How to open cd drive java
(3 answers)
Closed 4 years ago.
How can i use Windows API functions in Java?
I'm searching for a reference to guide me about using the Windows API in my Java application on Windows.
For example, I want to control a DVD drive in my Java application. How would I go about doing that?
Any help is appreciated.
You can do this by using either JNA (Java Native Access) or JNI (Java Native Interface).
With JNA you can use com.sun.jna.platform.win32.Kernel32 to call DeviceIoControl, which will allow you to control your DVD drive.
This question already has answers here:
How to get a list of current open windows/process with Java?
(14 answers)
Closed 6 years ago.
I am currently writing a Java Application, that needs to filter the name of the Program whichs UI is front. Sorry for my bad english.
So let's say the Java App is running in Background and I open Windows -> Games -> Minesweeper then i want the App to only tell me "Active: Minesweeper". Without any additional information. Just the name "Minesweeper"
I already tried using JavaNativeAccess but I'm still unfamiliar with it.
Thanks you all in advance
You might want to look at the following link which might be of help:
How to get a list of current open windows/process with Java?
This question already has answers here:
Eclipse - List of default keyboard shortcuts
(4 answers)
Closed 8 years ago.
I am going to do one enhancement in the existing java project .So I have to learn the useful short cut keys to navigate and analyse the java project in eclipse.
Example :
1 .If I use F3 it will navigate to method where its used
2.Ctrl+o will show the list of methods
Your help is highly appreciated...
Take a look at a cheatsheet for the version of eclipse you're using.
This question already has answers here:
How can I lock a file using java (if possible)
(8 answers)
Unable to lock files on Linux using java.nio.channels.FileLock
(6 answers)
Closed 9 years ago.
I need to lock a file in unix/linux OS. I have googled and read about java.nio.channels Filelock and Reentrant File Lock . But both works in Windows but not in unix. Is there any other way of implementing a lock on file in unix? Any sample code would be highly appreciated.
Thanks,
Vignesh
you could have a look at this (not java related) post - https://unix.stackexchange.com/questions/20104/is-there-any-way-to-prevent-deletion-of-certain-files-from-user-owned-directory.
it contains 2 solutions - either chowning the file by root and setting the sticky bit or using ext2/3/4 specific attributes.
both of these solutions are doable from java using System.exec()
This question already has answers here:
How can I display a VNC Viewer in a Java rich client (LGPL, Apache, MIT license)?
(3 answers)
Closed 9 years ago.
I have two computer in different network.I want to control one system from another.Both system have windows 7 operating system.Do any one have any idea how to do it??
I don't want to use team viewer or any other application.
VNC has been the most popular choice when it comes to remote desktop/computing. Check out this open source implementation called TightVNC, it even has a viewer application implemented in Java:
http://www.tightvnc.com/release-jviewer2.php
You can install Teamviewer into both computer.
I don't think that have a relationship with java and swing.
I think that you should correct the tags.